@regulaforensics/document-reader 8.2.204-beta → 8.3.246-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 (65) hide show
  1. package/README.md +2 -3
  2. package/RNDocumentReader.podspec +2 -2
  3. package/android/build.gradle +2 -2
  4. package/android/cordova.gradle +2 -2
  5. package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +3 -1
  6. package/examples/capacitor/README.md +10 -0
  7. package/examples/capacitor/index.html +2 -7
  8. package/examples/capacitor/index.tsx +39 -0
  9. package/examples/capacitor/package.json +3 -3
  10. package/examples/capacitor/scripts/setup.sh +4 -0
  11. package/examples/capacitor/src/extra/bt_device.tsx +8 -7
  12. package/examples/capacitor/src/extra/custom_rfid.tsx +8 -8
  13. package/examples/capacitor/src/main.css +4 -1
  14. package/examples/capacitor/src/main.html +1 -4
  15. package/examples/capacitor/src/main.tsx +58 -94
  16. package/examples/ionic/README.md +10 -0
  17. package/examples/ionic/config.xml +2 -0
  18. package/examples/ionic/index.tsx +54 -0
  19. package/examples/ionic/package.json +3 -3
  20. package/examples/ionic/src/extra/{bt_device.ts → bt_device.tsx} +8 -7
  21. package/examples/ionic/src/extra/{custom_rfid.ts → custom_rfid.tsx} +8 -8
  22. package/examples/ionic/src/main.css +4 -1
  23. package/examples/ionic/src/main.html +1 -4
  24. package/examples/ionic/src/main.tsx +171 -0
  25. package/examples/ionic/tsconfig.json +3 -2
  26. package/examples/react_native/README.md +10 -0
  27. package/examples/react_native/index.tsx +28 -5
  28. package/examples/react_native/package-lock.json +476 -421
  29. package/examples/react_native/package.json +10 -10
  30. package/examples/react_native/src/extra/bt_device.tsx +8 -8
  31. package/examples/react_native/src/extra/custom_rfid.tsx +8 -9
  32. package/examples/react_native/src/main.css +4 -1
  33. package/examples/react_native/src/main.html +1 -4
  34. package/examples/react_native/src/main.tsx +59 -84
  35. package/ios/RGLWConfig.m +2 -0
  36. package/package.json +1 -1
  37. package/plugin.xml +2 -2
  38. package/www/capacitor/index.js +16 -16
  39. package/www/capacitor/params/process_params/ProcessParams.js +7 -0
  40. package/www/cordova.js +23 -16
  41. package/www/react-native/index.js +16 -16
  42. package/www/react-native/params/process_params/ProcessParams.js +7 -0
  43. package/www/types/index.d.ts +8 -8
  44. package/www/types/params/process_params/ProcessParams.d.ts +4 -0
  45. package/examples/cordova/.vscode/launch.json +0 -28
  46. package/examples/cordova/.vscode/typings/cordova/cordova.d.ts +0 -80
  47. package/examples/cordova/README.md +0 -12
  48. package/examples/cordova/config.xml +0 -30
  49. package/examples/cordova/package-lock.json +0 -1314
  50. package/examples/cordova/package.json +0 -32
  51. package/examples/cordova/scripts/android.sh +0 -8
  52. package/examples/cordova/scripts/ios.sh +0 -8
  53. package/examples/cordova/scripts/setup.sh +0 -8
  54. package/examples/cordova/www/images/document.png +0 -0
  55. package/examples/cordova/www/images/logo.png +0 -0
  56. package/examples/cordova/www/images/portrait.png +0 -0
  57. package/examples/cordova/www/index.html +0 -6
  58. package/examples/cordova/www/index.js +0 -40
  59. package/examples/cordova/www/src/extra/bt_device.js +0 -31
  60. package/examples/cordova/www/src/extra/custom_rfid.js +0 -60
  61. package/examples/cordova/www/src/main.css +0 -131
  62. package/examples/cordova/www/src/main.html +0 -41
  63. package/examples/cordova/www/src/main.js +0 -202
  64. package/examples/ionic/index.ts +0 -16
  65. package/examples/ionic/src/main.ts +0 -213
@@ -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.246-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,27 @@
1
- import { document } from '../../index'
2
1
  import { DocumentReader, InitConfig } from "@regulaforensics/document-reader"
3
- import { handleException, setStatus } from "../main"
2
+ import { handleException, init, setStatus } from "../main"
4
3
 
5
4
  export const useBtDevice = false
6
- const btDeviceName = "Regula 0000"
5
+ export const btDeviceName = "Regula 0000"
7
6
 
8
7
  export function setupBTDevice() {
9
- document.getElementById("bt-device").style.display = "flex"
10
- document.getElementById("connect").onclick = () => connect()
8
+ var connectButton = document.getElementById("connect")!
9
+ connectButton.style.display = "flex"
10
+ connectButton.onclick = () => connect()
11
11
  setStatus("Connect to a bluetooth device")
12
12
  }
