@regulaforensics/document-reader 8.3.310-beta → 8.4.2-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/README.md +1 -1
- package/RNDocumentReader.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/BluetoothUtil.kt +9 -5
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +20 -0
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +3 -0
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +8 -5
- package/examples/capacitor/index.tsx +5 -5
- package/examples/capacitor/package-lock.json +372 -335
- package/examples/capacitor/package.json +3 -3
- package/examples/ionic/index.tsx +6 -2
- package/examples/ionic/package-lock.json +519 -814
- package/examples/ionic/package.json +3 -3
- package/examples/react_native/index.html +5 -4
- package/examples/react_native/package-lock.json +984 -818
- package/examples/react_native/package.json +3 -3
- package/ios/RGLWConfig.m +10 -9
- package/ios/RGLWJSONConstructor.m +3 -0
- package/ios/RGLWMain.h +2 -2
- package/ios/RGLWMain.m +2 -2
- package/ios/RNDocumentReader.m +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +44 -31
- package/test/package-lock.json +1 -1
- package/test/test.tsx +1 -1
- package/www/capacitor/config/InitConfig.js +3 -0
- package/www/capacitor/index.js +0 -1
- package/www/capacitor/info/DocReaderException.js +2 -0
- package/www/capacitor/params/Functionality.js +8 -0
- package/www/capacitor/params/customization/CustomizationColors.js +32 -0
- package/www/capacitor/params/customization/CustomizationFonts.js +24 -0
- package/www/capacitor/params/customization/CustomizationImages.js +8 -0
- package/www/capacitor/params/process_params/AuthenticityParams.js +1 -0
- package/www/capacitor/params/process_params/LivenessParams.js +2 -2
- package/www/capacitor/params/process_params/ProcessParams.js +10 -0
- package/www/capacitor/results/authenticity/CheckDiagnose.js +2 -0
- package/www/capacitor/results/authenticity/SecurityFeatureType.js +3 -1
- package/www/cordova.js +95 -4
- package/www/react-native/config/InitConfig.js +3 -0
- package/www/react-native/index.js +0 -1
- package/www/react-native/info/DocReaderException.js +2 -0
- package/www/react-native/params/Functionality.js +8 -0
- package/www/react-native/params/customization/CustomizationColors.js +32 -0
- package/www/react-native/params/customization/CustomizationFonts.js +24 -0
- package/www/react-native/params/customization/CustomizationImages.js +8 -0
- package/www/react-native/params/process_params/AuthenticityParams.js +1 -0
- package/www/react-native/params/process_params/LivenessParams.js +2 -2
- package/www/react-native/params/process_params/ProcessParams.js +10 -0
- package/www/react-native/results/authenticity/CheckDiagnose.js +2 -0
- package/www/react-native/results/authenticity/SecurityFeatureType.js +3 -1
- package/www/types/config/InitConfig.d.ts +5 -0
- package/www/types/index.d.ts +2 -2
- package/www/types/info/DocReaderException.d.ts +4 -0
- package/www/types/params/Functionality.d.ts +6 -0
- package/www/types/params/customization/CustomizationColors.d.ts +16 -8
- package/www/types/params/customization/CustomizationFonts.d.ts +6 -0
- package/www/types/params/customization/CustomizationImages.d.ts +6 -1
- package/www/types/params/process_params/ProcessParams.d.ts +5 -0
- package/www/types/results/authenticity/CheckDiagnose.d.ts +4 -0
- package/www/types/results/authenticity/SecurityFeatureType.d.ts +4 -0
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/document-reader": "8.
|
|
12
|
-
"@regulaforensics/document-reader-core-fullauthrfid": "8.
|
|
13
|
-
"@regulaforensics/document-reader-btdevice": "
|
|
11
|
+
"@regulaforensics/document-reader": "8.4.2-nightly",
|
|
12
|
+
"@regulaforensics/document-reader-core-fullauthrfid": "8.5.839-nightly",
|
|
13
|
+
"@regulaforensics/document-reader-btdevice": "file:../ftp_2",
|
|
14
14
|
"react-native": "^0.81.4",
|
|
15
15
|
"react-native-fs": "^2.20.0",
|
|
16
16
|
"react-native-image-picker": "^8.2.1",
|
package/ios/RGLWConfig.m
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
if([options valueForKey:@"singleResult"] != nil)
|
|
35
35
|
functionality.singleResult = [[options valueForKey:@"singleResult"] boolValue];
|
|
36
36
|
if(options[@"torchTurnedOn"]) functionality.torchTurnedOn = [options[@"torchTurnedOn"] boolValue];
|
|
37
|
+
if(options[@"preventScreenRecording"]) functionality.preventScreenRecording = [options[@"preventScreenRecording"] boolValue];
|
|
37
38
|
|
|
38
39
|
// Int
|
|
39
40
|
if([options valueForKey:@"showCaptureButtonDelayFromDetect"] != nil)
|
|
@@ -88,6 +89,7 @@
|
|
|
88
89
|
result[@"manualMultipageMode"] = [NSNumber numberWithBool:functionality.manualMultipageMode];
|
|
89
90
|
result[@"singleResult"] = [NSNumber numberWithBool:functionality.singleResult];
|
|
90
91
|
result[@"torchTurnedOn"] = @(functionality.torchTurnedOn);
|
|
92
|
+
result[@"preventScreenRecording"] = @(functionality.preventScreenRecording);
|
|
91
93
|
|
|
92
94
|
// Int
|
|
93
95
|
result[@"showCaptureButtonDelayFromDetect"] = [NSNumber numberWithDouble:functionality.showCaptureButtonDelayFromDetect];
|
|
@@ -186,6 +188,7 @@
|
|
|
186
188
|
if (options[@"generateAlpha2Codes"]) processParams.generateAlpha2Codes = options[@"generateAlpha2Codes"];
|
|
187
189
|
if (options[@"disableAuthResolutionFilter"]) processParams.disableAuthResolutionFilter = options[@"disableAuthResolutionFilter"];
|
|
188
190
|
if (options[@"strictSecurityChecks"]) processParams.strictSecurityChecks = options[@"strictSecurityChecks"];
|
|
191
|
+
if (options[@"returnTransliteratedFields"]) processParams.returnTransliteratedFields = options[@"returnTransliteratedFields"];
|
|
189
192
|
|
|
190
193
|
// Int
|
|
191
194
|
if([options valueForKey:@"measureSystem"] != nil)
|
|
@@ -257,22 +260,19 @@
|
|
|
257
260
|
processParams.lcidFilter = [options mutableArrayValueForKey:@"lcidFilter"];
|
|
258
261
|
|
|
259
262
|
// JSONObject
|
|
260
|
-
if([
|
|
263
|
+
if (options[@"customParams"]) processParams.customParams = options[@"customParams"];
|
|
264
|
+
if ([options valueForKey:@"imageQA"] != nil)
|
|
261
265
|
[self setImageQA:processParams.imageQA input:[options valueForKey:@"imageQA"]];
|
|
262
|
-
if([options valueForKey:@"rfidParams"] != nil)
|
|
266
|
+
if ([options valueForKey:@"rfidParams"] != nil)
|
|
263
267
|
processParams.rfidParams = [RGLWJSONConstructor rfidParamsFromJson:[options valueForKey:@"rfidParams"]];
|
|
264
|
-
if([options valueForKey:@"faceApiParams"] != nil)
|
|
268
|
+
if ([options valueForKey:@"faceApiParams"] != nil)
|
|
265
269
|
processParams.faceApiParams = [RGLWJSONConstructor faceAPIParamsFromJson:[options valueForKey:@"faceApiParams"]];
|
|
266
|
-
if([options valueForKey:@"backendProcessingConfig"] != nil)
|
|
270
|
+
if ([options valueForKey:@"backendProcessingConfig"] != nil)
|
|
267
271
|
processParams.backendProcessingConfig = [RGLWJSONConstructor backendProcessingConfigFromJson:[options valueForKey:@"backendProcessingConfig"]];
|
|
268
|
-
if([options valueForKey:@"authenticityParams"] != nil) {
|
|
272
|
+
if ([options valueForKey:@"authenticityParams"] != nil) {
|
|
269
273
|
if(processParams.authenticityParams == nil) processParams.authenticityParams = [RGLAuthenticityParams defaultParams];
|
|
270
274
|
[self setAuthenticityParams:processParams.authenticityParams input:[options valueForKey:@"authenticityParams"]];
|
|
271
275
|
}
|
|
272
|
-
|
|
273
|
-
// Custom
|
|
274
|
-
if([options valueForKey:@"customParams"] != nil)
|
|
275
|
-
processParams.customParams = [options valueForKey:@"customParams"];
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
+(NSDictionary*)getProcessParams:(RGLProcessParams*)processParams {
|
|
@@ -318,6 +318,7 @@
|
|
|
318
318
|
result[@"generateAlpha2Codes"] = processParams.generateAlpha2Codes;
|
|
319
319
|
result[@"disableAuthResolutionFilter"] = processParams.disableAuthResolutionFilter;
|
|
320
320
|
result[@"strictSecurityChecks"] = processParams.strictSecurityChecks;
|
|
321
|
+
result[@"returnTransliteratedFields"] = processParams.returnTransliteratedFields;
|
|
321
322
|
|
|
322
323
|
// Int
|
|
323
324
|
result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
|
|
@@ -161,6 +161,7 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
161
161
|
|
|
162
162
|
if (input[@"databasePath"]) config.databasePath = [[NSBundle mainBundle] pathForResource:input[@"databasePath"] ofType:nil];
|
|
163
163
|
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
164
|
+
if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
|
|
164
165
|
if (input[@"delayedNNLoad"]) config.delayedNNLoadEnabled = [input[@"delayedNNLoad"] boolValue];
|
|
165
166
|
|
|
166
167
|
return config;
|
|
@@ -173,6 +174,7 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
173
174
|
result[@"license"] = [self base64Encode: input.licenseData];
|
|
174
175
|
result[@"databasePath"] = input.databasePath;
|
|
175
176
|
result[@"licenseUpdate"] = @(input.licenseUpdateCheck);
|
|
177
|
+
result[@"licenseUpdateTimeout"] = input.licenseUpdateTimeout;
|
|
176
178
|
result[@"delayedNNLoad"] = @(input.delayedNNLoadEnabled);
|
|
177
179
|
|
|
178
180
|
return result;
|
|
@@ -184,6 +186,7 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
184
186
|
|
|
185
187
|
if (input[@"databasePath"]) config.databasePath = [[NSBundle mainBundle] pathForResource:input[@"databasePath"] ofType:nil];
|
|
186
188
|
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
189
|
+
if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
|
|
187
190
|
if (input[@"delayedNNLoad"]) config.delayedNNLoadEnabled = [input[@"delayedNNLoad"] boolValue];
|
|
188
191
|
|
|
189
192
|
return config;
|
package/ios/RGLWMain.h
CHANGED
|
@@ -32,5 +32,5 @@ static NSString* _Nonnull rfidOnRetryReadChipEvent = @"rfidOnRetryReadChipEvent"
|
|
|
32
32
|
static NSString* _Nonnull paCertificateCompletionEvent = @"pa_certificate_completion";
|
|
33
33
|
static NSString* _Nonnull taCertificateCompletionEvent = @"ta_certificate_completion";
|
|
34
34
|
static NSString* _Nonnull taSignatureCompletionEvent = @"ta_signature_completion";
|
|
35
|
-
static NSString* _Nonnull
|
|
36
|
-
static NSString* _Nonnull
|
|
35
|
+
static NSString* _Nonnull drVideoEncoderCompletionEvent = @"video_encoder_completion";
|
|
36
|
+
static NSString* _Nonnull drOnCustomButtonTappedEvent = @"onCustomButtonTappedEvent";
|
package/ios/RGLWMain.m
CHANGED
|
@@ -561,12 +561,12 @@ RGLWCallback savedCallbackForBluetoothResult;
|
|
|
561
561
|
|
|
562
562
|
// RGLCustomizationActionDelegate
|
|
563
563
|
- (void)onCustomButtonTappedWithTag:(NSInteger)tag {
|
|
564
|
-
sendEvent(
|
|
564
|
+
sendEvent(drOnCustomButtonTappedEvent, @(tag));
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
// RGLRecordScanningProcessDelegate
|
|
568
568
|
- (void)didFinishRecordingToFile:(NSURL *)fileURL {
|
|
569
|
-
sendEvent(
|
|
569
|
+
sendEvent(drVideoEncoderCompletionEvent, fileURL.absoluteString);
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
- (void)didFailWithError:(NSError *)error {
|
package/ios/RNDocumentReader.m
CHANGED
|
@@ -18,8 +18,8 @@ static NSMutableArray<RCTResponseSenderBlock>* _firedCallbacks = nil;
|
|
|
18
18
|
paCertificateCompletionEvent,
|
|
19
19
|
taCertificateCompletionEvent,
|
|
20
20
|
taSignatureCompletionEvent,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
drVideoEncoderCompletionEvent,
|
|
22
|
+
drOnCustomButtonTappedEvent];
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
static bool hasListeners;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/document-reader",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.2-nightly",
|
|
4
4
|
"description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.",
|
|
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/document-reader" version="8.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="8.4.2-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReader</name>
|
|
4
4
|
<description>Cordova plugin for Regula Document Reader SDK</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<source url="https://github.com/CocoaPods/Specs.git" />
|
|
30
30
|
</config>
|
|
31
31
|
<pods>
|
|
32
|
-
<pod name="
|
|
32
|
+
<pod name="DocumentReaderNightly" spec="8.5.5556" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/test/json.tsx
CHANGED
|
@@ -44,7 +44,7 @@ export var authenticityParams = {
|
|
|
44
44
|
"checkSecurityText": true,
|
|
45
45
|
"livenessParams": livenessParams,
|
|
46
46
|
}
|
|
47
|
-
export var glaresCheckParams = {"imgMarginPart": 0.5, "maxGlaringPart": 1.5}
|
|
47
|
+
export var glaresCheckParams = { "imgMarginPart": 0.5, "maxGlaringPart": 1.5 }
|
|
48
48
|
export var imageQA = {
|
|
49
49
|
"dpiThreshold": 1,
|
|
50
50
|
"angleThreshold": 2,
|
|
@@ -64,7 +64,7 @@ export var rfidParams = {
|
|
|
64
64
|
export var backendProcessingConfig = {
|
|
65
65
|
"url": "test",
|
|
66
66
|
"rfidServerSideChipVerification": true,
|
|
67
|
-
"httpHeaders": {"key1": "val1", "key2": "val2", "key3": "val3"},
|
|
67
|
+
"httpHeaders": { "key1": "val1", "key2": "val2", "key3": "val3" },
|
|
68
68
|
"timeoutConnection": 0.5,
|
|
69
69
|
}
|
|
70
70
|
export var processParams = {
|
|
@@ -106,6 +106,7 @@ export var processParams = {
|
|
|
106
106
|
"generateAlpha2Codes": false,
|
|
107
107
|
"disableAuthResolutionFilter": true,
|
|
108
108
|
"strictSecurityChecks": false,
|
|
109
|
+
"returnTransliteratedFields": true,
|
|
109
110
|
"measureSystem": 1,
|
|
110
111
|
"barcodeParserType": 3,
|
|
111
112
|
"perspectiveAngle": 4,
|
|
@@ -143,10 +144,10 @@ export var processParams = {
|
|
|
143
144
|
"faceApiParams": faceApiParams,
|
|
144
145
|
"backendProcessingConfig": backendProcessingConfig,
|
|
145
146
|
"authenticityParams": authenticityParams,
|
|
146
|
-
"customParams": {"test1": true, "test2": 1, "test3": "test"},
|
|
147
|
+
"customParams": { "test1": true, "test2": 1, "test3": "test" },
|
|
147
148
|
}
|
|
148
|
-
export var font1 = {"name": "AppleSDGothicNeo-Thin", "size": 10, "style": 2}
|
|
149
|
-
export var font2 = {"name": "Copperplate-Light", "size": 20, "style": 1}
|
|
149
|
+
export var font1 = { "name": "AppleSDGothicNeo-Thin", "size": 10, "style": 2 }
|
|
150
|
+
export var font2 = { "name": "Copperplate-Light", "size": 20, "style": 1 }
|
|
150
151
|
export var customizationColors = {
|
|
151
152
|
"rfidProcessingScreenBackground": 0xff000000,
|
|
152
153
|
"rfidProcessingScreenHintLabelText": 0xff000001,
|
|
@@ -156,13 +157,23 @@ export var customizationColors = {
|
|
|
156
157
|
"rfidProcessingScreenProgressBarBackground": 0xff000005,
|
|
157
158
|
"rfidProcessingScreenResultLabelText": 0xff000006,
|
|
158
159
|
"rfidProcessingScreenLoadingBar": 0xff000007,
|
|
160
|
+
"rfidEnableNfcTitleText": 0xff000008,
|
|
161
|
+
"rfidEnableNfcDescriptionText": 0xff000009,
|
|
162
|
+
"rfidEnableNfcButtonText": 0xff000010,
|
|
163
|
+
"rfidEnableNfcButtonBackground": 0xff000011,
|
|
159
164
|
}
|
|
160
165
|
export var customizationFonts = {
|
|
161
166
|
"rfidProcessingScreenHintLabel": font1,
|
|
162
167
|
"rfidProcessingScreenProgressLabel": font2,
|
|
163
168
|
"rfidProcessingScreenResultLabel": font1,
|
|
169
|
+
"rfidEnableNfcTitleText": font2,
|
|
170
|
+
"rfidEnableNfcDescriptionText": font1,
|
|
171
|
+
"rfidEnableNfcButtonText": font2,
|
|
172
|
+
}
|
|
173
|
+
export var customizationImages = {
|
|
174
|
+
"rfidProcessingScreenFailureImage": img1,
|
|
175
|
+
"rfidEnableNfcImage": img2,
|
|
164
176
|
}
|
|
165
|
-
export var customizationImages = {"rfidProcessingScreenFailureImage": img1}
|
|
166
177
|
export var customization = {
|
|
167
178
|
"showStatusMessages": true,
|
|
168
179
|
"showResultStatusMessages": false,
|
|
@@ -218,7 +229,7 @@ export var customization = {
|
|
|
218
229
|
"multipageButtonImage": img1,
|
|
219
230
|
"customLabelStatus": "test3",
|
|
220
231
|
"cameraFrameLineCap": 2,
|
|
221
|
-
"uiCustomizationLayer": {"test": "test"},
|
|
232
|
+
"uiCustomizationLayer": { "test": "test" },
|
|
222
233
|
"statusTextFont": font1,
|
|
223
234
|
"resultStatusTextFont": font2,
|
|
224
235
|
"multipageButtonTextFont": font1,
|
|
@@ -256,7 +267,7 @@ export var customization = {
|
|
|
256
267
|
"fonts": customizationFonts,
|
|
257
268
|
"images": customizationImages,
|
|
258
269
|
}
|
|
259
|
-
export var cameraSize = {"width": 0, "height": 1}
|
|
270
|
+
export var cameraSize = { "width": 0, "height": 1 }
|
|
260
271
|
export var functionality = {
|
|
261
272
|
"pictureOnBoundsReady": true,
|
|
262
273
|
"showTorchButton": false,
|
|
@@ -275,6 +286,7 @@ export var functionality = {
|
|
|
275
286
|
"manualMultipageMode": true,
|
|
276
287
|
"singleResult": false,
|
|
277
288
|
"torchTurnedOn": false,
|
|
289
|
+
"preventScreenRecording": true,
|
|
278
290
|
"showCaptureButtonDelayFromDetect": 0,
|
|
279
291
|
"showCaptureButtonDelayFromStart": 1,
|
|
280
292
|
"rfidTimeout": 2,
|
|
@@ -424,8 +436,9 @@ export var rfidScenario = {
|
|
|
424
436
|
export var initConfig = {
|
|
425
437
|
"delayedNNLoad": false,
|
|
426
438
|
"licenseUpdate": true,
|
|
439
|
+
"licenseUpdateTimeout": 1.5,
|
|
427
440
|
"customDb": img1,
|
|
428
|
-
"blackList": {"key1": "val1", "key2": "val2", "key3": "val3"},
|
|
441
|
+
"blackList": { "key1": "val1", "key2": "val2", "key3": "val3" },
|
|
429
442
|
"databasePath": "test",
|
|
430
443
|
"license": img2,
|
|
431
444
|
"useBleDevice": true,
|
|
@@ -436,9 +449,9 @@ export var onlineProcessingConfig = {
|
|
|
436
449
|
"imageFormat": 1,
|
|
437
450
|
"imageCompressionQuality": 1.5,
|
|
438
451
|
"processParams": processParams,
|
|
439
|
-
"requestHeaders": {"key1": "val1", "key2": "val2", "key3": "val3"},
|
|
452
|
+
"requestHeaders": { "key1": "val1", "key2": "val2", "key3": "val3" },
|
|
440
453
|
}
|
|
441
|
-
export var imageInputData = {"image": img1, "light": 128, "pageIndex": 2}
|
|
454
|
+
export var imageInputData = { "image": img1, "light": 128, "pageIndex": 2 }
|
|
442
455
|
export var recognizeConfig = {
|
|
443
456
|
"scenario": "Mrz",
|
|
444
457
|
"livePortrait": img1,
|
|
@@ -503,9 +516,9 @@ export var license = {
|
|
|
503
516
|
"countryFilter": ["test2", "test3", "test4"],
|
|
504
517
|
"isRfidAvailable": true,
|
|
505
518
|
}
|
|
506
|
-
export var docReaderException = {"code": 1, "message": "test1"}
|
|
507
|
-
export var rfidException = {"code": 2, "message": "test2"}
|
|
508
|
-
export var prepareProgress = {"downloadedBytes": 1, "totalBytes": 2, "progress": 50}
|
|
519
|
+
export var docReaderException = { "code": 1, "message": "test1" }
|
|
520
|
+
export var rfidException = { "code": 2, "message": "test2" }
|
|
521
|
+
export var prepareProgress = { "downloadedBytes": 1, "totalBytes": 2, "progress": 50 }
|
|
509
522
|
|
|
510
523
|
export var authenticityElement = {
|
|
511
524
|
"status": 1,
|
|
@@ -525,7 +538,7 @@ export var authenticityResult = {
|
|
|
525
538
|
"status": 2,
|
|
526
539
|
"checks": [authenticityCheck, authenticityCheck, authenticityCheck],
|
|
527
540
|
}
|
|
528
|
-
export var pdf417Info = {"errorLevel": 2, "columns": 3, "rows": 4}
|
|
541
|
+
export var pdf417Info = { "errorLevel": 2, "columns": 3, "rows": 4 }
|
|
529
542
|
export var barcodeField = {
|
|
530
543
|
"barcodeType": 5,
|
|
531
544
|
"status": -6001,
|
|
@@ -536,7 +549,7 @@ export var barcodeField = {
|
|
|
536
549
|
export var barcodeResult = {
|
|
537
550
|
"fields": [barcodeField, barcodeField, barcodeField],
|
|
538
551
|
}
|
|
539
|
-
export var rect = {"bottom": 0, "top": 1, "left": 2, "right": 3}
|
|
552
|
+
export var rect = { "bottom": 0, "top": 1, "left": 2, "right": 3 }
|
|
540
553
|
export var imageQuality = {
|
|
541
554
|
"featureType": 1,
|
|
542
555
|
"result": 2,
|
|
@@ -555,9 +568,9 @@ export var accessControlProcedureType = {
|
|
|
555
568
|
"status": 1,
|
|
556
569
|
"notifications": [1, 2, 3],
|
|
557
570
|
}
|
|
558
|
-
export var fileData = {"data": "test", "length": 2, "type": 3, "status": 4}
|
|
559
|
-
export var certificateData = {"data": "test", "length": 1}
|
|
560
|
-
export var securityObjectCertificates = {"securityObject": certificateData}
|
|
571
|
+
export var fileData = { "data": "test", "length": 2, "type": 3, "status": 4 }
|
|
572
|
+
export var certificateData = { "data": "test", "length": 1 }
|
|
573
|
+
export var securityObjectCertificates = { "securityObject": certificateData }
|
|
561
574
|
export var file = {
|
|
562
575
|
"fileData": fileData,
|
|
563
576
|
"fileID": "test1",
|
|
@@ -588,7 +601,7 @@ export var rfidValue = {
|
|
|
588
601
|
"type": 3,
|
|
589
602
|
"format": "test2",
|
|
590
603
|
}
|
|
591
|
-
export var attribute = {"type": "test", "value": rfidValue}
|
|
604
|
+
export var attribute = { "type": "test", "value": rfidValue }
|
|
592
605
|
export var authority = {
|
|
593
606
|
"attributes": [attribute, attribute, attribute],
|
|
594
607
|
"data": "test",
|
|
@@ -610,8 +623,8 @@ export var cardProperties = {
|
|
|
610
623
|
"baudrate2": "test4",
|
|
611
624
|
"uID": "test5",
|
|
612
625
|
}
|
|
613
|
-
export var extension = {"data": "test1", "type": "test2"}
|
|
614
|
-
export var rfidValidity = {"notAfter": rfidValue, "notBefore": rfidValue}
|
|
626
|
+
export var extension = { "data": "test1", "type": "test2" }
|
|
627
|
+
export var rfidValidity = { "notAfter": rfidValue, "notBefore": rfidValue }
|
|
615
628
|
export var certificateChain = {
|
|
616
629
|
"type": 1,
|
|
617
630
|
"extensions": [extension, extension, extension],
|
|
@@ -627,7 +640,7 @@ export var certificateChain = {
|
|
|
627
640
|
"validity": rfidValidity,
|
|
628
641
|
"version": 4,
|
|
629
642
|
}
|
|
630
|
-
export var dataField = {"data": "test", "fieldType": 1}
|
|
643
|
+
export var dataField = { "data": "test", "fieldType": 1 }
|
|
631
644
|
export var signerInfo = {
|
|
632
645
|
"dataToHash": "test1",
|
|
633
646
|
"digestAlgorithm": "test2",
|
|
@@ -666,12 +679,12 @@ export var rfidSessionData = {
|
|
|
666
679
|
"extLeSupport": 1,
|
|
667
680
|
"processTime": 4,
|
|
668
681
|
}
|
|
669
|
-
export var bytesData = {"data": "test", "length": 1, "status": 2, "type": 3}
|
|
682
|
+
export var bytesData = { "data": "test", "length": 1, "status": 2, "type": 3 }
|
|
670
683
|
export var vdsncData = {
|
|
671
684
|
"type": "test1",
|
|
672
685
|
"version": 1,
|
|
673
686
|
"issuingCountry": "test2",
|
|
674
|
-
"message": {"key1": "val1", "key2": "val2", "key3": "val3"},
|
|
687
|
+
"message": { "key1": "val1", "key2": "val2", "key3": "val3" },
|
|
675
688
|
"signatureAlgorithm": "test3",
|
|
676
689
|
"signature": bytesData,
|
|
677
690
|
"certificate": bytesData,
|
|
@@ -707,7 +720,7 @@ export var resultsStatus = {
|
|
|
707
720
|
"detailsOptical": opticalStatus,
|
|
708
721
|
"detailsRFID": rfidStatus,
|
|
709
722
|
}
|
|
710
|
-
export var comparison = {"sourceTypeLeft": 0, "sourceTypeRight": 1, "status": 2}
|
|
723
|
+
export var comparison = { "sourceTypeLeft": 0, "sourceTypeRight": 1, "status": 2 }
|
|
711
724
|
export var graphicField = {
|
|
712
725
|
"sourceType": 0,
|
|
713
726
|
"fieldType": 201,
|
|
@@ -722,9 +735,9 @@ export var graphicField = {
|
|
|
722
735
|
export var graphicResult = {
|
|
723
736
|
"fields": [graphicField, graphicField, graphicField],
|
|
724
737
|
}
|
|
725
|
-
export var rfidOrigin = {"dg": 1, "dgTag": 2, "entryView": 3, "tagEntry": 4}
|
|
726
|
-
export var symbol = {"rect": rect, "code": 1, "probability": 2}
|
|
727
|
-
export var validity = {"sourceType": 1, "status": 2}
|
|
738
|
+
export var rfidOrigin = { "dg": 1, "dgTag": 2, "entryView": 3, "tagEntry": 4 }
|
|
739
|
+
export var symbol = { "rect": rect, "code": 1, "probability": 2 }
|
|
740
|
+
export var validity = { "sourceType": 1, "status": 2 }
|
|
728
741
|
export var value = {
|
|
729
742
|
"sourceType": 3,
|
|
730
743
|
"value": "test1",
|
|
@@ -789,7 +802,7 @@ export var documentType = {
|
|
|
789
802
|
"dCountryName": "test5",
|
|
790
803
|
"pageIndex": 3,
|
|
791
804
|
}
|
|
792
|
-
export var coordinate = {"x": 1, "y": 2}
|
|
805
|
+
export var coordinate = { "x": 1, "y": 2 }
|
|
793
806
|
export var position = {
|
|
794
807
|
"docFormat": 0,
|
|
795
808
|
"resultStatus": 1,
|
|
@@ -841,7 +854,7 @@ export var rfidNotification = {
|
|
|
841
854
|
"dataFileType": 1,
|
|
842
855
|
"progress": 2,
|
|
843
856
|
}
|
|
844
|
-
export var paAttribute = {"type": "test1", "value": "test2"}
|
|
857
|
+
export var paAttribute = { "type": "test1", "value": "test2" }
|
|
845
858
|
export var paResourcesIssuer = {
|
|
846
859
|
"data": img1,
|
|
847
860
|
"friendlyName": "test",
|
package/test/package-lock.json
CHANGED
package/test/test.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { compare } from './utils'
|
|
2
|
-
import { AccessControlProcedureType, Application, Attribute, AuthenticityCheck, AuthenticityElement, AuthenticityParams, AuthenticityResult, Authority, BackendProcessingConfig, BarcodeField, BarcodeResult, BytesData, CardProperties, CertificateChain, CertificateData, Comparison, Coordinate, Customization, CustomizationColors, CustomizationFonts, CustomizationImages, DataField, DocReaderException, DocReaderScenario, DocReaderVersion, DocumentsDatabase, DocumentType, EDLDataGroups, EIDDataGroups, DTCDataGroup, EPassportDataGroups, Extension, FaceApiParams, FaceApiSearchParams, File, FileData, Functionality, GlaresCheckParams, RFIDParams, GraphicField, GraphicResult, ImageInputData, ImageQA, ImageQuality, ImageQualityGroup, InitConfig, License, LivenessParams, OnlineProcessingConfig, OpticalStatus, PAAttribute, PAResourcesIssuer, PDF417Info, PKDCertificate, Position, PrepareProgress, ProcessParams, RecognizeConfig, Rect, Results, ResultsStatus, RFIDException, RFIDNotification, RFIDOrigin, RFIDScenario, RFIDSessionData, RFIDStatus, RFIDValidity, RFIDValue, ScannerConfig, SecurityObject, SecurityObjectCertificates, SignerInfo, Symbol, TAChallenge, TccParams, TextField, TextResult, TextSource, TransactionInfo, Validity, Value, VDSNCData } from '@regulaforensics/document-reader'
|
|
2
|
+
import { AccessControlProcedureType, Application, Attribute, AuthenticityCheck, AuthenticityElement, AuthenticityParams, AuthenticityResult, Authority, BackendProcessingConfig, BarcodeField, BarcodeResult, BytesData, CardProperties, CertificateChain, CertificateData, Comparison, Coordinate, Customization, CustomizationColors, CustomizationFonts, CustomizationImages, DataField, DocReaderException, DocReaderScenario, DocReaderVersion, DocumentsDatabase, DocumentType, EDLDataGroups, EIDDataGroups, DTCDataGroup, EPassportDataGroups, Extension, FaceApiParams, FaceApiSearchParams, File, FileData, Functionality, GlaresCheckParams, RFIDParams, GraphicField, GraphicResult, ImageInputData, ImageQA, ImageQuality, ImageQualityGroup, InitConfig, License, LivenessParams, OnlineProcessingConfig, OpticalStatus, PAAttribute, PAResourcesIssuer, PDF417Info, PKDCertificate, Position, PrepareProgress, ProcessParams, RecognizeConfig, Rect, Results, ResultsStatus, RFIDException, RFIDNotification, RFIDOrigin, RFIDScenario, RFIDSessionData, RFIDStatus, RFIDValidity, RFIDValue, ScannerConfig, SecurityObject, SecurityObjectCertificates, SignerInfo, Symbol, TAChallenge, TccParams, TextField, TextResult, TextSource, TransactionInfo, Validity, Value, VDSNCData } from '@regulaforensics/document-reader/www/capacitor'
|
|
3
3
|
import { accessControlProcedureType, application, attribute, authenticityCheck, authenticityElement, authenticityParams, authenticityResult, authority, backendProcessingConfig, barcodeField, barcodeResult, bytesData, cardProperties, certificateChain, certificateData, comparison, coordinate, customization, customizationColors, customizationFonts, customizationImages, dataField, docReaderException, docReaderScenario, docReaderVersion, documentsDatabase, documentType, eDLDataGroups, eIDDataGroups, dtcDataGroup, ePassportDataGroups, extension, faceApiParams, faceApiSearchParams, file, fileData, functionality, glaresCheckParams, rfidParams, graphicField, graphicResult, imageInputData, imageQA, imageQuality, imageQualityGroup, initConfig, license, livenessParams, onlineProcessingConfig, opticalStatus, paAttribute, paResourcesIssuer, pdf417Info, pkdCertificate, position, prepareProgress, processParams, recognizeConfig, recognizeConfig2, rect, results, resultsStatus, rfidException, rfidNotification, rfidOrigin, rfidScenario, rfidSessionData, rfidStatus, rfidValidity, rfidValue, scannerConfig, securityObject, securityObjectCertificates, signerInfo, symbol, taChallenge, tccParams, textField, textResult, textSource, transactionInfo, validity, value, vdsncData } from './json'
|
|
4
4
|
|
|
5
5
|
compare('initConfig', initConfig, InitConfig.fromJson)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export class InitConfig {
|
|
2
2
|
license
|
|
3
3
|
licenseUpdate
|
|
4
|
+
licenseUpdateTimeout
|
|
4
5
|
delayedNNLoad
|
|
5
6
|
databasePath
|
|
6
7
|
customDb
|
|
@@ -30,6 +31,7 @@ export class InitConfig {
|
|
|
30
31
|
result.customDb = jsonObject["customDb"];
|
|
31
32
|
result.delayedNNLoad = jsonObject["delayedNNLoad"];
|
|
32
33
|
result.licenseUpdate = jsonObject["licenseUpdate"];
|
|
34
|
+
result.licenseUpdateTimeout = jsonObject["licenseUpdateTimeout"];
|
|
33
35
|
result.blackList = jsonObject["blackList"];
|
|
34
36
|
result.databasePath = jsonObject["databasePath"];
|
|
35
37
|
result.useBleDevice = jsonObject["useBleDevice"];
|
|
@@ -43,6 +45,7 @@ export class InitConfig {
|
|
|
43
45
|
"license": this.license,
|
|
44
46
|
"delayedNNLoad": this.delayedNNLoad,
|
|
45
47
|
"licenseUpdate": this.licenseUpdate,
|
|
48
|
+
"licenseUpdateTimeout": this.licenseUpdateTimeout,
|
|
46
49
|
"blackList": this.blackList,
|
|
47
50
|
"customDb": this.customDb,
|
|
48
51
|
"databasePath": this.databasePath,
|
package/www/capacitor/index.js
CHANGED
|
@@ -55,6 +55,8 @@ export const ErrorCodes = {
|
|
|
55
55
|
CANNOT_USE_CAMERA_IN_SCENARIO: 40,
|
|
56
56
|
BACKEND_ONLINE_PROCESSING: 303,
|
|
57
57
|
WRONG_INPUT: 400,
|
|
58
|
+
RESULT_UNAVAILABLE: 410,
|
|
59
|
+
RESULT_WRONG_OUTPUT: 411,
|
|
58
60
|
STATE_EXCEPTION: 500,
|
|
59
61
|
BLE_EXCEPTION: 600,
|
|
60
62
|
FEATURE_BLUETOOTH_LE_NOT_SUPPORTED: 601,
|
|
@@ -105,6 +105,12 @@ export class Functionality {
|
|
|
105
105
|
this._set({ "torchTurnedOn": val });
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
get preventScreenRecording() { return this._preventScreenRecording; }
|
|
109
|
+
set preventScreenRecording(val) {
|
|
110
|
+
this._preventScreenRecording = val;
|
|
111
|
+
this._set({ "preventScreenRecording": val });
|
|
112
|
+
}
|
|
113
|
+
|
|
108
114
|
get showCaptureButtonDelayFromDetect() { return this._showCaptureButtonDelayFromDetect; }
|
|
109
115
|
set showCaptureButtonDelayFromDetect(val) {
|
|
110
116
|
this._showCaptureButtonDelayFromDetect = val;
|
|
@@ -222,6 +228,7 @@ export class Functionality {
|
|
|
222
228
|
result._manualMultipageMode = jsonObject["manualMultipageMode"];
|
|
223
229
|
result._singleResult = jsonObject["singleResult"];
|
|
224
230
|
result._torchTurnedOn = jsonObject["torchTurnedOn"];
|
|
231
|
+
result._preventScreenRecording = jsonObject["preventScreenRecording"];
|
|
225
232
|
result._showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"];
|
|
226
233
|
result._showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"];
|
|
227
234
|
result._rfidTimeout = jsonObject["rfidTimeout"];
|
|
@@ -261,6 +268,7 @@ export class Functionality {
|
|
|
261
268
|
"manualMultipageMode": this.manualMultipageMode,
|
|
262
269
|
"singleResult": this.singleResult,
|
|
263
270
|
"torchTurnedOn": this.torchTurnedOn,
|
|
271
|
+
"preventScreenRecording": this.preventScreenRecording,
|
|
264
272
|
"showCaptureButtonDelayFromDetect": this.showCaptureButtonDelayFromDetect,
|
|
265
273
|
"showCaptureButtonDelayFromStart": this.showCaptureButtonDelayFromStart,
|
|
266
274
|
"rfidTimeout": this.rfidTimeout,
|
|
@@ -49,6 +49,30 @@ export class CustomizationColors {
|
|
|
49
49
|
this._set({ "rfidProcessingScreenLoadingBar": val });
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
get rfidEnableNfcTitleText() { return this._rfidEnableNfcTitleText; }
|
|
53
|
+
set rfidEnableNfcTitleText(val) {
|
|
54
|
+
this._rfidEnableNfcTitleText = val;
|
|
55
|
+
this._set({ "rfidEnableNfcTitleText": val });
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
get rfidEnableNfcDescriptionText() { return this._rfidEnableNfcDescriptionText; }
|
|
59
|
+
set rfidEnableNfcDescriptionText(val) {
|
|
60
|
+
this._rfidEnableNfcDescriptionText = val;
|
|
61
|
+
this._set({ "rfidEnableNfcDescriptionText": val });
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
get rfidEnableNfcButtonText() { return this._rfidEnableNfcButtonText; }
|
|
65
|
+
set rfidEnableNfcButtonText(val) {
|
|
66
|
+
this._rfidEnableNfcButtonText = val;
|
|
67
|
+
this._set({ "rfidEnableNfcButtonText": val });
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
get rfidEnableNfcButtonBackground() { return this._rfidEnableNfcButtonBackground; }
|
|
71
|
+
set rfidEnableNfcButtonBackground(val) {
|
|
72
|
+
this._rfidEnableNfcButtonBackground = val;
|
|
73
|
+
this._set({ "rfidEnableNfcButtonBackground": val });
|
|
74
|
+
}
|
|
75
|
+
|
|
52
76
|
static fromJson(jsonObject) {
|
|
53
77
|
if (jsonObject == null) return null;
|
|
54
78
|
|
|
@@ -61,6 +85,10 @@ export class CustomizationColors {
|
|
|
61
85
|
result._rfidProcessingScreenProgressBarBackground = jsonObject["rfidProcessingScreenProgressBarBackground"];
|
|
62
86
|
result._rfidProcessingScreenResultLabelText = jsonObject["rfidProcessingScreenResultLabelText"];
|
|
63
87
|
result._rfidProcessingScreenLoadingBar = jsonObject["rfidProcessingScreenLoadingBar"];
|
|
88
|
+
result._rfidEnableNfcTitleText = jsonObject["rfidEnableNfcTitleText"];
|
|
89
|
+
result._rfidEnableNfcDescriptionText = jsonObject["rfidEnableNfcDescriptionText"];
|
|
90
|
+
result._rfidEnableNfcButtonText = jsonObject["rfidEnableNfcButtonText"];
|
|
91
|
+
result._rfidEnableNfcButtonBackground = jsonObject["rfidEnableNfcButtonBackground"];
|
|
64
92
|
|
|
65
93
|
return result;
|
|
66
94
|
}
|
|
@@ -82,6 +110,10 @@ export class CustomizationColors {
|
|
|
82
110
|
"rfidProcessingScreenProgressBarBackground": this.rfidProcessingScreenProgressBarBackground,
|
|
83
111
|
"rfidProcessingScreenResultLabelText": this.rfidProcessingScreenResultLabelText,
|
|
84
112
|
"rfidProcessingScreenLoadingBar": this.rfidProcessingScreenLoadingBar,
|
|
113
|
+
"rfidEnableNfcTitleText": this.rfidEnableNfcTitleText,
|
|
114
|
+
"rfidEnableNfcDescriptionText": this.rfidEnableNfcDescriptionText,
|
|
115
|
+
"rfidEnableNfcButtonText": this.rfidEnableNfcButtonText,
|
|
116
|
+
"rfidEnableNfcButtonBackground": this.rfidEnableNfcButtonBackground,
|
|
85
117
|
}
|
|
86
118
|
}
|
|
87
119
|
}
|
|
@@ -20,6 +20,24 @@ export class CustomizationFonts {
|
|
|
20
20
|
this._set({ "rfidProcessingScreenResultLabel": val });
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
get rfidEnableNfcTitleText() { return this._rfidEnableNfcTitleText; }
|
|
24
|
+
set rfidEnableNfcTitleText(val) {
|
|
25
|
+
this._rfidEnableNfcTitleText = val;
|
|
26
|
+
this._set({ "rfidEnableNfcTitleText": val });
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
get rfidEnableNfcDescriptionText() { return this._rfidEnableNfcDescriptionText; }
|
|
30
|
+
set rfidEnableNfcDescriptionText(val) {
|
|
31
|
+
this._rfidEnableNfcDescriptionText = val;
|
|
32
|
+
this._set({ "rfidEnableNfcDescriptionText": val });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
get rfidEnableNfcButtonText() { return this._rfidEnableNfcButtonText; }
|
|
36
|
+
set rfidEnableNfcButtonText(val) {
|
|
37
|
+
this._rfidEnableNfcButtonText = val;
|
|
38
|
+
this._set({ "rfidEnableNfcButtonText": val });
|
|
39
|
+
}
|
|
40
|
+
|
|
23
41
|
static fromJson(jsonObject) {
|
|
24
42
|
if (jsonObject == null) return null;
|
|
25
43
|
|
|
@@ -27,6 +45,9 @@ export class CustomizationFonts {
|
|
|
27
45
|
result._rfidProcessingScreenHintLabel = Font.fromJson(jsonObject["rfidProcessingScreenHintLabel"]);
|
|
28
46
|
result._rfidProcessingScreenProgressLabel = Font.fromJson(jsonObject["rfidProcessingScreenProgressLabel"]);
|
|
29
47
|
result._rfidProcessingScreenResultLabel = Font.fromJson(jsonObject["rfidProcessingScreenResultLabel"]);
|
|
48
|
+
result._rfidEnableNfcTitleText = Font.fromJson(jsonObject["rfidEnableNfcTitleText"]);
|
|
49
|
+
result._rfidEnableNfcDescriptionText = Font.fromJson(jsonObject["rfidEnableNfcDescriptionText"]);
|
|
50
|
+
result._rfidEnableNfcButtonText = Font.fromJson(jsonObject["rfidEnableNfcButtonText"]);
|
|
30
51
|
|
|
31
52
|
return result;
|
|
32
53
|
}
|
|
@@ -43,6 +64,9 @@ export class CustomizationFonts {
|
|
|
43
64
|
"rfidProcessingScreenHintLabel": this.rfidProcessingScreenHintLabel?.toJson(),
|
|
44
65
|
"rfidProcessingScreenProgressLabel": this.rfidProcessingScreenProgressLabel?.toJson(),
|
|
45
66
|
"rfidProcessingScreenResultLabel": this.rfidProcessingScreenResultLabel?.toJson(),
|
|
67
|
+
"rfidEnableNfcTitleText": this.rfidEnableNfcTitleText?.toJson(),
|
|
68
|
+
"rfidEnableNfcDescriptionText": this.rfidEnableNfcDescriptionText?.toJson(),
|
|
69
|
+
"rfidEnableNfcButtonText": this.rfidEnableNfcButtonText?.toJson(),
|
|
46
70
|
}
|
|
47
71
|
}
|
|
48
72
|
}
|
|
@@ -7,11 +7,18 @@ export class CustomizationImages {
|
|
|
7
7
|
this._set({ "rfidProcessingScreenFailureImage": val });
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
get rfidEnableNfcImage() { return this._rfidEnableNfcImage; }
|
|
11
|
+
set rfidEnableNfcImage(val) {
|
|
12
|
+
this._rfidEnableNfcImage = val;
|
|
13
|
+
this._set({ "rfidEnableNfcImage": val });
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
static fromJson(jsonObject) {
|
|
11
17
|
if (jsonObject == null) return null;
|
|
12
18
|
|
|
13
19
|
const result = new CustomizationImages();
|
|
14
20
|
result._rfidProcessingScreenFailureImage = jsonObject["rfidProcessingScreenFailureImage"];
|
|
21
|
+
result._rfidEnableNfcImage = jsonObject["rfidEnableNfcImage"];
|
|
15
22
|
|
|
16
23
|
return result;
|
|
17
24
|
}
|
|
@@ -26,6 +33,7 @@ export class CustomizationImages {
|
|
|
26
33
|
toJson() {
|
|
27
34
|
return {
|
|
28
35
|
"rfidProcessingScreenFailureImage": this.rfidProcessingScreenFailureImage,
|
|
36
|
+
"rfidEnableNfcImage": this.rfidEnableNfcImage,
|
|
29
37
|
}
|
|
30
38
|
}
|
|
31
39
|
}
|
|
@@ -45,7 +45,7 @@ export class LivenessParams {
|
|
|
45
45
|
|
|
46
46
|
static fromJson(jsonObject) {
|
|
47
47
|
if (jsonObject == null) return new LivenessParams();
|
|
48
|
-
|
|
48
|
+
|
|
49
49
|
const result = new LivenessParams();
|
|
50
50
|
result._checkOVI = jsonObject["checkOVI"];
|
|
51
51
|
result._checkMLI = jsonObject["checkMLI"];
|
|
@@ -54,7 +54,7 @@ export class LivenessParams {
|
|
|
54
54
|
result._checkBlackAndWhiteCopy = jsonObject["checkBlackAndWhiteCopy"];
|
|
55
55
|
result._checkDynaprint = jsonObject["checkDynaprint"];
|
|
56
56
|
result._checkGeometry = jsonObject["checkGeometry"];
|
|
57
|
-
|
|
57
|
+
|
|
58
58
|
return result;
|
|
59
59
|
}
|
|
60
60
|
|