@regulaforensics/document-reader 8.2.204-beta → 8.3.242-beta

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.
Files changed (51) hide show
  1. package/RNDocumentReader.podspec +2 -2
  2. package/android/build.gradle +2 -2
  3. package/android/cordova.gradle +2 -2
  4. package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +3 -1
  5. package/examples/capacitor/README.md +10 -0
  6. package/examples/capacitor/index.html +2 -7
  7. package/examples/capacitor/index.tsx +39 -0
  8. package/examples/capacitor/package.json +3 -3
  9. package/examples/capacitor/scripts/setup.sh +4 -0
  10. package/examples/capacitor/src/extra/bt_device.tsx +7 -6
  11. package/examples/capacitor/src/main.css +4 -1
  12. package/examples/capacitor/src/main.html +1 -4
  13. package/examples/capacitor/src/main.tsx +48 -81
  14. package/examples/cordova/README.md +10 -0
  15. package/examples/cordova/config.xml +3 -0
  16. package/examples/cordova/package-lock.json +459 -1
  17. package/examples/cordova/package.json +5 -4
  18. package/examples/cordova/scripts/bundle.sh +4 -0
  19. package/examples/cordova/www/bootstrap.js +30 -0
  20. package/examples/cordova/www/index.html +1 -1
  21. package/examples/cordova/www/index.js +26 -36
  22. package/examples/cordova/www/src/extra/bt_device.js +7 -6
  23. package/examples/cordova/www/src/main.css +4 -1
  24. package/examples/cordova/www/src/main.html +1 -4
  25. package/examples/cordova/www/src/main.js +48 -77
  26. package/examples/ionic/README.md +10 -0
  27. package/examples/ionic/config.xml +2 -0
  28. package/examples/ionic/index.ts +40 -2
  29. package/examples/ionic/package.json +3 -3
  30. package/examples/ionic/src/extra/bt_device.ts +7 -6
  31. package/examples/ionic/src/main.css +4 -1
  32. package/examples/ionic/src/main.html +1 -4
  33. package/examples/ionic/src/main.ts +48 -87
  34. package/examples/react_native/README.md +10 -0
  35. package/examples/react_native/index.tsx +26 -4
  36. package/examples/react_native/package-lock.json +476 -421
  37. package/examples/react_native/package.json +10 -10
  38. package/examples/react_native/src/extra/bt_device.tsx +7 -6
  39. package/examples/react_native/src/main.css +4 -1
  40. package/examples/react_native/src/main.html +1 -4
  41. package/examples/react_native/src/main.tsx +48 -69
  42. package/ios/RGLWConfig.m +2 -0
  43. package/package.json +1 -1
  44. package/plugin.xml +2 -2
  45. package/www/capacitor/index.js +16 -16
  46. package/www/capacitor/params/process_params/ProcessParams.js +7 -0
  47. package/www/cordova.js +23 -16
  48. package/www/react-native/index.js +16 -16
  49. package/www/react-native/params/process_params/ProcessParams.js +7 -0
  50. package/www/types/index.d.ts +8 -8
  51. package/www/types/params/process_params/ProcessParams.d.ts +4 -0
@@ -8,20 +8,20 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/document-reader": "8.2.204-beta",
12
- "@regulaforensics/document-reader-core-fullauthrfid": "8.2.8-beta",
13
- "@regulaforensics/document-reader-btdevice": "8.2.8-beta",
14
- "react-native": "0.79.2",
11
+ "@regulaforensics/document-reader": "8.3.242-beta",
12
+ "@regulaforensics/document-reader-core-fullauthrfid": "8.3.9-beta",
13
+ "@regulaforensics/document-reader-btdevice": "8.3.10-beta",
14
+ "react-native": "0.79.5",
15
15
  "react-native-fs": "2.20.0",
16
16
  "react-native-image-picker": "8.2.1",
17
- "react-native-webview": "13.13.5",
18
- "@react-native/metro-config": "0.79.2",
17
+ "react-native-webview": "13.15.0",
18
+ "@react-native/metro-config": "0.79.5",
19
19
  "react": "19.1.0",
