@regulaforensics/idv 3.4.86-beta → 3.6.97-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.
@@ -8,22 +8,23 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/idv": "3.4.86-beta",
12
- "@regulaforensics/document-reader": "9.2.621",
13
- "@regulaforensics/face-sdk": "8.1.816",
14
- "@regulaforensics/document-reader-core-fullauthrfid": "9.2.1513",
15
- "@regulaforensics/face-core-basic": "8.1.422",
16
- "@regulaforensics/idv-module-document-reader": "3.4.56-beta",
17
- "@regulaforensics/idv-module-face": "3.4.57-beta",
18
- "react-native": "^0.81.4",
19
- "react-native-webview": "^13.16.0",
20
- "@react-native/metro-config": "^0.81.1",
21
- "react": "^19.1.1",
22
- "@types/react": "^19.1.13",
23
- "expo": "^54.0.7",
24
- "expo-dev-client": "^6.0.12",
11
+ "@regulaforensics/idv": "3.6.97-nightly",
12
+ "@regulaforensics/idv-module-document-reader": "3.6.78-nightly",
13
+ "@regulaforensics/idv-module-face": "3.6.77-nightly",
14
+ "@regulaforensics/document-reader-core-fullauthrfid": "9.5.2382",
15
+ "@regulaforensics/face-core-basic": "8.2.521",
16
+ "expo": "^56.0.8",
17
+ "expo-dev-client": "^56.0.18",
18
+ "expo-build-properties": "^56.0.16",
25
19
  "expo-custom-assets": "^1.5.0",
26
- "expo-build-properties": "^1.0.8",
27
- "typescript": "5.9.2"
20
+ "react-native": "^0.85.3",
21
+ "@react-native/metro-config": "^0.85.3",
22
+ "react": "^19.2.7",
23
+ "@types/react": "^19.2.16",
24
+ "react-native-webview": "^13.16.1",
25
+ "typescript": "6.0.3"
26
+ },
27
+ "overrides": {
28
+ "uuid": "^11.1.1"
28
29
  }
29
30
  }
package/ios/Main.swift CHANGED
@@ -4,10 +4,12 @@ let didStartSessionEvent = "didStartSessionEvent"
4
4
  let didEndSessionEvent = "didEndSessionEvent"
5
5
  let didStartRestoreSessionEvent = "didStartRestoreSessionEvent"
6
6
  let didContinueRemoteSessionEvent = "didContinueRemoteSessionEvent"
7
+ let didReceiveLogEventEvent = "didReceiveLogEventEvent"
7
8
 
8
9
  func methodCall(_ method: String, _ callback: @escaping Callback) {
9
10
  switch method {
10
11
  case("setSessionRestoreMode"): IDV.shared.sessionRestoreMode = SessionRestoreMode(rawValue: args(0))!
12
+ case("setLogLevel"): IDV.shared.logLevel = Set((args(0) as [Int]).compactMap{ IDVLogLevel(rawValue: $0) })
11
13
  case("getCurrentSessionId"): callback(IDV.shared.currentSessionId)
12
14
  case("initialize"): initialize(callback)
13
15
  case("deinitialize"): deinitialize(callback)
@@ -101,5 +103,11 @@ class IDVDelegate: IDVSDK.IDVDelegate {
101
103
  func didEndSession(idv: IDV) { sendEvent(didEndSessionEvent) }
102
104
  func didStartRestoreSession(idv: IDV) { sendEvent(didStartRestoreSessionEvent) }
103
105
  func didContinueRemoteSession(idv: IDV) { sendEvent(didContinueRemoteSessionEvent) }
106
+ func didReceiveLogEvent(idv: IDV, logEvent: IDVSDK.IDVLogEvent) {
107
+ sendEvent(didReceiveLogEventEvent, [
108
+ "level": logEvent.logLevel.rawValue,
109
+ "message": logEvent.message,
110
+ ])
111
+ }
104
112
  }
105
113
  let delegate = IDVDelegate()
package/ios/RNIDV.swift CHANGED
@@ -8,7 +8,8 @@ public class RNIDV: RCTEventEmitter {
8
8
  return [didStartSessionEvent,
9
9
  didEndSessionEvent,
10
10
  didStartRestoreSessionEvent,
11
- didContinueRemoteSessionEvent];
11
+ didContinueRemoteSessionEvent,
12
+ didReceiveLogEventEvent];
12
13
  }
13
14
 
14
15
  @objc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv",
3
- "version": "3.4.86-beta",
3
+ "version": "3.6.97-nightly",
4
4
  "description": "This is an npm module for Regula IDV, which unifies access to all Regula products. This plugin makes possible to use it with react-native, cordova and capacitor applications. Supports Android and iOS.",
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/idv" version="3.4.86-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/idv" version="3.6.97-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>IDV</name>
4
4
  <description>Cordova plugin for Regula IDV</description>
5
5
  <license>commercial</license>
@@ -26,7 +26,7 @@
26
26
  <source url="https://github.com/CocoaPods/Specs.git" />
27
27
  </config>
28
28
  <pods>
29
- <pod name="IDVSDK" spec="3.4.1784" />
29
+ <pod name="IDVSDKNightly" spec="3.6.1898" />
30
30
  </pods>
31
31
  </podspec>
32
32
  </platform>
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/idv",
16
- "version": "3.4.86-beta",
16
+ "version": "1.0.0",
17
17
  "dev": true,
18
18
  "license": "commercial"
19
19
  },
