@regulaforensics/react-native-document-reader-api 6.1.2 → 6.2.2
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 +1 -1
- package/android/src/main/java/com/regula/documentreader/JSONConstructor.java +81 -3
- package/example/App.js +166 -157
- package/example/package.json +2 -2
- package/index.d.ts +1240 -678
- package/index.js +1439 -900
- package/ios/RGLWJSONConstructor.h +2 -0
- package/ios/RGLWJSONConstructor.m +63 -1
- package/package.json +1 -1
|
@@ -61,6 +61,8 @@
|
|
|
61
61
|
+(NSMutableDictionary* _Nonnull)generateRGLVDSNCData:(RGLVDSNCData* _Nullable)input;
|
|
62
62
|
+(NSMutableDictionary* _Nonnull)generateRGLBytesData:(RGLBytesData* _Nullable)input;
|
|
63
63
|
+(NSMutableDictionary* _Nonnull)generateRGLRFIDNotify:(RGLRFIDNotify* _Nullable)input;
|
|
64
|
+
+(NSMutableDictionary* _Nonnull)generateRGLUVFiberElement:(RGLUVFiberElement* _Nullable)input;
|
|
65
|
+
+(NSMutableDictionary* _Nonnull)generateRGLElementRect:(RGLElementRect* _Nullable)input;
|
|
64
66
|
|
|
65
67
|
@end
|
|
66
68
|
#endif
|
|
@@ -1002,7 +1002,69 @@
|
|
|
1002
1002
|
|
|
1003
1003
|
result[@"code"] = @(input.code);
|
|
1004
1004
|
result[@"value"] = @(input.value);
|
|
1005
|
-
result[@"
|
|
1005
|
+
result[@"attachment"] = @(input.attachment);
|
|
1006
|
+
|
|
1007
|
+
return result;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
+(NSMutableDictionary* _Nonnull)generateRGLUVFiberElement:(RGLUVFiberElement* _Nullable)input {
|
|
1011
|
+
NSMutableDictionary *result = [NSMutableDictionary new];
|
|
1012
|
+
if(input == nil) return result;
|
|
1013
|
+
|
|
1014
|
+
if(input.rectArray != nil){
|
|
1015
|
+
NSMutableArray *array = [NSMutableArray new];
|
|
1016
|
+
for(RGLElementRect* item in input.rectArray)
|
|
1017
|
+
if(item != nil)
|
|
1018
|
+
[array addObject:[self generateRGLElementRect:item]];
|
|
1019
|
+
result[@"rectArray"] = array;
|
|
1020
|
+
}
|
|
1021
|
+
result[@"rectCount"] = @(input.rectCount);
|
|
1022
|
+
result[@"expectedCount"] = @(input.expectedCount);
|
|
1023
|
+
if(input.width != nil){
|
|
1024
|
+
NSMutableArray *array = [NSMutableArray new];
|
|
1025
|
+
for(NSNumber* item in input.width)
|
|
1026
|
+
if(item != nil)
|
|
1027
|
+
[array addObject:item];
|
|
1028
|
+
result[@"width"] = array;
|
|
1029
|
+
}
|
|
1030
|
+
if(input.length != nil){
|
|
1031
|
+
NSMutableArray *array = [NSMutableArray new];
|
|
1032
|
+
for(NSNumber* item in input.length)
|
|
1033
|
+
if(item != nil)
|
|
1034
|
+
[array addObject:item];
|
|
1035
|
+
result[@"length"] = array;
|
|
1036
|
+
}
|
|
1037
|
+
if(input.area != nil){
|
|
1038
|
+
NSMutableArray *array = [NSMutableArray new];
|
|
1039
|
+
for(NSNumber* item in input.area)
|
|
1040
|
+
if(item != nil)
|
|
1041
|
+
[array addObject:item];
|
|
1042
|
+
result[@"area"] = array;
|
|
1043
|
+
}
|
|
1044
|
+
if(input.colorValues != nil){
|
|
1045
|
+
NSMutableArray *array = [NSMutableArray new];
|
|
1046
|
+
for(NSNumber* item in input.colorValues)
|
|
1047
|
+
if(item != nil)
|
|
1048
|
+
[array addObject:item];
|
|
1049
|
+
result[@"colorValues"] = array;
|
|
1050
|
+
}
|
|
1051
|
+
result[@"status"] = @(input.status);
|
|
1052
|
+
result[@"elementType"] = @(input.elementType);
|
|
1053
|
+
result[@"elementTypeName"] = input.elementTypeName;
|
|
1054
|
+
result[@"elementDiagnose"] = @(input.elementDiagnose);
|
|
1055
|
+
result[@"elementDiagnoseName"] = input.elementDiagnoseName;
|
|
1056
|
+
|
|
1057
|
+
return result;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
+(NSMutableDictionary* _Nonnull)generateRGLElementRect:(RGLElementRect* _Nullable)input {
|
|
1061
|
+
NSMutableDictionary *result = [NSMutableDictionary new];
|
|
1062
|
+
if(input == nil) return result;
|
|
1063
|
+
|
|
1064
|
+
result[@"bottom"] = @(input.bottom);
|
|
1065
|
+
result[@"left"] = @(input.left);
|
|
1066
|
+
result[@"right"] = @(input.right);
|
|
1067
|
+
result[@"top"] = @(input.top);
|
|
1006
1068
|
|
|
1007
1069
|
return result;
|
|
1008
1070
|
}
|
package/package.json
CHANGED