20
- "@types/react": "19.1.4",
21
- "expo": "53.0.9",
22
- "expo-dev-client": "5.1.8",
20
+ "@types/react": "19.1.8",
21
+ "expo": "53.0.20",
22
+ "expo-dev-client": "5.2.4",
23
23
  "expo-custom-assets": "1.4.1",
24
- "expo-build-properties": "0.14.6",
24
+ "expo-build-properties": "0.14.8",
25
25
  "typescript": "5.8.3"
26
26
  }
27
27
  }
@@ -1,27 +1,28 @@
1
1
  import { document } from '../../index'
2
2
  import { DocumentReader, InitConfig } from "@regulaforensics/document-reader"
3
- import { handleException, setStatus } from "../main"
3
+ import { handleException, init, setStatus } from "../main"
4
4
 
5
5
  export const useBtDevice = false
6
- const btDeviceName = "Regula 0000"
6
+ export const btDeviceName = "Regula 0000"
7
7
 
8
8
  export function setupBTDevice() {
9
- document.getElementById("bt-device").style.display = "flex"
10
- document.getElementById("connect").onclick = () => connect()
9
+ var connectButton = document.getElementById("connect")
10
+ connectButton.style.display = "flex"
11
+ connectButton.onclick = () => connect()
11
12
  setStatus("Connect to a bluetooth device")
12
13
  }
13
14
 
14
15
  async function connect() {
15
16
  setStatus("Searching for devices...")
16
17
  if (await DocumentReader.instance.connectBluetoothDevice(btDeviceName)) {
17
- await initialize()
18
+ await init()
18
19
  DocumentReader.instance.functionality.useAuthenticator = true
19
20
  document.getElementById("bt-device").style.display = "none"
20
21
  } else
21
22
  setStatus("Failed to connect")
22
23
  }
23
24
 