@@ -23,12 +23,17 @@ export class IDV {
23
23
  setDidEndSessionCompletion(value.didEndSession)
24
24
  setDidStartRestoreSessionCompletion(value.didStartRestoreSession)
25
25
  setDidContinueRemoteSessionCompletion(value.didContinueRemoteSession)
26
+ setDidReceiveLogEventCompletion(value.didReceiveLogEvent)
26
27
  }
27
28
 
28
29
  set sessionRestoreMode(val) {
29
30
  exec('setSessionRestoreMode', [val])
30
31
  }
31
32
 
33
+ set logLevel(val) {
34
+ exec('setLogLevel', [val])
35
+ }
36
+
32
37
  async getCurrentSessionId() {
33
38
  return await exec('getCurrentSessionId', [])
34
39
  }
@@ -96,6 +101,13 @@ export const SessionRestoreMode = {
96
101
  DISABLED: 1,
97
102
  }
98
103
 
104
+ export const IdvLogLevel = {
105
+ DEBUG: 0,
106
+ INFO: 1,
107
+ WARNING: 2,
108
+ ERROR: 3,
109
+ }
110
+
99
111
  function completionFromResponse(response, transform) {
100
112
  const jsonObject = JSON.parse(response)
101
113
  let success = jsonObject['success']
@@ -34,3 +34,12 @@ export function setDidStartRestoreSessionCompletion(completion) {
34
34
  export function setDidContinueRemoteSessionCompletion(completion) {
35
35
  setEvent('didContinueRemoteSessionEvent', completion)
36
36
  }
37
+
38
+ export function setDidReceiveLogEventCompletion(completion) {
39
+ setEvent('didReceiveLogEventEvent', completion, json => {
40
+ var jsonObject = JSON.parse(json)
41
+ var level = jsonObject["level"];
42
+ var message = jsonObject["message"];
43
+ return [level, message]
44
+ })
45
+ }
package/www/cordova.js CHANGED
@@ -292,6 +292,7 @@ __webpack_require__.r(__webpack_exports__);
292
292
  /* harmony export */ serializeInterface: () => (/* binding */ serializeInterface),
293
293
  /* harmony export */ setDidContinueRemoteSessionCompletion: () => (/* binding */ setDidContinueRemoteSessionCompletion),
294
294
  /* harmony export */ setDidEndSessionCompletion: () => (/* binding */ setDidEndSessionCompletion),
295
+ /* harmony export */ setDidReceiveLogEventCompletion: () => (/* binding */ setDidReceiveLogEventCompletion),
295
296
  /* harmony export */ setDidStartRestoreSessionCompletion: () => (/* binding */ setDidStartRestoreSessionCompletion),
296
297
  /* harmony export */ setDidStartSessionCompletion: () => (/* binding */ setDidStartSessionCompletion)
297
298
  /* harmony export */ });
@@ -333,6 +334,15 @@ function setDidContinueRemoteSessionCompletion(completion) {
333
334
  setEvent('didContinueRemoteSessionEvent', completion)
334
335
  }
335
336
 
337
+ function setDidReceiveLogEventCompletion(completion) {
338
+ setEvent('didReceiveLogEventEvent', completion, json => {
339
+ var jsonObject = JSON.parse(json)
340
+ var level = jsonObject["level"];
341
+ var message = jsonObject["message"];
342
+ return [level, message]
343
+ })
344
+ }
345
+
336
346
 
337
347
  /***/ },
338
348
 
@@ -551,6 +561,7 @@ __webpack_require__.r(__webpack_exports__);
551
561
  /* harmony export */ ApiKeyConnectionConfig: () => (/* reexport safe */ _config_api_key_connection_config__WEBPACK_IMPORTED_MODULE_3__.ApiKeyConnectionConfig),
552
562
  /* harmony export */ CredentialsConnectionConfig: () => (/* reexport safe */ _config_credentials_connection_config__WEBPACK_IMPORTED_MODULE_2__.CredentialsConnectionConfig),
553
563
  /* harmony export */ IDV: () => (/* binding */ IDV),