13
13
 
14
14
  async function connect() {
15
15
  setStatus("Searching for devices...")
16
16
  if (await DocumentReader.instance.connectBluetoothDevice(btDeviceName)) {
17
- await initialize()
17
+ await init()
18
18
  DocumentReader.instance.functionality.useAuthenticator = true
19
- document.getElementById("bt-device").style.display = "none"
19
+ document.getElementById("bt-device")!.style.display = "none"
20
20
  } else
21
21
  setStatus("Failed to connect")
22
22
  }
23
23
 
24
- async function initialize() {
24
+ export async function initializeWithBTDevice() {
25
25
  setStatus("Initializing...")
26
26
 
27
27
  var initConfig = InitConfig.withBleDevice()
@@ -1,4 +1,3 @@
1
- import { document } from '../../index'
2
1
  import { DocReaderAction, DocumentReader, RFIDConfig, RFIDDataFileType, RFIDNotificationCodes } from "@regulaforensics/document-reader"
3
2
  import { displayResults, setStatus } from "../main"
4
3
 
@@ -29,7 +28,7 @@ function setup() {
29
28
  setProgress(-1)
30
29
  currentProgress = -1
31
30
  setShowing(true)
32
- document.getElementById("cancel-rfid").onclick = () => stop()
31
+ document.getElementById("cancel-rfid")!.onclick = () => stop()
33
32
  }
34
33
 
35
34
  function stop() {
@@ -38,13 +37,13 @@ function stop() {
38
37
  setShowing(false)
39
38
  }
40
39
 
41
- function setDescription(data) {
42
- document.getElementById("rfid-description").innerHTML = data
40
+ function setDescription(data: string) {
41
+ document.getElementById("rfid-description")!.innerHTML = data
43
42
  }
44
43
 
45
44
  var currentProgress = -1
46
- function setProgress(next) {
47
- var progress = document.getElementById("progress")
45
+ function setProgress(next: number) {
46
+ var progress = document.getElementById("progress")!
48
47
  // make progress bar look better
49
48
  if (next == 0) return // ignore idle 0s, leave progress at 100 while its not moving
50
49
  if (next < currentProgress) next = 0 // move to 0 if progress finaly started moving
@@ -56,7 +55,7 @@ function setProgress(next) {
56
55
  currentProgress = next
57
56
  }
58
57
 
59
- function setShowing(data) {
60
- document.getElementById("main").style.display = data ? "none" : "flex"
61
- document.getElementById("custom-rfid").style.display = data ? "flex" : "none"
58
+ function setShowing(data: boolean) {
59
+ document.getElementById("main")!.style.display = data ? "none" : "flex"
60
+ document.getElementById("custom-rfid")!.style.display = data ? "flex" : "none"
62
61
  }
@@ -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,18 +1,14 @@
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
- import { DocumentReader, DocReaderAction, FieldType, GraphicFieldType, InitConfig, RecognizeConfig, ResultType, RFIDConfig, ScannerConfig, Scenario } from '@regulaforensics/document-reader'
7
- import { setupBTDevice, useBtDevice } from './extra/bt_device'
1
+ import { DocumentReader, DocReaderAction, FieldType, GraphicFieldType, InitConfig, RecognizeConfig, ResultType, RFIDConfig, ScannerConfig, Scenario, Results, DocReaderException, DocReaderScenario } from '@regulaforensics/document-reader'
2
+ import { loadAsset, pickImage } from '../index'
3
+ import { initializeWithBTDevice, setupBTDevice, useBtDevice } from './extra/bt_device'
8
4
  import { useRfidSelfHostedUI, rfidSelfHostedUI } from './extra/custom_rfid'
9
5
 
10
6
  var documentReader = DocumentReader.instance
11
- var selectedScenario
7
+ var selectedScenario = Scenario.MRZ
12
8
  var doRfid = false
13
9
  var isReadingRfid = false
14
10
 
15
- async function init() {
11
+ export async function init() {
16
12
  if (!await initialize()) return
17
13
  setScenarios(documentReader.availableScenarios)
18
14
  setCanRfid(await documentReader.isRFIDAvailableForUse())
@@ -40,7 +36,7 @@ async function recognize() {
40
36
  )
41
37
  }
42
38
 
43
- export function handleCompletion(action, results, error) {
39
+ export function handleCompletion(action: DocReaderAction, results: Results | null, error: DocReaderException | null) {
44
40
  handleException(error)
45
41
  if (DocReaderAction.stopped(action) && !shouldRfid(results)) {
46
42
  displayResults(results)
@@ -50,7 +46,7 @@ export function handleCompletion(action, results, error) {
50
46
  }
51
47
  }
52
48
 
53
- export async function displayResults(results) {
49
+ export async function displayResults(results: Results | null) {
54
50
  isReadingRfid = false
55
51
  clearResults()
56
52
  if (results == null) return
@@ -69,13 +65,13 @@ var readRfid = () => {
69
65
  documentReader.rfid(new RFIDConfig(handleCompletion))
70
66
  }
71
67
 
72
- function shouldRfid(results) {
68
+ function shouldRfid(results: Results | null) {
73
69
  return doRfid &&
74
70
  !isReadingRfid &&
75
71
  results != null && results.chipPage != 0
76
72
  }
77
73
 
78
- async function initialize() {
74
+ var initialize = async () => {
79
75
  setStatus("Initializing...")
80
76
 
81
77
  var license = await loadAsset("regula.license")
@@ -86,26 +82,45 @@ async function initialize() {
86
82
  return success
87
83
  }
88
84
 
89
- export function handleException(error) {
85
+ export function handleException(error: DocReaderException | null) {
90
86
  if (error != null) {
91
87
  setStatus(error.message)
92
88
  console.log(error.code + ": " + error.message)
93
89
  }
94
90
  }
95
91
 
96
- // ui --------------------------------------------------------------------------------------------------------------------
92
+ // --------------------------------------------------------------------------------------------------------------------
93
+
94
+ var documentUIImage: HTMLImageElement
95
+ var portraitUIImage: HTMLImageElement
96
+ export function main() {
97
+ documentUIImage = document.getElementById("document-image") as HTMLImageElement
98
+ portraitUIImage = document.getElementById("portrait-image") as HTMLImageElement
99
+ document.getElementById("scan")!.onclick = () => scan()
100
+ document.getElementById("recognize")!.onclick = () => recognize()
101
+
102
+ // custom rfid
103
+ if (useRfidSelfHostedUI) readRfid = () => rfidSelfHostedUI()
104
+
105
+ // bt device
106
+ if (!useBtDevice) init()
107
+ else {
108
+ setupBTDevice()
109
+ initialize = initializeWithBTDevice
110
+ }
111
+ }
97
112
 
98
- export function setStatus(data) {
113
+ export function setStatus(data: string | null) {
99
114
  if (data != null)
100
- document.getElementById("status").innerHTML = data
115
+ document.getElementById("status")!.innerHTML = data
101
116
  }
102
117
 
103
- function setPortrait(data) {
118
+ function setPortrait(data: string | null) {
104
119
  if (data != null)
105
120
  portraitUIImage.src = "data:image/png;base64," + data
106
121
  }
107
122
 
108
- function setDocImage(data) {
123
+ function setDocImage(data: string | null) {
109
124
  if (data != null)
110
125
  documentUIImage.src = "data:image/png;base64," + data
111
126
  }
@@ -116,81 +131,41 @@ function clearResults() {
116
131
  documentUIImage.src = "images/document.png"
117
132
  }
118
133
 
119
- function setCanRfid(data) {
120
- var checkbox // implicitly any, since cordova sample is pure js
121
- checkbox = document.getElementById('rfid-checkbox')
122
- var checkboxDescription = document.getElementById("rfid-checkbox-description")
134
+ function setCanRfid(data: boolean) {
135
+ var checkbox = document.getElementById('rfid-checkbox') as HTMLInputElement
136
+ var checkboxDescription = document.getElementById("rfid-checkbox-description")!
123
137
  if (data) {
124
138
  checkbox.disabled = false
125
139
  checkboxDescription.innerHTML = "Process rfid reading"
126
- checkboxDescription.onclick = () => {
140
+ var onclick = () => {
127
141
  doRfid = !doRfid
128
142
  checkbox.checked = doRfid
129
143
  }
144
+ checkbox.onclick = onclick
145
+ checkboxDescription.onclick = onclick
130
146
  }
131
147
  }
132
148
 
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
- }
149
+ function setScenarios(data: DocReaderScenario[]) {
150
+ var scenariosContainer = document.getElementById("scenarios")!
140
151
 
141
- async function pickImage(): Promise<string | null> {
142
- var response = await launchImageLibrary({
143
- mediaType: 'photo',
144
- selectionLimit: 1,
145
- includeBase64: true
152
+ data.forEach(scenario => {
153
+ var checked = selectedScenario == scenario.name ? "checked" : ""
154
+ var scenarioElement = `<div class="row radio">
155
+ <input type="radio" name="scenario" id="${scenario.name}" value="${scenario.name}" ${checked}>
156
+ <span id="${scenario.name}-caption" style="width: 200px; padding-left: 5px;">${scenario.caption}</span>
157
+ </div>`
158
+ scenariosContainer.insertAdjacentHTML("beforeend", scenarioElement)
146
159
  })
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
160
 
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
- function setScenarios(data) {
169
- 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)
194
-
195
- // return div
161
+ data.forEach(scenario => {
162
+ var element = document.getElementById(scenario.name) as HTMLInputElement
163
+ var elementCaption = document.getElementById(scenario.name + "-caption")!
164
+ var onclick = () => {
165
+ selectedScenario = scenario.name as Scenario
166
+ element.checked = true
167
+ }
168
+ element.onclick = onclick
169
+ elementCaption.onclick = onclick
170
+ })
196
171
  }
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.246-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.246-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) {