@regulaforensics/react-native-document-reader-api 9.2.396-nightly → 9.2.398-rc

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.
@@ -14,6 +14,6 @@ Pod::Spec.new do |s|
14
14
  s.source = { :http => 'file:' + __dir__ }
15
15
  s.ios.deployment_target = '13.0'
16
16
  s.source_files = "ios/*.{h,m}"
17
- s.dependency 'DocumentReaderNightly', '9.2.5776'
17
+ s.dependency 'DocumentReaderStage', '9.2.5778'
18
18
  s.dependency 'React'
19
19
  end
@@ -20,7 +20,7 @@ android {
20
20
  rootProject.allprojects {
21
21
  repositories {
22
22
  maven {
23
- url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
23
+ url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
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.2.12294') {
32
+ implementation('com.regula.documentreader:api:9.2.12298') {
33
33
  transitive = true
34
34
  }
35
35
  }
@@ -1997,8 +1997,8 @@ fun generateDocumentRequestMDL(input: DocumentRequestMDL?): JSONObject? = input?
1997
1997
  fun documentRequest18013MDLFromJSON(input: JSONObject?) = input?.let {
1998
1998
  val result = DocumentRequest18013MDL()
1999
1999
 
2000
- if (it.has("docType")) result.setPrivateProperty("docType", it.getString("docType"))
2001
- if (it.has("namespaces")) result.setPrivateProperty("nameSpaceMDLs", it.getJSONArray("namespaces").toList(::nameSpaceMDLFromJSON))
2000
+ result.setPrivateProperty("docType", it.getString("docType"))
2001
+ result.setPrivateProperty("nameSpaceMDLs", it.getJSONArray("namespaces").toList(::nameSpaceMDLFromJSON))
2002
2002
  result.familyName = it.getIntOrNull("familyName")?.let { enm -> eMDLIntentToRetain.values()[enm] }
2003
2003
  result.givenName = it.getIntOrNull("givenName")?.let { enm -> eMDLIntentToRetain.values()[enm] }
2004
2004
  result.birthDate = it.getIntOrNull("birthDate")?.let { enm -> eMDLIntentToRetain.values()[enm] }
@@ -4402,24 +4402,24 @@
4402
4402
  }
4403
4403
  },
4404
4404
  "node_modules/body-parser": {
4405
- "version": "1.20.4",
4406
- "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.4.tgz",
4407
- "integrity": "sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA==",
4405
+ "version": "1.20.3",
4406
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
4407
+ "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
4408
4408
  "devOptional": true,
4409
4409
  "license": "MIT",
4410
4410
  "dependencies": {
4411
- "bytes": "~3.1.2",
4411
+ "bytes": "3.1.2",
4412
4412
  "content-type": "~1.0.5",
4413
4413
  "debug": "2.6.9",
4414
4414
  "depd": "2.0.0",
4415
- "destroy": "~1.2.0",
4416
- "http-errors": "~2.0.1",
4417
- "iconv-lite": "~0.4.24",
4418
- "on-finished": "~2.4.1",
4419
- "qs": "~6.14.0",
4420
- "raw-body": "~2.5.3",
4415
+ "destroy": "1.2.0",
4416
+ "http-errors": "2.0.0",
4417
+ "iconv-lite": "0.4.24",
4418
+ "on-finished": "2.4.1",
4419
+ "qs": "6.13.0",
4420
+ "raw-body": "2.5.2",
4421
4421
  "type-is": "~1.6.18",
4422
- "unpipe": "~1.0.0"
4422
+ "unpipe": "1.0.0"
4423
4423
  },
4424
4424
  "engines": {
4425
4425
  "node": ">= 0.8",
@@ -4436,27 +4436,6 @@
4436
4436
  "ms": "2.0.0"
4437
4437
  }
4438
4438
  },
4439
- "node_modules/body-parser/node_modules/http-errors": {
4440
- "version": "2.0.1",
4441
- "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
4442
- "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
4443
- "devOptional": true,
4444
- "license": "MIT",
4445
- "dependencies": {
4446
- "depd": "~2.0.0",
4447
- "inherits": "~2.0.4",
4448
- "setprototypeof": "~1.2.0",
4449
- "statuses": "~2.0.2",
4450
- "toidentifier": "~1.0.1"
4451
- },
4452
- "engines": {
4453
- "node": ">= 0.8"
4454
- },
4455
- "funding": {
4456
- "type": "opencollective",
4457
- "url": "https://opencollective.com/express"
4458
- }
4459
- },
4460
4439
  "node_modules/body-parser/node_modules/ms": {
4461
4440
  "version": "2.0.0",
4462
4441
  "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
@@ -4464,16 +4443,6 @@
4464
4443
  "devOptional": true,
4465
4444
  "license": "MIT"
4466
4445
  },
4467
- "node_modules/body-parser/node_modules/statuses": {
4468
- "version": "2.0.2",
4469
- "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
4470
- "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
4471
- "devOptional": true,
4472
- "license": "MIT",
4473
- "engines": {
4474
- "node": ">= 0.8"
4475
- }
4476
- },
4477
4446
  "node_modules/boolbase": {
4478
4447
  "version": "1.0.0",
4479
4448
  "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
@@ -10592,13 +10561,13 @@
10592
10561
  "license": "MIT"
10593
10562
  },
10594
10563
  "node_modules/qs": {
10595
- "version": "6.14.1",
10596
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.1.tgz",
10597
- "integrity": "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==",
10564
+ "version": "6.13.0",
10565
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
10566
+ "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
10598
10567
  "devOptional": true,
10599
10568
  "license": "BSD-3-Clause",
10600
10569
  "dependencies": {
10601
- "side-channel": "^1.1.0"
10570
+ "side-channel": "^1.0.6"
10602
10571
  },
10603
10572
  "engines": {
10604
10573
  "node": ">=0.6"
@@ -10647,48 +10616,17 @@
10647
10616
  }
10648
10617
  },
10649
10618
  "node_modules/raw-body": {
10650
- "version": "2.5.3",
10651
- "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
10652
- "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
10653
- "devOptional": true,
10654
- "license": "MIT",
10655
- "dependencies": {
10656
- "bytes": "~3.1.2",
10657
- "http-errors": "~2.0.1",
10658
- "iconv-lite": "~0.4.24",
10659
- "unpipe": "~1.0.0"
10660
- },
10661
- "engines": {
10662
- "node": ">= 0.8"
10663
- }
10664
- },
10665
- "node_modules/raw-body/node_modules/http-errors": {
10666
- "version": "2.0.1",
10667
- "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
10668
- "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
10619
+ "version": "2.5.2",
10620
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
10621
+ "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
10669
10622
  "devOptional": true,
10670
10623
  "license": "MIT",
10671
10624
  "dependencies": {
10672
- "depd": "~2.0.0",
10673
- "inherits": "~2.0.4",
10674
- "setprototypeof": "~1.2.0",
10675
- "statuses": "~2.0.2",
10676
- "toidentifier": "~1.0.1"
10677
- },
10678
- "engines": {
10679
- "node": ">= 0.8"
10625
+ "bytes": "3.1.2",
10626
+ "http-errors": "2.0.0",
10627
+ "iconv-lite": "0.4.24",
10628
+ "unpipe": "1.0.0"
10680
10629
  },
10681
- "funding": {
10682
- "type": "opencollective",
10683
- "url": "https://opencollective.com/express"
10684
- }
10685
- },
10686
- "node_modules/raw-body/node_modules/statuses": {
10687
- "version": "2.0.2",
10688
- "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
10689
- "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
10690
- "devOptional": true,
10691
- "license": "MIT",
10692
10630
  "engines": {
10693
10631
  "node": ">= 0.8"
10694
10632
  }
@@ -10,8 +10,8 @@
10
10
  "test": "jest"
11
11
  },
12
12
  "dependencies": {
13
- "@regulaforensics/react-native-document-reader-api": "9.2.396-nightly",
14
- "@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.2.1756-nightly",
13
+ "@regulaforensics/react-native-document-reader-api": "9.2.398-rc",
14
+ "@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.2.1758-rc",
15
15
  "@rneui/base": "4.0.0-rc.7",
16
16
  "@rneui/themed": "4.0.0-rc.7",
17
17
  "react": "19.0.0",
package/index.d.ts CHANGED
@@ -3023,21 +3023,6 @@ export class DeviceEngagement {
3023
3023
  }
3024
3024
  }
3025
3025
 
3026
- export class DeviceEngagementCompletion {
3027
- deviceEngagement?: DeviceEngagement
3028
- error?: RegulaException
3029
-
3030
- static fromJson(jsonObject?: any): DeviceEngagementCompletion | undefined {
3031
- if (jsonObject == null || jsonObject == undefined) return undefined
3032
- const result = new DeviceEngagementCompletion
3033
-
3034
- result.deviceEngagement = DeviceEngagement.fromJson(jsonObject["deviceEngagement"])
3035
- result.error = RegulaException.fromJson(jsonObject["error"])
3036
-
3037
- return result
3038
- }
3039
- }
3040
-
3041
3026
  export class DeviceRetrievalMethod {
3042
3027
  type?: number
3043
3028
  version?: number
@@ -3068,7 +3053,7 @@ export class DeviceRetrievalMethod {
3068
3053
  export class DataRetrieval {
3069
3054
  deviceRetrieval?: number
3070
3055
  docRequestPreset?: number
3071
- intentToRetain?: number
3056
+ intentToRetain?: boolean
3072
3057
  requests?: any[]
3073
3058
 
3074
3059
  static fromJson(jsonObject?: any): DataRetrieval | undefined {
package/index.js CHANGED
@@ -1963,18 +1963,6 @@ export class DeviceEngagement {
1963
1963
  }
1964
1964
  }
1965
1965
 
1966
- export class DeviceEngagementCompletion {
1967
- static fromJson(jsonObject) {
1968
- if (jsonObject == null) return null
1969
- const result = new DeviceEngagementCompletion()
1970
-
1971
- result.deviceEngagement = DeviceEngagement.fromJson(jsonObject["deviceEngagement"])
1972
- result.error = RegulaException.fromJson(jsonObject["error"])
1973
-
1974
- return result
1975
- }
1976
- }
1977
-
1978
1966
  export class DeviceRetrievalMethod {
1979
1967
  static fromJson(jsonObject) {
1980
1968
  if (jsonObject == null) return null
@@ -159,9 +159,9 @@ static NSMutableArray* weakReferencesHolder;
159
159
  if (!input[@"license"]) return nil;
160
160
  RGLConfig *config = [[RGLConfig alloc] initWithLicenseData:[self base64Decode: input[@"license"]]];
161
161
 
162
- if (input[@"databasePath"]) config.databasePath = input[@"databasePath"];
163
- if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
162
+ if (input[@"databasePath"]) config.databasePath = [[NSBundle mainBundle] pathForResource:input[@"databasePath"] ofType:nil];
164
163
  if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
164
+ if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
165
165
  if (input[@"delayedNNLoad"]) config.delayedNNLoadEnabled = [input[@"delayedNNLoad"] boolValue];
166
166
 
167
167
  return config;
@@ -173,8 +173,8 @@ static NSMutableArray* weakReferencesHolder;
173
173
 
174
174
  result[@"license"] = [self base64Encode: input.licenseData];
175
175
  result[@"databasePath"] = input.databasePath;
176
- result[@"licenseUpdateTimeout"] = input.licenseUpdateTimeout;
177
176
  result[@"licenseUpdate"] = @(input.licenseUpdateCheck);
177
+ result[@"licenseUpdateTimeout"] = input.licenseUpdateTimeout;
178
178
  result[@"delayedNNLoad"] = @(input.delayedNNLoadEnabled);
179
179
 
180
180
  return result;
@@ -184,9 +184,9 @@ static NSMutableArray* weakReferencesHolder;
184
184
  if (!input) return nil;
185
185
  RGLBleConfig *config = [[RGLBleConfig alloc] initWithBluetooth:bluetooth];
186
186
 
187
- if (input[@"databasePath"]) config.databasePath = input[@"databasePath"];
188
- if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
187
+ if (input[@"databasePath"]) config.databasePath = [[NSBundle mainBundle] pathForResource:input[@"databasePath"] ofType:nil];
189
188
  if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
189
+ if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
190
190
  if (input[@"delayedNNLoad"]) config.delayedNNLoadEnabled = [input[@"delayedNNLoad"] boolValue];
191
191
 
192
192
  return config;
@@ -2459,16 +2459,12 @@ static NSMutableArray* weakReferencesHolder;
2459
2459
  if(input == nil) return nil;
2460
2460
  RGLDocumentRequest18013MDL* result = [RGLDocumentRequest18013MDL new];
2461
2461
 
2462
- if ([input valueForKey:@"docType"] != nil) {
2463
- [result setValue:[input valueForKey:@"docType"] forKey:@"docType"];
2464
- }
2465
- if ([input valueForKey:@"namespaces"] != nil) {
2466
- NSMutableArray<RGLNameSpaceMDL*>* nameSpaces = [NSMutableArray new];
2467
- for(NSDictionary* item in [input valueForKey:@"namespaces"]){
2468
- [nameSpaces addObject:[self nameSpaceMDLFromJson: item]];
2469
- }
2470
- [result setValue:nameSpaces forKey:@"nameSpaces"];
2462
+ [result setValue:[input valueForKey:@"docType"] forKey:@"docType"];
2463
+ NSMutableArray<RGLNameSpaceMDL*>* nameSpaces = [NSMutableArray new];
2464
+ for(NSDictionary* item in [input valueForKey:@"namespaces"]){
2465
+ [nameSpaces addObject:[self nameSpaceMDLFromJson: item]];
2471
2466
  }
2467
+ [result setValue:nameSpaces forKey:@"nameSpaces"];
2472
2468
  if (input[@"familyName"]) result.familyName = [input[@"familyName"] integerValue];
2473
2469
  if (input[@"givenName"]) result.givenName = [input[@"givenName"] integerValue];
2474
2470
  if (input[@"birthDate"]) result.birthDate = [input[@"birthDate"] integerValue];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/react-native-document-reader-api",
3
- "version": "9.2.396-nightly",
3
+ "version": "9.2.398-rc",
4
4
  "description": "React Native module for reading and validation of identification documents (API framework)",
5
5
  "main": "index.js",
6
6
  "scripts": {