@regulaforensics/react-native-document-reader-api 9.2.391-rc → 9.2.392-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.
- package/RNDocumentReaderApi.podspec +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +2 -2
- package/example/package-lock.json +84 -22
- package/example/package.json +2 -2
- package/index.d.ts +16 -1
- package/index.js +12 -0
- package/ios/RGLWJSONConstructor.m +14 -10
- package/package.json +1 -1
|
@@ -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 '
|
|
17
|
+
s.dependency 'DocumentReaderNightly', '9.2.5750'
|
|
18
18
|
s.dependency 'React'
|
|
19
19
|
end
|
package/android/build.gradle
CHANGED
|
@@ -20,7 +20,7 @@ android {
|
|
|
20
20
|
rootProject.allprojects {
|
|
21
21
|
repositories {
|
|
22
22
|
maven {
|
|
23
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader/
|
|
23
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
|
|
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.
|
|
32
|
+
implementation('com.regula.documentreader:api:9.2.12279') {
|
|
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
|
-
result.setPrivateProperty("docType", it.getString("docType"))
|
|
2001
|
-
result.setPrivateProperty("nameSpaceMDLs", it.getJSONArray("namespaces").toList(::nameSpaceMDLFromJSON))
|
|
2000
|
+
if (it.has("docType")) result.setPrivateProperty("docType", it.getString("docType"))
|
|
2001
|
+
if (it.has("namespaces")) 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.
|
|
4406
|
-
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.
|
|
4407
|
-
"integrity": "sha512-
|
|
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==",
|
|
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.
|
|
4417
|
-
"iconv-lite": "0.4.24",
|
|
4418
|
-
"on-finished": "2.4.1",
|
|
4419
|
-
"qs": "6.
|
|
4420
|
-
"raw-body": "2.5.
|
|
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",
|
|
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,6 +4436,27 @@
|
|
|
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
|
+
},
|
|
4439
4460
|
"node_modules/body-parser/node_modules/ms": {
|
|
4440
4461
|
"version": "2.0.0",
|
|
4441
4462
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
|
@@ -4443,6 +4464,16 @@
|
|
|
4443
4464
|
"devOptional": true,
|
|
4444
4465
|
"license": "MIT"
|
|
4445
4466
|
},
|
|
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
|
+
},
|
|
4446
4477
|
"node_modules/boolbase": {
|
|
4447
4478
|
"version": "1.0.0",
|
|
4448
4479
|
"resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
|
|
@@ -10561,13 +10592,13 @@
|
|
|
10561
10592
|
"license": "MIT"
|
|
10562
10593
|
},
|
|
10563
10594
|
"node_modules/qs": {
|
|
10564
|
-
"version": "6.
|
|
10565
|
-
"resolved": "https://registry.npmjs.org/qs/-/qs-6.
|
|
10566
|
-
"integrity": "sha512
|
|
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==",
|
|
10567
10598
|
"devOptional": true,
|
|
10568
10599
|
"license": "BSD-3-Clause",
|
|
10569
10600
|
"dependencies": {
|
|
10570
|
-
"side-channel": "^1.0
|
|
10601
|
+
"side-channel": "^1.1.0"
|
|
10571
10602
|
},
|
|
10572
10603
|
"engines": {
|
|
10573
10604
|
"node": ">=0.6"
|
|
@@ -10616,21 +10647,52 @@
|
|
|
10616
10647
|
}
|
|
10617
10648
|
},
|
|
10618
10649
|
"node_modules/raw-body": {
|
|
10619
|
-
"version": "2.5.
|
|
10620
|
-
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.
|
|
10621
|
-
"integrity": "sha512-
|
|
10650
|
+
"version": "2.5.3",
|
|
10651
|
+
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
|
|
10652
|
+
"integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
|
|
10622
10653
|
"devOptional": true,
|
|
10623
10654
|
"license": "MIT",
|
|
10624
10655
|
"dependencies": {
|
|
10625
|
-
"bytes": "3.1.2",
|
|
10626
|
-
"http-errors": "2.0.
|
|
10627
|
-
"iconv-lite": "0.4.24",
|
|
10628
|
-
"unpipe": "1.0.0"
|
|
10656
|
+
"bytes": "~3.1.2",
|
|
10657
|
+
"http-errors": "~2.0.1",
|
|
10658
|
+
"iconv-lite": "~0.4.24",
|
|
10659
|
+
"unpipe": "~1.0.0"
|
|
10629
10660
|
},
|
|
10630
10661
|
"engines": {
|
|
10631
10662
|
"node": ">= 0.8"
|
|
10632
10663
|
}
|
|
10633
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==",
|
|
10669
|
+
"devOptional": true,
|
|
10670
|
+
"license": "MIT",
|
|
10671
|
+
"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"
|
|
10680
|
+
},
|
|
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
|
+
"engines": {
|
|
10693
|
+
"node": ">= 0.8"
|
|
10694
|
+
}
|
|
10695
|
+
},
|
|
10634
10696
|
"node_modules/react": {
|
|
10635
10697
|
"version": "19.0.0",
|
|
10636
10698
|
"resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz",
|
package/example/package.json
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"test": "jest"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@regulaforensics/react-native-document-reader-api": "9.2.
|
|
14
|
-
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.2.
|
|
13
|
+
"@regulaforensics/react-native-document-reader-api": "9.2.392-nightly",
|
|
14
|
+
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.2.1740-nightly",
|
|
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,6 +3023,21 @@ 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
|
+
|
|
3026
3041
|
export class DeviceRetrievalMethod {
|
|
3027
3042
|
type?: number
|
|
3028
3043
|
version?: number
|
|
@@ -3053,7 +3068,7 @@ export class DeviceRetrievalMethod {
|
|
|
3053
3068
|
export class DataRetrieval {
|
|
3054
3069
|
deviceRetrieval?: number
|
|
3055
3070
|
docRequestPreset?: number
|
|
3056
|
-
intentToRetain?:
|
|
3071
|
+
intentToRetain?: number
|
|
3057
3072
|
requests?: any[]
|
|
3058
3073
|
|
|
3059
3074
|
static fromJson(jsonObject?: any): DataRetrieval | undefined {
|
package/index.js
CHANGED
|
@@ -1963,6 +1963,18 @@ 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
|
+
|
|
1966
1978
|
export class DeviceRetrievalMethod {
|
|
1967
1979
|
static fromJson(jsonObject) {
|
|
1968
1980
|
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 =
|
|
163
|
-
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
162
|
+
if (input[@"databasePath"]) config.databasePath = input[@"databasePath"];
|
|
164
163
|
if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
|
|
164
|
+
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
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[@"licenseUpdate"] = @(input.licenseUpdateCheck);
|
|
177
176
|
result[@"licenseUpdateTimeout"] = input.licenseUpdateTimeout;
|
|
177
|
+
result[@"licenseUpdate"] = @(input.licenseUpdateCheck);
|
|
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 =
|
|
188
|
-
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
187
|
+
if (input[@"databasePath"]) config.databasePath = input[@"databasePath"];
|
|
189
188
|
if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
|
|
189
|
+
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
190
190
|
if (input[@"delayedNNLoad"]) config.delayedNNLoadEnabled = [input[@"delayedNNLoad"] boolValue];
|
|
191
191
|
|
|
192
192
|
return config;
|
|
@@ -2459,12 +2459,16 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
2459
2459
|
if(input == nil) return nil;
|
|
2460
2460
|
RGLDocumentRequest18013MDL* result = [RGLDocumentRequest18013MDL new];
|
|
2461
2461
|
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
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"];
|
|
2466
2471
|
}
|
|
2467
|
-
[result setValue:nameSpaces forKey:@"nameSpaces"];
|
|
2468
2472
|
if (input[@"familyName"]) result.familyName = [input[@"familyName"] integerValue];
|
|
2469
2473
|
if (input[@"givenName"]) result.givenName = [input[@"givenName"] integerValue];
|
|
2470
2474
|
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.
|
|
3
|
+
"version": "9.2.392-nightly",
|
|
4
4
|
"description": "React Native module for reading and validation of identification documents (API framework)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|