@regulaforensics/react-native-document-reader-api 9.7.695-nightly → 9.7.697-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.
@@ -10,8 +10,8 @@
10
10
  "test": "jest"
11
11
  },
12
12
  "dependencies": {
13
- "@regulaforensics/react-native-document-reader-api": "9.7.695-nightly",
14
- "@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.7.2968-nightly",
13
+ "@regulaforensics/react-native-document-reader-api": "9.7.697-rc",
14
+ "@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.7.2969-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",
@@ -24,7 +24,8 @@
24
24
  },
25
25
  "overrides": {
26
26
  "fast-xml-parser": "^5.5.8",
27
- "js-yaml": "^4.1.1"
27
+ "js-yaml": "^4.1.1",
28
+ "brace-expansion": "^5.0.7"
28
29
  },
29
30
  "devDependencies": {
30
31
  "@babel/core": "^7.26.0",
package/index.d.ts CHANGED
@@ -2115,6 +2115,7 @@ export class FaceApiParams {
2115
2115
  proxy?: string
2116
2116
  proxyPassword?: string
2117
2117
  proxyType?: number
2118
+ livenessTransactionId?: string
2118
2119
 
2119
2120
  static fromJson(jsonObject?: any): FaceApiParams | undefined {
2120
2121
  if (jsonObject == null || jsonObject == undefined) return undefined
@@ -2128,6 +2129,7 @@ export class FaceApiParams {
2128
2129
  result.proxy = jsonObject["proxy"]
2129
2130
  result.proxyPassword = jsonObject["proxyPassword"]
2130
2131
  result.proxyType = jsonObject["proxyType"]
2132
+ result.livenessTransactionId = jsonObject["livenessTransactionId"]
2131
2133
 
2132
2134
  return result
2133
2135
  }
@@ -2194,6 +2196,19 @@ export class LivenessParams {
2194
2196
  }
2195
2197
  }
2196
2198
 
2199
+ export class AuthenticityPropertiesParams {
2200
+ checkHoldersSignature?: boolean
2201
+
2202
+ static fromJson(jsonObject?: any): AuthenticityPropertiesParams | undefined {
2203
+ if (jsonObject == null || jsonObject == undefined) return undefined
2204
+ const result = new AuthenticityPropertiesParams
2205
+
2206
+ result.checkHoldersSignature = jsonObject["checkHoldersSignature"]
2207
+
2208
+ return result
2209
+ }
2210
+ }
2211
+
2197
2212
  export class AuthenticityParams {
2198
2213
  useLivenessCheck?: boolean
2199
2214
  livenessParams?: LivenessParams
@@ -2211,6 +2226,8 @@ export class AuthenticityParams {
2211
2226
  checkPhotoComparison?: boolean
2212
2227
  checkLetterScreen?: boolean
2213
2228
  checkSecurityText?: boolean
2229
+ checkProperties?: boolean
2230
+ propertiesParams?: AuthenticityPropertiesParams
2214
2231
 
2215
2232
  static fromJson(jsonObject?: any): AuthenticityParams | undefined {
2216
2233
  if (jsonObject == null || jsonObject == undefined) return undefined
@@ -2232,6 +2249,8 @@ export class AuthenticityParams {
2232
2249
  result.checkPhotoComparison = jsonObject["checkPhotoComparison"]
2233
2250
  result.checkLetterScreen = jsonObject["checkLetterScreen"]
2234
2251
  result.checkSecurityText = jsonObject["checkSecurityText"]
2252
+ result.checkProperties = jsonObject["checkProperties"]
2253
+ result.propertiesParams = AuthenticityPropertiesParams.fromJson(jsonObject["propertiesParams"])
2235
2254
 
2236
2255
  return result
2237
2256
  }
@@ -3497,6 +3516,8 @@ export const eRPRM_Authenticity = {
3497
3516
  OVI: 1024,
3498
3517
  LIVENESS: 2097152,
3499
3518
  OCR: 4194304,
3519
+ ENCRYPTED_IPI: 16777216,
3520
+ AUTHENTICITY_PROPERTY: 0x02000000,
3500
3521
  }
3501
3522
 
3502
3523
  export const CustomizationColor = {
@@ -4308,7 +4329,6 @@ export const eCheckDiagnose = {
4308
4329
  CHD_DOC_LIVENESS_BLACK_AND_WHITE_COPY_DETECTED: 239,
4309
4330
  DOC_LIVENESS_ELECTRONIC_DEVICE_DETECTED: 240,
4310
4331
  DOC_LIVENESS_INVALID_BARCODE_BACKGROUND: 241,
4311
- DOC_LIVENESS_VIRTUAL_CAMERA_DETECTED: 242,
4312
4332
  ICAO_IDB_BASE_32_ERROR: 243,
4313
4333
  ICAO_IDB_ZIPPED_ERROR: 244,
4314
4334
  ICAO_IDB_MESSAGE_ZONE_EMPTY: 245,
@@ -4316,6 +4336,10 @@ export const eCheckDiagnose = {
4316
4336
  ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT: 247,
4317
4337
  ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT: 248,
4318
4338
  INCORRECT_OBJECT_COLOR: 250,
4339
+ DOC_LIVENESS_VIRTUAL_CAMERA_DETECTED: 242,
4340
+ CHD_PROPERTY_NO_SIGNATURE: 260,
4341
+ CHD_PROPERTY_TEXT_AS_SIGNATURE: 261,
4342
+ CHD_PROPERTY_FINGERPRINT_AS_SIGNATURE: 262,
4319
4343
  }
4320
4344
 
4321
4345
  export const eMDLIntentToRetain = {
@@ -4731,6 +4755,7 @@ export const eRPRM_SecurityFeatureType = {
4731
4755
  SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_BARCODEVSGHOST: 59,
4732
4756
  SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_GHOSTVSLIVE: 60,
4733
4757
  SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_EXTVSGHOST: 61,
4758
+ SECURITY_FEATURE_TYPE_SIGNATURE_PRESENCE: 62,
4734
4759
  }
4735
4760
 
4736
4761
  export const OnlineMode = {
@@ -5854,7 +5879,9 @@ export const eVisualFieldType = {
5854
5879
  FT_JURISDICTION_SPECIFIC_DATA: 703,
5855
5880
  FT_DATA_DATE_OF_EXPIRY: 704,
5856
5881
  FT_CONSUL: 705,
5857
- FT_CANTON_REFERENCE: 706,
5882
+ FT_DLCLASSCODE_B3_FROM: 706,
5883
+ FT_DLCLASSCODE_B3_TO: 707,
5884
+ FT_DLCLASSCODE_B3_NOTES: 708,
5858
5885
  }
5859
5886
 
5860
5887
  export const DocReaderOrientation = {
package/index.js CHANGED
@@ -1435,6 +1435,7 @@ export class FaceApiParams {
1435
1435
  result.proxy = jsonObject["proxy"]
1436
1436
  result.proxyPassword = jsonObject["proxyPassword"]
1437
1437
  result.proxyType = jsonObject["proxyType"]
1438
+ result.livenessTransactionId = jsonObject["livenessTransactionId"]
1438
1439
 
1439
1440
  return result
1440
1441
  }
@@ -1484,6 +1485,17 @@ export class LivenessParams {
1484
1485
  }
1485
1486
  }
1486
1487
 
1488
+ export class AuthenticityPropertiesParams {
1489
+ static fromJson(jsonObject) {
1490
+ if (jsonObject == null) return null
1491
+ const result = new AuthenticityPropertiesParams()
1492
+
1493
+ result.checkHoldersSignature = jsonObject["checkHoldersSignature"]
1494
+
1495
+ return result
1496
+ }
1497
+ }
1498
+
1487
1499
  export class AuthenticityParams {
1488
1500
  static fromJson(jsonObject) {
1489
1501
  if (jsonObject == null) return null
@@ -1505,6 +1517,8 @@ export class AuthenticityParams {
1505
1517
  result.checkPhotoComparison = jsonObject["checkPhotoComparison"]
1506
1518
  result.checkLetterScreen = jsonObject["checkLetterScreen"]
1507
1519
  result.checkSecurityText = jsonObject["checkSecurityText"]
1520
+ result.checkProperties = jsonObject["checkProperties"]
1521
+ result.propertiesParams = AuthenticityPropertiesParams.fromJson(jsonObject["propertiesParams"])
1508
1522
 
1509
1523
  return result
1510
1524
  }
@@ -2285,6 +2299,8 @@ export const eRPRM_Authenticity = {
2285
2299
  OVI: 1024,
2286
2300
  LIVENESS: 2097152,
2287
2301
  OCR: 4194304,
2302
+ ENCRYPTED_IPI: 16777216,
2303
+ AUTHENTICITY_PROPERTY: 0x02000000,
2288
2304
  }
2289
2305
 
2290
2306
  export const CustomizationColor = {
@@ -3096,7 +3112,6 @@ export const eCheckDiagnose = {
3096
3112
  CHD_DOC_LIVENESS_BLACK_AND_WHITE_COPY_DETECTED: 239,
3097
3113
  DOC_LIVENESS_ELECTRONIC_DEVICE_DETECTED: 240,
3098
3114
  DOC_LIVENESS_INVALID_BARCODE_BACKGROUND: 241,
3099
- DOC_LIVENESS_VIRTUAL_CAMERA_DETECTED: 242,
3100
3115
  ICAO_IDB_BASE_32_ERROR: 243,
3101
3116
  ICAO_IDB_ZIPPED_ERROR: 244,
3102
3117
  ICAO_IDB_MESSAGE_ZONE_EMPTY: 245,
@@ -3104,6 +3119,10 @@ export const eCheckDiagnose = {
3104
3119
  ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT: 247,
3105
3120
  ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT: 248,
3106
3121
  INCORRECT_OBJECT_COLOR: 250,
3122
+ DOC_LIVENESS_VIRTUAL_CAMERA_DETECTED: 242,
3123
+ CHD_PROPERTY_NO_SIGNATURE: 260,
3124
+ CHD_PROPERTY_TEXT_AS_SIGNATURE: 261,
3125
+ CHD_PROPERTY_FINGERPRINT_AS_SIGNATURE: 262,
3107
3126
  }
3108
3127
 
3109
3128
  export const eMDLIntentToRetain = {
@@ -3519,6 +3538,7 @@ export const eRPRM_SecurityFeatureType = {
3519
3538
  SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_BARCODEVSGHOST: 59,
3520
3539
  SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_GHOSTVSLIVE: 60,
3521
3540
  SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_EXTVSGHOST: 61,
3541
+ SECURITY_FEATURE_TYPE_SIGNATURE_PRESENCE: 62,
3522
3542
  }
3523
3543
 
3524
3544
  export const OnlineMode = {
@@ -4642,7 +4662,9 @@ export const eVisualFieldType = {
4642
4662
  FT_JURISDICTION_SPECIFIC_DATA: 703,
4643
4663
  FT_DATA_DATE_OF_EXPIRY: 704,
4644
4664
  FT_CONSUL: 705,
4645
- FT_CANTON_REFERENCE: 706,
4665
+ FT_DLCLASSCODE_B3_FROM: 706,
4666
+ FT_DLCLASSCODE_B3_TO: 707,
4667
+ FT_DLCLASSCODE_B3_NOTES: 708,
4646
4668
  }
4647
4669
 
4648
4670
  export const DocReaderOrientation = {
package/ios/RGLWConfig.h CHANGED
@@ -19,6 +19,7 @@
19
19
  +(void)setImageQA:(RGLImageQA*)result input:(NSDictionary*)input;
20
20
  +(void)setAuthenticityParams:(RGLAuthenticityParams*)result input:(NSDictionary*)input;
21
21
  +(void)setLivenessParams:(RGLLivenessParams*)result input:(NSDictionary*)input;
22
+ +(void)setAuthenticityPropertiesParams:(RGLAuthenticityPropertiesParams*)result input:(NSDictionary*)input;
22
23
 
23
24
  +(NSDictionary*)getFunctionality:(RGLFunctionality*)functionality;
24
25
  +(NSDictionary*)getProcessParams:(RGLProcessParams*)processParams;
@@ -29,6 +30,7 @@
29
30
  +(NSDictionary*)getImageQA:(RGLImageQA*)input;
30
31
  +(NSDictionary*)getAuthenticityParams:(RGLAuthenticityParams*)input;
31
32
  +(NSDictionary*)getLivenessParams:(RGLLivenessParams*)input;
33
+ +(NSDictionary*)getAuthenticityPropertiesParams:(RGLAuthenticityPropertiesParams*)input;
32
34
 
33
35
  +(RGLImageQualityCheckType)imageQualityCheckTypeWithNumber:(NSNumber*)value;
34
36
  +(NSNumber*)generateDocReaderAction:(RGLDocReaderAction)action;
package/ios/RGLWConfig.m CHANGED
@@ -998,10 +998,6 @@
998
998
  +(void)setAuthenticityParams:(RGLAuthenticityParams*)result input:(NSDictionary*)input {
999
999
  if([input valueForKey:@"useLivenessCheck"] != nil)
1000
1000
  result.useLivenessCheck = [input valueForKey:@"useLivenessCheck"];
1001
- if([input valueForKey:@"livenessParams"] != nil) {
1002
- if(result.livenessParams == nil) result.livenessParams = [RGLLivenessParams defaultParams];
1003
- [self setLivenessParams:result.livenessParams input:[input valueForKey:@"livenessParams"]];
1004
- }
1005
1001
  if([input valueForKey:@"checkUVLuminiscence"] != nil)
1006
1002
  result.checkUVLuminiscence = [input valueForKey:@"checkUVLuminiscence"];
1007
1003
  if([input valueForKey:@"checkIRB900"] != nil)
@@ -1029,6 +1025,15 @@
1029
1025
  if([input valueForKey:@"checkLetterScreen"] != nil)
1030
1026
  result.checkLetterScreen = [input valueForKey:@"checkLetterScreen"];
1031
1027
  if(input[@"checkSecurityText"]) result.checkSecurityText = input[@"checkSecurityText"];
1028
+ if(input[@"checkProperties"]) result.checkProperties = input[@"checkProperties"];
1029
+ if(input[@"livenessParams"]) {
1030
+ if(!result.livenessParams) result.livenessParams = [RGLLivenessParams defaultParams];
1031
+ [self setLivenessParams:result.livenessParams input:input[@"livenessParams"]];
1032
+ }
1033
+ if(input[@"propertiesParams"]) {
1034
+ if(!result.propertiesParams) result.propertiesParams = [RGLAuthenticityPropertiesParams defaultParams];
1035
+ [self setAuthenticityPropertiesParams:result.propertiesParams input:input[@"propertiesParams"]];
1036
+ }
1032
1037
  }
1033
1038
 
1034
1039
  +(NSDictionary*)getAuthenticityParams:(RGLAuthenticityParams*)input {
@@ -1036,7 +1041,6 @@
1036
1041
  NSMutableDictionary *result = [NSMutableDictionary new];
1037
1042
 
1038
1043
  result[@"useLivenessCheck"] = input.useLivenessCheck;
1039
- result[@"livenessParams"] = [self getLivenessParams:input.livenessParams];
1040
1044
  result[@"checkUVLuminiscence"] = input.checkUVLuminiscence;
1041
1045
  result[@"checkIRB900"] = input.checkIRB900;
1042
1046
  result[@"checkImagePatterns"] = input.checkImagePatterns;
@@ -1051,6 +1055,9 @@
1051
1055
  result[@"checkPhotoComparison"] = input.checkPhotoComparison;
1052
1056
  result[@"checkLetterScreen"] = input.checkLetterScreen;
1053
1057
  result[@"checkSecurityText"] = input.checkSecurityText;
1058
+ result[@"checkProperties"] = input.checkProperties;
1059
+ result[@"livenessParams"] = [self getLivenessParams:input.livenessParams];
1060
+ result[@"propertiesParams"] = [self getAuthenticityPropertiesParams:input.propertiesParams];
1054
1061
 
1055
1062
  return result;
1056
1063
  }
@@ -1086,6 +1093,19 @@
1086
1093
  return result;
1087
1094
  }
1088
1095
 
1096
+ +(void)setAuthenticityPropertiesParams:(RGLAuthenticityPropertiesParams*)result input:(NSDictionary*)input {
1097
+ if(input[@"checkHoldersSignature"]) result.checkHoldersSignature = input[@"checkHoldersSignature"];
1098
+ }
1099
+
1100
+ +(NSDictionary*)getAuthenticityPropertiesParams:(RGLAuthenticityPropertiesParams*)input {
1101
+ if(input == nil) return nil;
1102
+ NSMutableDictionary *result = [NSMutableDictionary new];
1103
+
1104
+ result[@"checkHoldersSignature"] = input.checkHoldersSignature;
1105
+
1106
+ return result;
1107
+ }
1108
+
1089
1109
  +(void)setColors:(NSMutableDictionary*)result input:(NSDictionary*)input {
1090
1110
  if([input valueForKey:@"rfidProcessingScreenBackground"] != nil)
1091
1111
  result[@(RFIDProcessingScreenBackground)] = [self colorWithInt:[input valueForKey:@"rfidProcessingScreenBackground"]];
@@ -41,6 +41,8 @@
41
41
  +(NSDictionary* _Nullable)generateAuthenticityParams:(RGLAuthenticityParams* _Nullable)input;
42
42
  +(RGLLivenessParams* _Nullable)livenessParamsFromJson:(NSDictionary* _Nullable)input;
43
43
  +(NSDictionary* _Nullable)generateLivenessParams:(RGLLivenessParams* _Nullable)input;
44
+ +(RGLAuthenticityPropertiesParams* _Nullable)authenticityPropertiesParamsFromJson:(NSDictionary* _Nullable)input;
45
+ +(NSDictionary* _Nullable)generateAuthenticityPropertiesParams:(RGLAuthenticityPropertiesParams* _Nullable)input;
44
46
  +(RGLGlaresCheckParams* _Nullable)glaresCheckParamsFromJson:(NSDictionary* _Nullable)input;
45
47
  +(NSDictionary* _Nullable)generateGlaresCheckParams:(RGLGlaresCheckParams* _Nullable)input;
46
48
  +(RGLImageQA* _Nullable)imageQAFromJson:(NSDictionary* _Nullable)input;
@@ -366,6 +366,16 @@ static NSMutableArray* weakReferencesHolder;
366
366
  return [RGLWConfig getLivenessParams:input];
367
367
  }
368
368
 
369
+ +(RGLAuthenticityPropertiesParams*)authenticityPropertiesParamsFromJson:(NSDictionary*)input {
370
+ RGLAuthenticityPropertiesParams *result = [RGLAuthenticityPropertiesParams defaultParams];
371
+ [RGLWConfig setAuthenticityPropertiesParams:result input:input];
372
+ return result;
373
+ }
374
+
375
+ +(NSDictionary*)generateAuthenticityPropertiesParams:(RGLAuthenticityPropertiesParams*)input {
376
+ return [RGLWConfig getAuthenticityPropertiesParams:input];
377
+ }
378
+
369
379
  +(RGLeDLDataGroup*)eDLDataGroupsFromJson:(NSDictionary*)input {
370
380
  RGLeDLDataGroup *result = [RGLeDLDataGroup new];
371
381
  [RGLWConfig setDataGroups :result dict:input];
@@ -590,6 +600,7 @@ static NSMutableArray* weakReferencesHolder;
590
600
  result.proxyPassword = [input valueForKey:@"proxyPassword"];
591
601
  if([input valueForKey:@"proxyType"] != nil)
592
602
  result.proxyType = [input valueForKey:@"proxyType"];
603
+ if(input[@"livenessTransactionId"]) result.livenessTransactionId = input[@"livenessTransactionId"];
593
604
 
594
605
  return result;
595
606
  }
@@ -606,6 +617,7 @@ static NSMutableArray* weakReferencesHolder;
606
617
  result[@"proxy"] = input.proxy;
607
618
  result[@"proxyPassword"] = input.proxyPassword;
608
619
  result[@"proxyType"] = input.proxyType;
620
+ result[@"livenessTransactionId"] = input.livenessTransactionId;
609
621
 
610
622
  return result;
611
623
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/react-native-document-reader-api",
3
- "version": "9.7.695-nightly",
3
+ "version": "9.7.697-rc",
4
4
  "description": "React Native module for reading and validation of identification documents (API framework)",
5
5
  "main": "index.js",
6
6
  "scripts": {