564
+ /* harmony export */ IdvLogLevel: () => (/* binding */ IdvLogLevel),
554
565
  /* harmony export */ PrepareWorkflowConfig: () => (/* reexport safe */ _config_prepare_workflow_config__WEBPACK_IMPORTED_MODULE_4__.PrepareWorkflowConfig),
555
566
  /* harmony export */ SendDataConfig: () => (/* reexport safe */ _config_send_data_config__WEBPACK_IMPORTED_MODULE_7__.SendDataConfig),
556
567
  /* harmony export */ SessionRestoreMode: () => (/* binding */ SessionRestoreMode),
@@ -597,12 +608,17 @@ class IDV {
597
608
  ;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.setDidEndSessionCompletion)(value.didEndSession)
598
609
  ;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.setDidStartRestoreSessionCompletion)(value.didStartRestoreSession)
599
610
  ;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.setDidContinueRemoteSessionCompletion)(value.didContinueRemoteSession)
611
+ setDidReceiveLogEventCompletion(value.didReceiveLogEvent)
600
612
  }
601
613
 
602
614
  set sessionRestoreMode(val) {
603
615
  (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)('setSessionRestoreMode', [val])
604
616
  }
605
617
 
618
+ set logLevel(val) {
619
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)('setLogLevel', [val])
620
+ }
621
+
606
622
  async getCurrentSessionId() {
607
623
  return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)('getCurrentSessionId', [])
608
624
  }
@@ -670,6 +686,13 @@ const SessionRestoreMode = {
670
686
  DISABLED: 1,
671
687
  }
672
688
 
689
+ const IdvLogLevel = {
690
+ DEBUG: 0,
691
+ INFO: 1,
692
+ WARNING: 2,
693
+ ERROR: 3,
694
+ }
695
+
673
696
  function completionFromResponse(response, transform) {
674
697
  const jsonObject = JSON.parse(response)
675
698
  let success = jsonObject['success']
@@ -23,12 +23,17 @@ export class IDV {
23
23
  setDidEndSessionCompletion(value.didEndSession)
24
24
  setDidStartRestoreSessionCompletion(value.didStartRestoreSession)
25
25
  setDidContinueRemoteSessionCompletion(value.didContinueRemoteSession)
26
+ setDidReceiveLogEventCompletion(value.didReceiveLogEvent)
26
27
  }
27
28
 
28
29
  set sessionRestoreMode(val) {
29
30
  exec('setSessionRestoreMode', [val])
30
31
  }
31
32
 
33
+ set logLevel(val) {
34
+ exec('setLogLevel', [val])
35
+ }
36
+
32
37
  async getCurrentSessionId() {
33
38
  return await exec('getCurrentSessionId', [])
34
39
  }
@@ -96,6 +101,13 @@ export const SessionRestoreMode = {
96
101
  DISABLED: 1,
97
102
  }
98
103
 
104
+ export const IdvLogLevel = {
105
+ DEBUG: 0,
106
+ INFO: 1,
107
+ WARNING: 2,
108
+ ERROR: 3,
109
+ }
110
+
99
111
  function completionFromResponse(response, transform) {
100
112
  const jsonObject = JSON.parse(response)
101
113
  let success = jsonObject['success']
@@ -34,3 +34,12 @@ export function setDidStartRestoreSessionCompletion(completion) {
34
34
  export function setDidContinueRemoteSessionCompletion(completion) {
35
35
  setEvent('didContinueRemoteSessionEvent', completion)
36
36
  }
37
+
38
+ export function setDidReceiveLogEventCompletion(completion) {
39
+ setEvent('didReceiveLogEventEvent', completion, json => {
40
+ var jsonObject = JSON.parse(json)
41
+ var level = jsonObject["level"];
42
+ var message = jsonObject["message"];
43
+ return [level, message]
44
+ })
45
+ }
@@ -25,6 +25,9 @@ export class IDV {
25
25
 
26
26
  set sessionRestoreMode(value: SessionRestoreMode)
27
27
 
28
+ /** Default: empty set. */
29
+ set logLevel(value: Set<IdvLogLevel>)
30
+
28
31
  getCurrentSessionId(): Promise<string | null>
29
32
 
30
33
  initialize(): Promise<[boolean, string | null]>
@@ -58,4 +61,14 @@ export interface IDVListenerOptions {
58
61
  didEndSession?: () => void
59
62
  didStartRestoreSession?: () => void
60
63
  didContinueRemoteSession?: () => void
64
+ didReceiveLogEvent?: IdvLogEventCompletion
65
+ }
66
+
67
+ export type IdvLogEventCompletion = (level: IdvLogLevel, message: string) => void;
68
+
69
+ export enum IdvLogLevel {
70
+ DEBUG = 0,
71
+ INFO = 1,
72
+ WARNING = 2,
73
+ ERROR = 3,
61
74
  }