24
- async function initialize() {
25
+ export async function initializeWithBTDevice() {
25
26
  setStatus("Initializing...")
26
27
 
27
28
  var initConfig = InitConfig.withBleDevice()
@@ -1,8 +1,10 @@
1
1
  html,
2
2
  body {
3
- width: 99%;
3
+ margin: 0;
4
+ width: 100%;
4
5
  height: 99vh;
5
6
  display: flex;
7
+ overflow: hidden;
6
8
  flex-direction: column;
7
9
  }
8
10
 
@@ -59,6 +61,7 @@ body {
59
61
  color: white;
60
62
  border: none;
61
63
  padding: 10px 20px;
64
+ justify-content: center;
62
65
  font-size: 16px;
63
66
  border-radius: 100px;
64
67
  cursor: pointer;
@@ -14,10 +14,6 @@
14
14
  <img id="document-image" src="images/document.png" height="160px" width="200px">
15
15
  </div>
16
16
  </div>
17
- <div id="bt-device" class="row" style="display: none;">
18
- <input type="text" placeholder="Regula 0000" />
19
- <button id="connect" class="button">Connect</button>
20
- </div>
21
17
  <div id="scenario-container" class="column no-scroll" style="margin-top: 15px; background-color: rgba(0, 0, 0, 0.03);">
22
18
  <div id="scenarios" class="scroll"></div>
23
19
  </div>
@@ -29,6 +25,7 @@
29
25
  <button id="scan" class="button">Scan document</button>
30
26
  <button id="recognize" class="button">Scan image</button>
31
27
  </div>
28
+ <button id="connect" class="button" style="width: 360px; display: none;">Connect</button>
32
29
  <div style="padding-top: 20px;"></div>
33
30
  </div>
34
31
  <div id="custom-rfid" class="column no-scroll" style="display: none;">
@@ -1,10 +1,7 @@
1
1
  import { document } from '../index'
2
- import * as RNFS from 'react-native-fs'
3
- import { Platform } from 'react-native'
4
- import { launchImageLibrary } from 'react-native-image-picker'
5
-
6
2
  import { DocumentReader, DocReaderAction, FieldType, GraphicFieldType, InitConfig, RecognizeConfig, ResultType, RFIDConfig, ScannerConfig, Scenario } from '@regulaforensics/document-reader'
7
- import { setupBTDevice, useBtDevice } from './extra/bt_device'
3
+ import { loadAsset, pickImage } from '../index'
4
+ import { initializeWithBTDevice, setupBTDevice, useBtDevice } from './extra/bt_device'
8
5
  import { useRfidSelfHostedUI, rfidSelfHostedUI } from './extra/custom_rfid'
9
6
 
10
7
  var documentReader = DocumentReader.instance
@@ -12,7 +9,7 @@ var selectedScenario
12
9
  var doRfid = false
13
10
  var isReadingRfid = false
14
11
 
15
- async function init() {
12
+ export async function init() {
16
13
  if (!await initialize()) return
17
14
  setScenarios(documentReader.availableScenarios)
18
15
  setCanRfid(await documentReader.isRFIDAvailableForUse())
@@ -75,7 +72,7 @@ function shouldRfid(results) {
75
72
  results != null && results.chipPage != 0
76
73
  }
77
74
 
78
- async function initialize() {
75
+ var initialize = async () => {
79
76
  setStatus("Initializing...")
80
77
 
81
78
  var license = await loadAsset("regula.license")
@@ -93,7 +90,26 @@ export function handleException(error) {
93
90
  }
94
91
  }
95
92
 
96
- // ui --------------------------------------------------------------------------------------------------------------------
93
+ // --------------------------------------------------------------------------------------------------------------------
94
+
95
+ var documentUIImage
96
+ var portraitUIImage
97
+ export function main() {
98
+ documentUIImage = document.getElementById("document-image")
99
+ portraitUIImage = document.getElementById("portrait-image")
100
+ document.getElementById("scan").onclick = () => scan()
101
+ document.getElementById("recognize").onclick = () => recognize()
102
+
103
+ // custom rfid
104
+ if (useRfidSelfHostedUI) readRfid = () => rfidSelfHostedUI()
105
+
106
+ // bt device
107
+ if (!useBtDevice) init()
108
+ else {
109
+ setupBTDevice()
110
+ initialize = initializeWithBTDevice
111
+ }
112
+ }
97
113
 
98
114
  export function setStatus(data) {
99
115
  if (data != null)
@@ -123,74 +139,37 @@ function setCanRfid(data) {
123
139
  if (data) {
124
140
  checkbox.disabled = false
125
141
  checkboxDescription.innerHTML = "Process rfid reading"
126
- checkboxDescription.onclick = () => {
142
+ var onclick = () => {
127
143
  doRfid = !doRfid
128
144
  checkbox.checked = doRfid
129
145
  }
146
+ checkbox.onclick = onclick
147
+ checkboxDescription.onclick = onclick
130
148
  }
131
149
  }
132
150
 
133
- // not equal --------------------------------------------------------------------------------------------------------------------
134
-
135
- async function loadAsset(path: string): Promise<string> {
136
- if (Platform.OS === 'ios') path = RNFS.MainBundlePath + "/" + path
137
- var readFile = Platform.OS === 'ios' ? RNFS.readFile : RNFS.readFileRes
138
- return await readFile(path, 'base64')
139
- }
140
-
141
- async function pickImage(): Promise<string | null> {
142
- var response = await launchImageLibrary({
143
- mediaType: 'photo',
144
- selectionLimit: 1,
145
- includeBase64: true
146
- })
147
- return response?.assets?.[0].base64!
148
- }
149
-
150
- var documentUIImage
151
- var portraitUIImage
152
- export function onload() {
153
- documentUIImage = document.getElementById("document-image")
154
- portraitUIImage = document.getElementById("portrait-image")
155
- document.getElementById("scan").onclick = () => scan()
156
- document.getElementById("recognize").onclick = () => recognize()
157
-
158
- // custom rfid
159
- if (useRfidSelfHostedUI) readRfid = () => rfidSelfHostedUI()
160
-
161
- // bt device
162
- if (!useBtDevice) init()
163
- else setupBTDevice()
164
- }
165
-
166
- // not resolved --------------------------------------------------------------------------------------------------------------------
167
-
168
151
  function setScenarios(data) {
169
152
  selectedScenario = Scenario.MRZ
170
- // const scenariosContainer = document.getElementById("scenarios")
171
- // data.forEach(scenario => scenariosContainer.appendChild(createScenarioElement(scenario)))
172
- }
173
-
174
- function createScenarioElement(scenario) {
175
- // const div = document.createElement('div')
176
- // div.className = 'row radio'
177
-
178
- // const input = document.createElement('input')
179
- // input.type = 'radio'
180
- // input.name = 'scenario'
181
- // input.value = scenario.name
182
- // input.checked = scenario.name === selectedScenario
183
-
184
- // const span = document.createElement('span')
185
- // span.style.width = '200px'
186
- // span.style.paddingLeft = '5px'
187
- // span.textContent = scenario.caption
188
-
189
- // input.onclick = () => selectedScenario = scenario.name
190
- // span.onclick = () => input.click()
191
-
192
- // div.appendChild(input)
193
- // div.appendChild(span)
153
+ var scenariosContainer = document.getElementById("scenarios")
154
+
155
+ data.forEach(scenario => {
156
+ var checked = selectedScenario == scenario.name ? "checked" : ""
157
+ var scenarioElement = `<div class="row radio">
158
+ <input type="radio" name="scenario" id="${scenario.name}" value="${scenario.name}" ${checked}>
159
+ <span id="${scenario.name}-caption" style="width: 200px; padding-left: 5px;">${scenario.caption}</span>
160
+ </div>`
161
+ scenariosContainer.insertAdjacentHTML("beforeend", scenarioElement)
162
+ })
194
163
 
195
- // return div
164
+ data.forEach(scenario => {
165
+ var element
166
+ element = document.getElementById(scenario.name)
167
+ var elementCaption = document.getElementById(scenario.name + "-caption")
168
+ var onclick = () => {
169
+ selectedScenario = scenario.name
170
+ element.checked = true
171
+ }
172
+ element.onclick = onclick
173
+ elementCaption.onclick = onclick
174
+ })
196
175
  }
package/ios/RGLWConfig.m CHANGED
@@ -184,6 +184,7 @@
184
184
  if (options[@"generateDTCVC"]) processParams.generateDTCVC = options[@"generateDTCVC"];
185
185
  if (options[@"strictDLCategoryExpiry"]) processParams.strictDLCategoryExpiry = options[@"strictDLCategoryExpiry"];
186
186
  if (options[@"generateAlpha2Codes"]) processParams.generateAlpha2Codes = options[@"generateAlpha2Codes"];
187
+ if (options[@"disableAuthResolutionFilter"]) processParams.disableAuthResolutionFilter = options[@"disableAuthResolutionFilter"];
187
188
 
188
189
  // Int
189
190
  if([options valueForKey:@"measureSystem"] != nil)
@@ -314,6 +315,7 @@
314
315
  result[@"generateDTCVC"] = processParams.generateDTCVC;
315
316
  result[@"strictDLCategoryExpiry"] = processParams.strictDLCategoryExpiry;
316
317
  result[@"generateAlpha2Codes"] = processParams.generateAlpha2Codes;
318
+ result[@"disableAuthResolutionFilter"] = processParams.disableAuthResolutionFilter;
317
319
 
318
320
  // Int
319
321
  result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/document-reader",
3
- "version": "8.2.204-beta",
3
+ "version": "8.3.242-beta",
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="8.2.204-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/document-reader" version="8.3.242-beta" 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="8.2.4879" />
32
+ <pod name="DocumentReader" spec="8.2.4934" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
@@ -264,8 +264,8 @@ export class DocumentReader {
264
264
  return await exec("connectBluetoothDevice", [deviceName]);
265
265
  }
266
266
 
267
- async deinitializeReader() {
268
- await exec("deinitializeReader", []);
267
+ deinitializeReader() {
268
+ exec("deinitializeReader", []);
269
269
  }
270
270
 
271
271
  async prepareDatabase(databaseID, prepareCompletion) {
@@ -293,12 +293,12 @@ export class DocumentReader {
293
293
  return await exec("removeDatabase", []);
294
294
  }
295
295
 
296
- async startNewPage() {
297
- await exec("startNewPage", []);
296
+ startNewPage() {
297
+ exec("startNewPage", []);
298
298
  }
299
299
 
300
- async startNewSession() {
301
- await exec("startNewSession", []);
300
+ startNewSession() {
301
+ exec("startNewSession", []);
302
302
  }
303
303
 
304
304
  scan(config, completion) {
@@ -337,20 +337,20 @@ export class DocumentReader {
337
337
  ]);
338
338
  }
339
339
 
340
- async stopScanner() {
341
- await exec("stopScanner", []);
340
+ stopScanner() {
341
+ exec("stopScanner", []);
342
342
  }
343
343
 
344
- async stopRFIDReader() {
345
- await exec("stopRFIDReader", []);
344
+ stopRFIDReader() {
345
+ exec("stopRFIDReader", []);
346
346
  }
347
347
 
348
- async addPKDCertificates(certificates) {
349
- await exec("addPKDCertificates", [certificates]);
348
+ addPKDCertificates(certificates) {
349
+ exec("addPKDCertificates", [certificates]);
350
350
  }
351
351
 
352
- async clearPKDCertificates() {
353
- await exec("clearPKDCertificates", []);
352
+ clearPKDCertificates() {
353
+ exec("clearPKDCertificates", []);
354
354
  }
355
355
 
356
356
  async setTCCParams(params) {
@@ -368,8 +368,8 @@ export class DocumentReader {
368
368
  return [action, info, error];
369
369
  }
370
370
 
371
- async endBackendTransaction() {
372
- await exec("endBackendTransaction", []);
371
+ endBackendTransaction() {
372
+ exec("endBackendTransaction", []);
373
373
  }
374
374
 
375
375
  _successOrErrorFromJson(jsonString) {
@@ -229,6 +229,12 @@ export class ProcessParams {
229
229
  this._set({ "generateAlpha2Codes": val });
230
230
  }
231
231
 
232
+ get disableAuthResolutionFilter() { return this._disableAuthResolutionFilter; }
233
+ set disableAuthResolutionFilter(val) {
234
+ this._disableAuthResolutionFilter = val;
235
+ this._set({ "disableAuthResolutionFilter": val });
236
+ }
237
+
232
238
  get barcodeParserType() { return this._barcodeParserType; }
233
239
  set barcodeParserType(val) {
234
240
  this._barcodeParserType = val;
@@ -492,6 +498,7 @@ export class ProcessParams {
492
498
  result._generateDTCVC = jsonObject["generateDTCVC"];
493
499
  result._strictDLCategoryExpiry = jsonObject["strictDLCategoryExpiry"];
494
500
  result._generateAlpha2Codes = jsonObject["generateAlpha2Codes"];
501
+ result._disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"];
495
502
  result._barcodeParserType = jsonObject["barcodeParserType"];
496
503
  result._perspectiveAngle = jsonObject["perspectiveAngle"];
497
504
  result._minDPI = jsonObject["minDPI"];
package/www/cordova.js CHANGED
@@ -839,8 +839,8 @@ class DocumentReader {
839
839
  return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("connectBluetoothDevice", [deviceName]);
840
840
  }
841
841
 
842
- async deinitializeReader() {
843
- await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("deinitializeReader", []);
842
+ deinitializeReader() {
843
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("deinitializeReader", []);
844
844
  }
845
845
 
846
846
  async prepareDatabase(databaseID, prepareCompletion) {
@@ -868,12 +868,12 @@ class DocumentReader {
868
868
  return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("removeDatabase", []);
869
869
  }
870
870
 
871
- async startNewPage() {
872
- await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startNewPage", []);
871
+ startNewPage() {
872
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startNewPage", []);
873
873
  }
874
874
 
875
- async startNewSession() {
876
- await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startNewSession", []);
875
+ startNewSession() {
876
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startNewSession", []);
877
877
  }
878
878
 
879
879
  scan(config, completion) {
@@ -912,20 +912,20 @@ class DocumentReader {
912
912
  ]);
913
913
  }
914
914
 
915
- async stopScanner() {
916
- await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopScanner", []);
915
+ stopScanner() {
916
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopScanner", []);
917
917
  }
918
918
 
919
- async stopRFIDReader() {
920
- await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopRFIDReader", []);
919
+ stopRFIDReader() {
920
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopRFIDReader", []);
921
921
  }
922
922
 
923
- async addPKDCertificates(certificates) {
924
- await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("addPKDCertificates", [certificates]);
923
+ addPKDCertificates(certificates) {
924
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("addPKDCertificates", [certificates]);
925
925
  }
926
926
 
927
- async clearPKDCertificates() {
928
- await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("clearPKDCertificates", []);
927
+ clearPKDCertificates() {
928
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("clearPKDCertificates", []);
929
929
  }
930
930
 
931
931
  async setTCCParams(params) {
@@ -943,8 +943,8 @@ class DocumentReader {
943
943
  return [action, info, error];
944
944
  }
945
945
 
946
- async endBackendTransaction() {
947
- await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("endBackendTransaction", []);
946
+ endBackendTransaction() {
947
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("endBackendTransaction", []);
948
948
  }
949
949
 
950
950
  _successOrErrorFromJson(jsonString) {
@@ -3473,6 +3473,12 @@ class ProcessParams {
3473
3473
  this._set({ "generateAlpha2Codes": val });
3474
3474
  }
3475
3475
 
3476
+ get disableAuthResolutionFilter() { return this._disableAuthResolutionFilter; }
3477
+ set disableAuthResolutionFilter(val) {
3478
+ this._disableAuthResolutionFilter = val;
3479
+ this._set({ "disableAuthResolutionFilter": val });
3480
+ }
3481
+
3476
3482
  get barcodeParserType() { return this._barcodeParserType; }
3477
3483
  set barcodeParserType(val) {
3478
3484
  this._barcodeParserType = val;
@@ -3736,6 +3742,7 @@ class ProcessParams {
3736
3742
  result._generateDTCVC = jsonObject["generateDTCVC"];
3737
3743
  result._strictDLCategoryExpiry = jsonObject["strictDLCategoryExpiry"];
3738
3744
  result._generateAlpha2Codes = jsonObject["generateAlpha2Codes"];
3745
+ result._disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"];
3739
3746
  result._barcodeParserType = jsonObject["barcodeParserType"];
3740
3747
  result._perspectiveAngle = jsonObject["perspectiveAngle"];
3741
3748
  result._minDPI = jsonObject["minDPI"];
@@ -264,8 +264,8 @@ export class DocumentReader {
264
264
  return await exec("connectBluetoothDevice", [deviceName]);
265
265
  }
266
266
 
267
- async deinitializeReader() {
268
- await exec("deinitializeReader", []);
267
+ deinitializeReader() {
268
+ exec("deinitializeReader", []);
269
269
  }
270
270
 
271
271
  async prepareDatabase(databaseID, prepareCompletion) {
@@ -293,12 +293,12 @@ export class DocumentReader {
293
293
  return await exec("removeDatabase", []);
294
294
  }
295
295
 
296
- async startNewPage() {
297
- await exec("startNewPage", []);
296
+ startNewPage() {
297
+ exec("startNewPage", []);
298
298
  }
299
299
 
300
- async startNewSession() {
301
- await exec("startNewSession", []);
300
+ startNewSession() {
301
+ exec("startNewSession", []);
302
302
  }
303
303
 
304
304
  scan(config, completion) {
@@ -337,20 +337,20 @@ export class DocumentReader {
337
337
  ]);
338
338
  }
339
339
 
340
- async stopScanner() {
341
- await exec("stopScanner", []);
340
+ stopScanner() {
341
+ exec("stopScanner", []);
342
342
  }
343
343
 
344
- async stopRFIDReader() {
345
- await exec("stopRFIDReader", []);
344
+ stopRFIDReader() {
345
+ exec("stopRFIDReader", []);
346
346
  }
347
347
 
348
- async addPKDCertificates(certificates) {
349
- await exec("addPKDCertificates", [certificates]);
348
+ addPKDCertificates(certificates) {
349
+ exec("addPKDCertificates", [certificates]);
350
350
  }
351
351
 
352
- async clearPKDCertificates() {
353
- await exec("clearPKDCertificates", []);
352
+ clearPKDCertificates() {
353
+ exec("clearPKDCertificates", []);
354
354
  }
355
355
 
356
356
  async setTCCParams(params) {
@@ -368,8 +368,8 @@ export class DocumentReader {
368
368
  return [action, info, error];
369
369
  }
370
370
 
371
- async endBackendTransaction() {
372
- await exec("endBackendTransaction", []);
371
+ endBackendTransaction() {
372
+ exec("endBackendTransaction", []);
373
373
  }
374
374
 
375
375
  _successOrErrorFromJson(jsonString) {
@@ -229,6 +229,12 @@ export class ProcessParams {
229
229
  this._set({ "generateAlpha2Codes": val });
230
230
  }
231
231
 
232
+ get disableAuthResolutionFilter() { return this._disableAuthResolutionFilter; }
233
+ set disableAuthResolutionFilter(val) {
234
+ this._disableAuthResolutionFilter = val;
235
+ this._set({ "disableAuthResolutionFilter": val });
236
+ }
237
+
232
238
  get barcodeParserType() { return this._barcodeParserType; }
233
239
  set barcodeParserType(val) {
234
240
  this._barcodeParserType = val;
@@ -492,6 +498,7 @@ export class ProcessParams {
492
498
  result._generateDTCVC = jsonObject["generateDTCVC"];
493
499
  result._strictDLCategoryExpiry = jsonObject["strictDLCategoryExpiry"];
494
500
  result._generateAlpha2Codes = jsonObject["generateAlpha2Codes"];
501
+ result._disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"];
495
502
  result._barcodeParserType = jsonObject["barcodeParserType"];
496
503
  result._perspectiveAngle = jsonObject["perspectiveAngle"];
497
504
  result._minDPI = jsonObject["minDPI"];
@@ -251,7 +251,7 @@ export class DocumentReader {
251
251
  connectBluetoothDevice(deviceName: string): Promise<boolean>;
252
252
 
253
253
  /** Used to deinitialize Document Reader and free up RAM as a consequence of this. */
254
- deinitializeReader(): Promise<void>;
254
+ deinitializeReader(): void;
255
255
 
256
256
  /**
257
257
  * Allows you to download a database from the Regula server.
@@ -296,10 +296,10 @@ export class DocumentReader {
296
296
  removeDatabase(): Promise<void>;
297
297
 
298
298
  /** Used to start the processing of the next page of the document once the current one is processed. */
299
- startNewPage(): Promise<void>;
299
+ startNewPage(): void;
300
300
 
301
301
  /** Used to start a scanning process. */
302
- startNewSession(): Promise<void>;
302
+ startNewSession(): void;
303
303
 
304
304
  /**
305
305
  * Used for multiple frames processing which are captured from the camera(old UI).
@@ -335,22 +335,22 @@ export class DocumentReader {
335
335
  rfid(config: RFIDConfig): void;
336
336
 
337
337
  /** Stops the document scanner if it's active. */
338
- stopScanner(): Promise<void>;
338
+ stopScanner(): void;
339
339
 
340
340
  /** Stops the RFID reader if it's active. */
341
- stopRFIDReader(): Promise<void>;
341
+ stopRFIDReader(): void;
342
342
 
343
343
  /** Used to pass certificates to Document Reader that will be used during the
344
344
  * RFID chip processing.
345
345
  *
346
346
  * @param certificates - PKD certificates.
347
347
  */
348
- addPKDCertificates(certificates: [PKDCertificate]): Promise<void>;
348
+ addPKDCertificates(certificates: [PKDCertificate]): void;
349
349
 
350
350
  /** It's used to remove certificates from your app that are used during the
351
351
  * RFID chip processing.
352
352
  */
353
- clearPKDCertificates(): Promise<void>;
353
+ clearPKDCertificates(): void;
354
354
 
355
355
  /** Sets the given `TCCParams` to the RFID session.
356
356
  * The parameters are required to be set before starting RFID session.
@@ -368,7 +368,7 @@ export class DocumentReader {
368
368
  finalizePackage(): Promise<[action: DocReaderAction, info: TransactionInfo | null, error: DocReaderException | null]>;
369
369
 
370
370
  /** It's used to end transaction during backend processing. */
371
- endBackendTransaction(): Promise<void>;
371
+ endBackendTransaction(): void;
372
372
  }
373
373
 
374
374
  /**
@@ -193,6 +193,10 @@ export declare class ProcessParams {
193
193
  */
194
194
  strictDLCategoryExpiry?: boolean;
195
195
  generateAlpha2Codes?: boolean;
196
+ /**
197
+ * This parameter if enabled will ignore the minimum barcode resolution needed to start processing.
198
+ */
199
+ disableAuthResolutionFilter?: boolean;
196
200
  /**
197
201
  * There are documents that contain barcodes which data can be parsed only
198
202
  * if document type verification is performed. The following property allows