@regulaforensics/document-reader 8.3.272-beta → 8.3.276-beta
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/RNDocumentReader.podspec +1 -1
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/package.json +1 -1
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/test/json.tsx +92 -92
- package/test/package-lock.json +1 -1
- package/test/package.json +0 -3
- package/test/test.tsx +87 -87
- package/test/utils.tsx +29 -25
- package/www/capacitor/config/OnlineProcessingConfig.js +11 -0
- package/www/capacitor/config/RecognizeConfig.js +23 -0
- package/www/capacitor/config/ScannerConfig.js +10 -0
- package/www/capacitor/info/DocReaderException.js +7 -0
- package/www/capacitor/info/DocReaderScenario.js +18 -0
- package/www/capacitor/info/DocReaderVersion.js +9 -0
- package/www/capacitor/info/DocumentsDatabase.js +12 -0
- package/www/capacitor/info/License.js +8 -0
- package/www/capacitor/info/PrepareProgress.js +8 -0
- package/www/capacitor/info/RFIDException.js +7 -0
- package/www/capacitor/params/Functionality.js +44 -0
- package/www/capacitor/params/customization/Customization.js +76 -0
- package/www/capacitor/params/customization/CustomizationColors.js +13 -0
- package/www/capacitor/params/customization/CustomizationFonts.js +8 -0
- package/www/capacitor/params/customization/CustomizationImages.js +6 -0
- package/www/capacitor/params/customization/Font.js +8 -0
- package/www/capacitor/params/process_params/AuthenticityParams.js +21 -0
- package/www/capacitor/params/process_params/BackendProcessingConfig.js +9 -0
- package/www/capacitor/params/process_params/FaceApiParams.js +13 -0
- package/www/capacitor/params/process_params/FaceApiSearchParams.js +8 -0
- package/www/capacitor/params/process_params/GlaresCheckParams.js +7 -0
- package/www/capacitor/params/process_params/ImageQA.js +16 -0
- package/www/capacitor/params/process_params/LivenessParams.js +12 -0
- package/www/capacitor/params/process_params/ProcessParams.js +82 -2
- package/www/capacitor/params/process_params/RfidParams.js +6 -0
- package/www/capacitor/params/rfid_scenario/DTCDataGroup.js +10 -0
- package/www/capacitor/params/rfid_scenario/EDLDataGroups.js +19 -0
- package/www/capacitor/params/rfid_scenario/EIDDataGroups.js +26 -0
- package/www/capacitor/params/rfid_scenario/EPassportDataGroups.js +21 -0
- package/www/capacitor/params/rfid_scenario/RFIDScenario.js +67 -0
- package/www/capacitor/results/Position.js +28 -0
- package/www/capacitor/results/Results.js +25 -0
- package/www/capacitor/results/TransactionInfo.js +8 -0
- package/www/capacitor/results/authenticity/AuthenticityCheck.js +10 -0
- package/www/capacitor/results/authenticity/AuthenticityElement.js +10 -0
- package/www/capacitor/results/authenticity/AuthenticityResult.js +7 -0
- package/www/capacitor/results/barcode/BarcodeField.js +10 -0
- package/www/capacitor/results/barcode/BarcodeResult.js +6 -0
- package/www/capacitor/results/barcode/PDF417Info.js +8 -0
- package/www/capacitor/results/image_quality/ImageQuality.js +9 -0
- package/www/capacitor/results/image_quality/ImageQualityGroup.js +9 -0
- package/www/capacitor/results/rfid/AccessControlProcedureType.js +9 -0
- package/www/capacitor/results/rfid/Application.js +12 -0
- package/www/capacitor/results/rfid/Attribute.js +7 -0
- package/www/capacitor/results/rfid/Authority.js +8 -0
- package/www/capacitor/results/rfid/CardProperties.js +19 -0
- package/www/capacitor/results/rfid/CertificateChain.js +18 -0
- package/www/capacitor/results/rfid/CertificateData.js +7 -0
- package/www/capacitor/results/rfid/DataField.js +7 -0
- package/www/capacitor/results/rfid/Extension.js +7 -0
- package/www/capacitor/results/rfid/File.js +17 -0
- package/www/capacitor/results/rfid/FileData.js +9 -0
- package/www/capacitor/results/rfid/RFIDSessionData.js +16 -0
- package/www/capacitor/results/rfid/RFIDValidity.js +7 -0
- package/www/capacitor/results/rfid/RFIDValue.js +10 -0
- package/www/capacitor/results/rfid/SecurityObject.js +10 -0
- package/www/capacitor/results/rfid/SecurityObjectCertificates.js +6 -0
- package/www/capacitor/results/rfid/SignerInfo.js +17 -0
- package/www/capacitor/results/status/OpticalStatus.js +14 -0
- package/www/capacitor/results/status/RFIDStatus.js +12 -0
- package/www/capacitor/results/status/ResultsStatus.js +12 -0
- package/www/capacitor/results/visible_digital_seals/BytesData.js +9 -0
- package/www/capacitor/results/visible_digital_seals/VDSNCData.js +14 -0
- package/www/capacitor/results/visual_results/Comparison.js +8 -0
- package/www/capacitor/results/visual_results/GraphicField.js +14 -0
- package/www/capacitor/results/visual_results/GraphicResult.js +6 -0
- package/www/capacitor/results/visual_results/RFIDOrigin.js +9 -0
- package/www/capacitor/results/visual_results/Rect.js +9 -0
- package/www/capacitor/results/visual_results/Symbol.js +8 -0
- package/www/capacitor/results/visual_results/TextField.js +17 -0
- package/www/capacitor/results/visual_results/TextResult.js +10 -0
- package/www/capacitor/results/visual_results/TextSource.js +8 -0
- package/www/capacitor/results/visual_results/Validity.js +7 -0
- package/www/capacitor/results/visual_results/Value.js +13 -0
- package/www/capacitor/rfid/PAAttribute.js +7 -0
- package/www/capacitor/rfid/PAResourcesIssuer.js +8 -0
- package/www/capacitor/rfid/PKDCertificate.js +8 -0
- package/www/capacitor/rfid/RFIDNotification.js +8 -0
- package/www/capacitor/rfid/TAChallenge.js +10 -0
- package/www/capacitor/rfid/TccParams.js +10 -0
- package/www/cordova.js +1122 -2
- package/www/react-native/config/OnlineProcessingConfig.js +11 -0
- package/www/react-native/config/RecognizeConfig.js +23 -0
- package/www/react-native/config/ScannerConfig.js +10 -0
- package/www/react-native/info/DocReaderException.js +7 -0
- package/www/react-native/info/DocReaderScenario.js +18 -0
- package/www/react-native/info/DocReaderVersion.js +9 -0
- package/www/react-native/info/DocumentsDatabase.js +12 -0
- package/www/react-native/info/License.js +8 -0
- package/www/react-native/info/PrepareProgress.js +8 -0
- package/www/react-native/info/RFIDException.js +7 -0
- package/www/react-native/params/Functionality.js +44 -0
- package/www/react-native/params/customization/Customization.js +76 -0
- package/www/react-native/params/customization/CustomizationColors.js +13 -0
- package/www/react-native/params/customization/CustomizationFonts.js +8 -0
- package/www/react-native/params/customization/CustomizationImages.js +6 -0
- package/www/react-native/params/customization/Font.js +8 -0
- package/www/react-native/params/process_params/AuthenticityParams.js +21 -0
- package/www/react-native/params/process_params/BackendProcessingConfig.js +9 -0
- package/www/react-native/params/process_params/FaceApiParams.js +13 -0
- package/www/react-native/params/process_params/FaceApiSearchParams.js +8 -0
- package/www/react-native/params/process_params/GlaresCheckParams.js +7 -0
- package/www/react-native/params/process_params/ImageQA.js +16 -0
- package/www/react-native/params/process_params/LivenessParams.js +12 -0
- package/www/react-native/params/process_params/ProcessParams.js +82 -2
- package/www/react-native/params/process_params/RfidParams.js +6 -0
- package/www/react-native/params/rfid_scenario/DTCDataGroup.js +10 -0
- package/www/react-native/params/rfid_scenario/EDLDataGroups.js +19 -0
- package/www/react-native/params/rfid_scenario/EIDDataGroups.js +26 -0
- package/www/react-native/params/rfid_scenario/EPassportDataGroups.js +21 -0
- package/www/react-native/params/rfid_scenario/RFIDScenario.js +67 -0
- package/www/react-native/results/Position.js +28 -0
- package/www/react-native/results/Results.js +25 -0
- package/www/react-native/results/TransactionInfo.js +8 -0
- package/www/react-native/results/authenticity/AuthenticityCheck.js +10 -0
- package/www/react-native/results/authenticity/AuthenticityElement.js +10 -0
- package/www/react-native/results/authenticity/AuthenticityResult.js +7 -0
- package/www/react-native/results/barcode/BarcodeField.js +10 -0
- package/www/react-native/results/barcode/BarcodeResult.js +6 -0
- package/www/react-native/results/barcode/PDF417Info.js +8 -0
- package/www/react-native/results/image_quality/ImageQuality.js +9 -0
- package/www/react-native/results/image_quality/ImageQualityGroup.js +9 -0
- package/www/react-native/results/rfid/AccessControlProcedureType.js +9 -0
- package/www/react-native/results/rfid/Application.js +12 -0
- package/www/react-native/results/rfid/Attribute.js +7 -0
- package/www/react-native/results/rfid/Authority.js +8 -0
- package/www/react-native/results/rfid/CardProperties.js +19 -0
- package/www/react-native/results/rfid/CertificateChain.js +18 -0
- package/www/react-native/results/rfid/CertificateData.js +7 -0
- package/www/react-native/results/rfid/DataField.js +7 -0
- package/www/react-native/results/rfid/Extension.js +7 -0
- package/www/react-native/results/rfid/File.js +17 -0
- package/www/react-native/results/rfid/FileData.js +9 -0
- package/www/react-native/results/rfid/RFIDSessionData.js +16 -0
- package/www/react-native/results/rfid/RFIDValidity.js +7 -0
- package/www/react-native/results/rfid/RFIDValue.js +10 -0
- package/www/react-native/results/rfid/SecurityObject.js +10 -0
- package/www/react-native/results/rfid/SecurityObjectCertificates.js +6 -0
- package/www/react-native/results/rfid/SignerInfo.js +17 -0
- package/www/react-native/results/status/OpticalStatus.js +14 -0
- package/www/react-native/results/status/RFIDStatus.js +12 -0
- package/www/react-native/results/status/ResultsStatus.js +12 -0
- package/www/react-native/results/visible_digital_seals/BytesData.js +9 -0
- package/www/react-native/results/visible_digital_seals/VDSNCData.js +14 -0
- package/www/react-native/results/visual_results/Comparison.js +8 -0
- package/www/react-native/results/visual_results/GraphicField.js +14 -0
- package/www/react-native/results/visual_results/GraphicResult.js +6 -0
- package/www/react-native/results/visual_results/RFIDOrigin.js +9 -0
- package/www/react-native/results/visual_results/Rect.js +9 -0
- package/www/react-native/results/visual_results/Symbol.js +8 -0
- package/www/react-native/results/visual_results/TextField.js +17 -0
- package/www/react-native/results/visual_results/TextResult.js +10 -0
- package/www/react-native/results/visual_results/TextSource.js +8 -0
- package/www/react-native/results/visual_results/Validity.js +7 -0
- package/www/react-native/results/visual_results/Value.js +13 -0
- package/www/react-native/rfid/PAAttribute.js +7 -0
- package/www/react-native/rfid/PAResourcesIssuer.js +8 -0
- package/www/react-native/rfid/PKDCertificate.js +8 -0
- package/www/react-native/rfid/RFIDNotification.js +8 -0
- package/www/react-native/rfid/TAChallenge.js +10 -0
- package/www/react-native/rfid/TccParams.js +10 -0
package/RNDocumentReader.podspec
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/document-reader": "8.3.
|
|
9
|
+
"@regulaforensics/document-reader": "8.3.276-beta",
|
|
10
10
|
"@regulaforensics/document-reader-core-fullauthrfid": "8.2.8-beta",
|
|
11
11
|
"@regulaforensics/document-reader-btdevice": "8.2.8-beta",
|
|
12
12
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/document-reader": "8.3.
|
|
9
|
+
"@regulaforensics/document-reader": "8.3.276-beta",
|
|
10
10
|
"@regulaforensics/document-reader-core-fullauthrfid": "8.2.8-beta",
|
|
11
11
|
"@regulaforensics/document-reader-btdevice": "8.2.8-beta",
|
|
12
12
|
"@awesome-cordova-plugins/file": "6.14.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/document-reader": "8.3.
|
|
11
|
+
"@regulaforensics/document-reader": "8.3.276-beta",
|
|
12
12
|
"@regulaforensics/document-reader-core-fullauthrfid": "8.2.8-beta",
|
|
13
13
|
"@regulaforensics/document-reader-btdevice": "8.2.8-beta",
|
|
14
14
|
"react-native": "0.79.5",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/document-reader",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.276-beta",
|
|
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.3.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="8.3.276-beta" 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>
|
package/test/json.tsx
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var img1 = 'data1'
|
|
2
|
-
var img2 = 'data2'
|
|
3
|
-
var img3 = 'data3'
|
|
1
|
+
var img1 = 'data1'
|
|
2
|
+
var img2 = 'data2'
|
|
3
|
+
var img3 = 'data3'
|
|
4
4
|
|
|
5
5
|
export var faceApiSearchParams = {
|
|
6
6
|
"limit": 1,
|
|
7
7
|
"threshold": 2,
|
|
8
8
|
"groupIds": [3, 4, 5],
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
10
|
export var faceApiParams = {
|
|
11
11
|
"url": "test1",
|
|
12
12
|
"mode": "test2",
|
|
@@ -16,7 +16,7 @@ export var faceApiParams = {
|
|
|
16
16
|
"proxyPassword": "test4",
|
|
17
17
|
"proxyType": 3,
|
|
18
18
|
"searchParams": faceApiSearchParams,
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
20
|
export var livenessParams = {
|
|
21
21
|
"checkOVI": true,
|
|
22
22
|
"checkMLI": false,
|
|
@@ -25,7 +25,7 @@ export var livenessParams = {
|
|
|
25
25
|
"checkBlackAndWhiteCopy": true,
|
|
26
26
|
"checkDynaprint": false,
|
|
27
27
|
"checkGeometry": true,
|
|
28
|
-
}
|
|
28
|
+
}
|
|
29
29
|
export var authenticityParams = {
|
|
30
30
|
"useLivenessCheck": true,
|
|
31
31
|
"checkUVLuminiscence": false,
|
|
@@ -43,8 +43,8 @@ export var authenticityParams = {
|
|
|
43
43
|
"checkLetterScreen": false,
|
|
44
44
|
"checkSecurityText": true,
|
|
45
45
|
"livenessParams": livenessParams,
|
|
46
|
-
}
|
|
47
|
-
export var glaresCheckParams = {"imgMarginPart": 0.5, "maxGlaringPart": 1.5}
|
|
46
|
+
}
|
|
47
|
+
export var glaresCheckParams = {"imgMarginPart": 0.5, "maxGlaringPart": 1.5}
|
|
48
48
|
export var imageQA = {
|
|
49
49
|
"dpiThreshold": 1,
|
|
50
50
|
"angleThreshold": 2,
|
|
@@ -57,16 +57,16 @@ export var imageQA = {
|
|
|
57
57
|
"glaresCheckParams": glaresCheckParams,
|
|
58
58
|
"brightnessThreshold": 0.5,
|
|
59
59
|
"occlusionCheck": true,
|
|
60
|
-
}
|
|
60
|
+
}
|
|
61
61
|
export var rfidParams = {
|
|
62
62
|
"paIgnoreNotificationCodes": [1, 2, 3],
|
|
63
|
-
}
|
|
63
|
+
}
|
|
64
64
|
export var backendProcessingConfig = {
|
|
65
65
|
"url": "test",
|
|
66
66
|
"rfidServerSideChipVerification": true,
|
|
67
67
|
"httpHeaders": {"key1": "val1", "key2": "val2", "key3": "val3"},
|
|
68
68
|
"timeoutConnection": 0.5,
|
|
69
|
-
}
|
|
69
|
+
}
|
|
70
70
|
export var processParams = {
|
|
71
71
|
"multipageProcessing": true,
|
|
72
72
|
"debugSaveImages": false,
|
|
@@ -143,9 +143,9 @@ export var processParams = {
|
|
|
143
143
|
"backendProcessingConfig": backendProcessingConfig,
|
|
144
144
|
"authenticityParams": authenticityParams,
|
|
145
145
|
"customParams": {"test1": true, "test2": 1, "test3": "test"},
|
|
146
|
-
}
|
|
147
|
-
export var font1 = {"name": "AppleSDGothicNeo-Thin", "size": 10, "style": 2}
|
|
148
|
-
export var font2 = {"name": "Copperplate-Light", "size": 20, "style": 1}
|
|
146
|
+
}
|
|
147
|
+
export var font1 = {"name": "AppleSDGothicNeo-Thin", "size": 10, "style": 2}
|
|
148
|
+
export var font2 = {"name": "Copperplate-Light", "size": 20, "style": 1}
|
|
149
149
|
export var customizationColors = {
|
|
150
150
|
"rfidProcessingScreenBackground": 0xff000000,
|
|
151
151
|
"rfidProcessingScreenHintLabelText": 0xff000001,
|
|
@@ -155,13 +155,13 @@ export var customizationColors = {
|
|
|
155
155
|
"rfidProcessingScreenProgressBarBackground": 0xff000005,
|
|
156
156
|
"rfidProcessingScreenResultLabelText": 0xff000006,
|
|
157
157
|
"rfidProcessingScreenLoadingBar": 0xff000007,
|
|
158
|
-
}
|
|
158
|
+
}
|
|
159
159
|
export var customizationFonts = {
|
|
160
160
|
"rfidProcessingScreenHintLabel": font1,
|
|
161
161
|
"rfidProcessingScreenProgressLabel": font2,
|
|
162
162
|
"rfidProcessingScreenResultLabel": font1,
|
|
163
|
-
}
|
|
164
|
-
export var customizationImages = {"rfidProcessingScreenFailureImage": img1}
|
|
163
|
+
}
|
|
164
|
+
export var customizationImages = {"rfidProcessingScreenFailureImage": img1}
|
|
165
165
|
export var customization = {
|
|
166
166
|
"showStatusMessages": true,
|
|
167
167
|
"showResultStatusMessages": false,
|
|
@@ -254,8 +254,8 @@ export var customization = {
|
|
|
254
254
|
"colors": customizationColors,
|
|
255
255
|
"fonts": customizationFonts,
|
|
256
256
|
"images": customizationImages,
|
|
257
|
-
}
|
|
258
|
-
export var cameraSize = {"width": 0, "height": 1}
|
|
257
|
+
}
|
|
258
|
+
export var cameraSize = {"width": 0, "height": 1}
|
|
259
259
|
export var functionality = {
|
|
260
260
|
"pictureOnBoundsReady": true,
|
|
261
261
|
"showTorchButton": false,
|
|
@@ -289,7 +289,7 @@ export var functionality = {
|
|
|
289
289
|
"excludedCamera2Models": ["test1", "test2", "test3"],
|
|
290
290
|
"cameraSize": cameraSize,
|
|
291
291
|
"videoSessionPreset": 6,
|
|
292
|
-
}
|
|
292
|
+
}
|
|
293
293
|
export var eDLDataGroups = {
|
|
294
294
|
"DG1": true,
|
|
295
295
|
"DG2": false,
|
|
@@ -305,7 +305,7 @@ export var eDLDataGroups = {
|
|
|
305
305
|
"DG12": false,
|
|
306
306
|
"DG13": true,
|
|
307
307
|
"DG14": false,
|
|
308
|
-
}
|
|
308
|
+
}
|
|
309
309
|
export var ePassportDataGroups = {
|
|
310
310
|
"DG1": true,
|
|
311
311
|
"DG2": false,
|
|
@@ -323,7 +323,7 @@ export var ePassportDataGroups = {
|
|
|
323
323
|
"DG14": false,
|
|
324
324
|
"DG15": true,
|
|
325
325
|
"DG16": false,
|
|
326
|
-
}
|
|
326
|
+
}
|
|
327
327
|
export var eIDDataGroups = {
|
|
328
328
|
"DG1": true,
|
|
329
329
|
"DG2": false,
|
|
@@ -346,14 +346,14 @@ export var eIDDataGroups = {
|
|
|
346
346
|
"DG19": true,
|
|
347
347
|
"DG20": false,
|
|
348
348
|
"DG21": true,
|
|
349
|
-
}
|
|
349
|
+
}
|
|
350
350
|
export var dtcDataGroup = {
|
|
351
351
|
"DG17": true,
|
|
352
352
|
"DG18": false,
|
|
353
353
|
"DG22": false,
|
|
354
354
|
"DG23": true,
|
|
355
355
|
"DG24": false,
|
|
356
|
-
}
|
|
356
|
+
}
|
|
357
357
|
export var rfidScenario = {
|
|
358
358
|
"paceStaticBinding": true,
|
|
359
359
|
"onlineTA": false,
|
|
@@ -417,7 +417,7 @@ export var rfidScenario = {
|
|
|
417
417
|
"ePassportDataGroups": ePassportDataGroups,
|
|
418
418
|
"eIDDataGroups": eIDDataGroups,
|
|
419
419
|
"dtcDataGroups": dtcDataGroup,
|
|
420
|
-
}
|
|
420
|
+
}
|
|
421
421
|
|
|
422
422
|
export var initConfig = {
|
|
423
423
|
"delayedNNLoad": false,
|
|
@@ -427,7 +427,7 @@ export var initConfig = {
|
|
|
427
427
|
"databasePath": "test",
|
|
428
428
|
"license": img2,
|
|
429
429
|
"useBleDevice": true,
|
|
430
|
-
}
|
|
430
|
+
}
|
|
431
431
|
export var onlineProcessingConfig = {
|
|
432
432
|
"mode": 1,
|
|
433
433
|
"url": "test",
|
|
@@ -435,8 +435,8 @@ export var onlineProcessingConfig = {
|
|
|
435
435
|
"imageCompressionQuality": 1.5,
|
|
436
436
|
"processParams": processParams,
|
|
437
437
|
"requestHeaders": {"key1": "val1", "key2": "val2", "key3": "val3"},
|
|
438
|
-
}
|
|
439
|
-
export var imageInputData = {"image": img1, "light": 128, "pageIndex": 2}
|
|
438
|
+
}
|
|
439
|
+
export var imageInputData = {"image": img1, "light": 128, "pageIndex": 2}
|
|
440
440
|
export var recognizeConfig = {
|
|
441
441
|
"scenario": "Mrz",
|
|
442
442
|
"livePortrait": img1,
|
|
@@ -447,7 +447,7 @@ export var recognizeConfig = {
|
|
|
447
447
|
"data": img1,
|
|
448
448
|
"images": [img1, img2, img3],
|
|
449
449
|
"imageInputData": [imageInputData, imageInputData, imageInputData],
|
|
450
|
-
}
|
|
450
|
+
}
|
|
451
451
|
export var recognizeConfig2 = {
|
|
452
452
|
"onlineProcessingConfig": onlineProcessingConfig,
|
|
453
453
|
"livePortrait": img1,
|
|
@@ -457,14 +457,14 @@ export var recognizeConfig2 = {
|
|
|
457
457
|
"data": img1,
|
|
458
458
|
"images": [img1, img2, img3],
|
|
459
459
|
"imageInputData": [imageInputData, imageInputData, imageInputData],
|
|
460
|
-
}
|
|
460
|
+
}
|
|
461
461
|
export var scannerConfig = {
|
|
462
462
|
"scenario": "Mrz",
|
|
463
463
|
"onlineProcessingConfig": onlineProcessingConfig,
|
|
464
464
|
"livePortrait": img1,
|
|
465
465
|
"extPortrait": img2,
|
|
466
466
|
"cameraId": 1,
|
|
467
|
-
}
|
|
467
|
+
}
|
|
468
468
|
|
|
469
469
|
export var documentsDatabase = {
|
|
470
470
|
"databaseID": "test1",
|
|
@@ -474,13 +474,13 @@ export var documentsDatabase = {
|
|
|
474
474
|
"countriesNumber": 1,
|
|
475
475
|
"documentsNumber": 2,
|
|
476
476
|
"size": 3,
|
|
477
|
-
}
|
|
477
|
+
}
|
|
478
478
|
export var docReaderVersion = {
|
|
479
479
|
"api": "test1",
|
|
480
480
|
"core": "test2",
|
|
481
481
|
"coreMode": "test3",
|
|
482
482
|
"database": documentsDatabase,
|
|
483
|
-
}
|
|
483
|
+
}
|
|
484
484
|
export var docReaderScenario = {
|
|
485
485
|
"uvTorch": true,
|
|
486
486
|
"frameOrientation": 2,
|
|
@@ -495,15 +495,15 @@ export var docReaderScenario = {
|
|
|
495
495
|
"caption": "test2",
|
|
496
496
|
"description": "test3",
|
|
497
497
|
"manualCrop": false,
|
|
498
|
-
}
|
|
498
|
+
}
|
|
499
499
|
export var license = {
|
|
500
500
|
"expiryDate": "test1",
|
|
501
501
|
"countryFilter": ["test2", "test3", "test4"],
|
|
502
502
|
"isRfidAvailable": true,
|
|
503
|
-
}
|
|
504
|
-
export var docReaderException = {"code": 1, "message": "test1"}
|
|
505
|
-
export var rfidException = {"code": 2, "message": "test2"}
|
|
506
|
-
export var prepareProgress = {"downloadedBytes": 1, "totalBytes": 2, "progress": 50}
|
|
503
|
+
}
|
|
504
|
+
export var docReaderException = {"code": 1, "message": "test1"}
|
|
505
|
+
export var rfidException = {"code": 2, "message": "test2"}
|
|
506
|
+
export var prepareProgress = {"downloadedBytes": 1, "totalBytes": 2, "progress": 50}
|
|
507
507
|
|
|
508
508
|
export var authenticityElement = {
|
|
509
509
|
"status": 1,
|
|
@@ -511,51 +511,51 @@ export var authenticityElement = {
|
|
|
511
511
|
"elementDiagnose": 3,
|
|
512
512
|
"elementTypeName": "Photo element",
|
|
513
513
|
"elementDiagnoseName": "Error of internal data processing",
|
|
514
|
-
}
|
|
514
|
+
}
|
|
515
515
|
export var authenticityCheck = {
|
|
516
516
|
"type": 1,
|
|
517
517
|
"status": 2,
|
|
518
518
|
"typeName": "UV dull paper check",
|
|
519
519
|
"pageIndex": 3,
|
|
520
520
|
"elements": [authenticityElement, authenticityElement, authenticityElement],
|
|
521
|
-
}
|
|
521
|
+
}
|
|
522
522
|
export var authenticityResult = {
|
|
523
523
|
"status": 2,
|
|
524
524
|
"checks": [authenticityCheck, authenticityCheck, authenticityCheck],
|
|
525
|
-
}
|
|
526
|
-
export var pdf417Info = {"errorLevel": 2, "columns": 3, "rows": 4}
|
|
525
|
+
}
|
|
526
|
+
export var pdf417Info = {"errorLevel": 2, "columns": 3, "rows": 4}
|
|
527
527
|
export var barcodeField = {
|
|
528
528
|
"barcodeType": 5,
|
|
529
529
|
"status": -6001,
|
|
530
530
|
"pageIndex": 2,
|
|
531
531
|
"pdf417Info": pdf417Info,
|
|
532
532
|
"data": img1,
|
|
533
|
-
}
|
|
533
|
+
}
|
|
534
534
|
export var barcodeResult = {
|
|
535
535
|
"fields": [barcodeField, barcodeField, barcodeField],
|
|
536
|
-
}
|
|
537
|
-
export var rect = {"bottom": 0, "top": 1, "left": 2, "right": 3}
|
|
536
|
+
}
|
|
537
|
+
export var rect = {"bottom": 0, "top": 1, "left": 2, "right": 3}
|
|
538
538
|
export var imageQuality = {
|
|
539
539
|
"featureType": 1,
|
|
540
540
|
"result": 2,
|
|
541
541
|
"type": 3,
|
|
542
542
|
"boundRects": [rect, rect, rect],
|
|
543
|
-
}
|
|
543
|
+
}
|
|
544
544
|
export var imageQualityGroup = {
|
|
545
545
|
"count": 1,
|
|
546
546
|
"result": 2,
|
|
547
547
|
"pageIndex": 3,
|
|
548
548
|
"imageQualityList": [imageQuality, imageQuality, imageQuality],
|
|
549
|
-
}
|
|
549
|
+
}
|
|
550
550
|
export var accessControlProcedureType = {
|
|
551
551
|
"activeOptionIdx": 1,
|
|
552
552
|
"type": 2,
|
|
553
553
|
"status": 1,
|
|
554
554
|
"notifications": [1, 2, 3],
|
|
555
|
-
}
|
|
556
|
-
export var fileData = {"data": "test", "length": 2, "type": 3, "status": 4}
|
|
557
|
-
export var certificateData = {"data": "test", "length": 1}
|
|
558
|
-
export var securityObjectCertificates = {"securityObject": certificateData}
|
|
555
|
+
}
|
|
556
|
+
export var fileData = {"data": "test", "length": 2, "type": 3, "status": 4}
|
|
557
|
+
export var certificateData = {"data": "test", "length": 1}
|
|
558
|
+
export var securityObjectCertificates = {"securityObject": certificateData}
|
|
559
559
|
export var file = {
|
|
560
560
|
"fileData": fileData,
|
|
561
561
|
"fileID": "test1",
|
|
@@ -569,7 +569,7 @@ export var file = {
|
|
|
569
569
|
"docFieldsGraphics": [7, 8, 9],
|
|
570
570
|
"docFieldsOriginals": [10, 11, 12],
|
|
571
571
|
"certificates": securityObjectCertificates,
|
|
572
|
-
}
|
|
572
|
+
}
|
|
573
573
|
export var application = {
|
|
574
574
|
"applicationID": "test1",
|
|
575
575
|
"dataHashAlgorithm": "test2",
|
|
@@ -578,20 +578,20 @@ export var application = {
|
|
|
578
578
|
"type": 2,
|
|
579
579
|
"unicodeVersion": "test3",
|
|
580
580
|
"version": "test4",
|
|
581
|
-
}
|
|
581
|
+
}
|
|
582
582
|
export var rfidValue = {
|
|
583
583
|
"data": "test1",
|
|
584
584
|
"length": 1,
|
|
585
585
|
"status": 2,
|
|
586
586
|
"type": 3,
|
|
587
587
|
"format": "test2",
|
|
588
|
-
}
|
|
589
|
-
export var attribute = {"type": "test", "value": rfidValue}
|
|
588
|
+
}
|
|
589
|
+
export var attribute = {"type": "test", "value": rfidValue}
|
|
590
590
|
export var authority = {
|
|
591
591
|
"attributes": [attribute, attribute, attribute],
|
|
592
592
|
"data": "test",
|
|
593
593
|
"friendlyName": rfidValue,
|
|
594
|
-
}
|
|
594
|
+
}
|
|
595
595
|
export var cardProperties = {
|
|
596
596
|
"aTQA": 1,
|
|
597
597
|
"bitRateR": 2,
|
|
@@ -607,9 +607,9 @@ export var cardProperties = {
|
|
|
607
607
|
"baudrate1": "test3",
|
|
608
608
|
"baudrate2": "test4",
|
|
609
609
|
"uID": "test5",
|
|
610
|
-
}
|
|
611
|
-
export var extension = {"data": "test1", "type": "test2"}
|
|
612
|
-
export var rfidValidity = {"notAfter": rfidValue, "notBefore": rfidValue}
|
|
610
|
+
}
|
|
611
|
+
export var extension = {"data": "test1", "type": "test2"}
|
|
612
|
+
export var rfidValidity = {"notAfter": rfidValue, "notBefore": rfidValue}
|
|
613
613
|
export var certificateChain = {
|
|
614
614
|
"type": 1,
|
|
615
615
|
"extensions": [extension, extension, extension],
|
|
@@ -624,8 +624,8 @@ export var certificateChain = {
|
|
|
624
624
|
"subjectPKAlgorithm": "test3",
|
|
625
625
|
"validity": rfidValidity,
|
|
626
626
|
"version": 4,
|
|
627
|
-
}
|
|
628
|
-
export var dataField = {"data": "test", "fieldType": 1}
|
|
627
|
+
}
|
|
628
|
+
export var dataField = {"data": "test", "fieldType": 1}
|
|
629
629
|
export var signerInfo = {
|
|
630
630
|
"dataToHash": "test1",
|
|
631
631
|
"digestAlgorithm": "test2",
|
|
@@ -639,14 +639,14 @@ export var signerInfo = {
|
|
|
639
639
|
"signedAttributes": [extension, extension, extension],
|
|
640
640
|
"certificateChain": [certificateChain, certificateChain, certificateChain],
|
|
641
641
|
"notifications": [1, 2, 3],
|
|
642
|
-
}
|
|
642
|
+
}
|
|
643
643
|
export var securityObject = {
|
|
644
644
|
"fileReference": 1,
|
|
645
645
|
"objectType": "test",
|
|
646
646
|
"version": 2,
|
|
647
647
|
"signerInfos": [signerInfo, signerInfo, signerInfo],
|
|
648
648
|
"notifications": [1, 2, 3],
|
|
649
|
-
}
|
|
649
|
+
}
|
|
650
650
|
export var rfidSessionData = {
|
|
651
651
|
"accessControls": [
|
|
652
652
|
accessControlProcedureType,
|
|
@@ -663,8 +663,8 @@ export var rfidSessionData = {
|
|
|
663
663
|
"status": 1,
|
|
664
664
|
"extLeSupport": 1,
|
|
665
665
|
"processTime": 4,
|
|
666
|
-
}
|
|
667
|
-
export var bytesData = {"data": "test", "length": 1, "status": 2, "type": 3}
|
|
666
|
+
}
|
|
667
|
+
export var bytesData = {"data": "test", "length": 1, "status": 2, "type": 3}
|
|
668
668
|
export var vdsncData = {
|
|
669
669
|
"type": "test1",
|
|
670
670
|
"version": 1,
|
|
@@ -675,7 +675,7 @@ export var vdsncData = {
|
|
|
675
675
|
"certificate": bytesData,
|
|
676
676
|
"certificateChain": [certificateChain, certificateChain, certificateChain],
|
|
677
677
|
"notifications": [3000000001, 3000000002, 3000000003],
|
|
678
|
-
}
|
|
678
|
+
}
|
|
679
679
|
export var opticalStatus = {
|
|
680
680
|
"overallStatus": 0,
|
|
681
681
|
"mrz": 1,
|
|
@@ -686,7 +686,7 @@ export var opticalStatus = {
|
|
|
686
686
|
"expiry": 0,
|
|
687
687
|
"vds": 1,
|
|
688
688
|
"pagesCount": 3,
|
|
689
|
-
}
|
|
689
|
+
}
|
|
690
690
|
export var rfidStatus = {
|
|
691
691
|
"overallStatus": 0,
|
|
692
692
|
"pa": 1,
|
|
@@ -695,7 +695,7 @@ export var rfidStatus = {
|
|
|
695
695
|
"ta": 1,
|
|
696
696
|
"bac": 2,
|
|
697
697
|
"pace": 0,
|
|
698
|
-
}
|
|
698
|
+
}
|
|
699
699
|
export var resultsStatus = {
|
|
700
700
|
"overallStatus": 0,
|
|
701
701
|
"optical": 1,
|
|
@@ -704,8 +704,8 @@ export var resultsStatus = {
|
|
|
704
704
|
"stopList": 1,
|
|
705
705
|
"detailsOptical": opticalStatus,
|
|
706
706
|
"detailsRFID": rfidStatus,
|
|
707
|
-
}
|
|
708
|
-
export var comparison = {"sourceTypeLeft": 0, "sourceTypeRight": 1, "status": 2}
|
|
707
|
+
}
|
|
708
|
+
export var comparison = {"sourceTypeLeft": 0, "sourceTypeRight": 1, "status": 2}
|
|
709
709
|
export var graphicField = {
|
|
710
710
|
"sourceType": 0,
|
|
711
711
|
"fieldType": 201,
|
|
@@ -716,13 +716,13 @@ export var graphicField = {
|
|
|
716
716
|
"originalPageIndex": 4,
|
|
717
717
|
"value": img1,
|
|
718
718
|
"fieldRect": rect,
|
|
719
|
-
}
|
|
719
|
+
}
|
|
720
720
|
export var graphicResult = {
|
|
721
721
|
"fields": [graphicField, graphicField, graphicField],
|
|
722
|
-
}
|
|
723
|
-
export var rfidOrigin = {"dg": 1, "dgTag": 2, "entryView": 3, "tagEntry": 4}
|
|
724
|
-
export var symbol = {"rect": rect, "code": 1, "probability": 2}
|
|
725
|
-
export var validity = {"sourceType": 1, "status": 2}
|
|
722
|
+
}
|
|
723
|
+
export var rfidOrigin = {"dg": 1, "dgTag": 2, "entryView": 3, "tagEntry": 4}
|
|
724
|
+
export var symbol = {"rect": rect, "code": 1, "probability": 2}
|
|
725
|
+
export var validity = {"sourceType": 1, "status": 2}
|
|
726
726
|
export var value = {
|
|
727
727
|
"sourceType": 3,
|
|
728
728
|
"value": "test1",
|
|
@@ -732,7 +732,7 @@ export var value = {
|
|
|
732
732
|
"rfidOrigin": rfidOrigin,
|
|
733
733
|
"originalSymbols": [symbol, symbol, symbol],
|
|
734
734
|
"probability": 1,
|
|
735
|
-
}
|
|
735
|
+
}
|
|
736
736
|
export var textField = {
|
|
737
737
|
"fieldType": 1,
|
|
738
738
|
"fieldName": "Issuing state code",
|
|
@@ -746,22 +746,22 @@ export var textField = {
|
|
|
746
746
|
"validityList": [validity, validity, validity],
|
|
747
747
|
"comparisonStatus": 0,
|
|
748
748
|
"validityStatus": 1,
|
|
749
|
-
}
|
|
749
|
+
}
|
|
750
750
|
export var textSource = {
|
|
751
751
|
"sourceType": validity["sourceType"],
|
|
752
752
|
"source": "sourceType",
|
|
753
753
|
"validityStatus": 1,
|
|
754
|
-
}
|
|
754
|
+
}
|
|
755
755
|
export var documentReaderTextSource2 = {
|
|
756
756
|
"sourceType": comparison["sourceTypeLeft"],
|
|
757
757
|
"source": "sourceTypeLeft",
|
|
758
758
|
"validityStatus": 1,
|
|
759
|
-
}
|
|
759
|
+
}
|
|
760
760
|
export var documentReaderTextSource3 = {
|
|
761
761
|
"sourceType": comparison["sourceTypeRight"],
|
|
762
762
|
"source": "sourceTypeRight",
|
|
763
763
|
"validityStatus": 1,
|
|
764
|
-
}
|
|
764
|
+
}
|
|
765
765
|
export var textResult = {
|
|
766
766
|
"status": 0,
|
|
767
767
|
"comparisonStatus": 1,
|
|
@@ -772,7 +772,7 @@ export var textResult = {
|
|
|
772
772
|
documentReaderTextSource3,
|
|
773
773
|
],
|
|
774
774
|
"fields": [textField, textField, textField],
|
|
775
|
-
}
|
|
775
|
+
}
|
|
776
776
|
export var documentType = {
|
|
777
777
|
"name": "test1",
|
|
778
778
|
"documentID": 1,
|
|
@@ -786,8 +786,8 @@ export var documentType = {
|
|
|
786
786
|
"dYear": "test4",
|
|
787
787
|
"dCountryName": "test5",
|
|
788
788
|
"pageIndex": 3,
|
|
789
|
-
}
|
|
790
|
-
export var coordinate = {"x": 1, "y": 2}
|
|
789
|
+
}
|
|
790
|
+
export var coordinate = {"x": 1, "y": 2}
|
|
791
791
|
export var position = {
|
|
792
792
|
"docFormat": 0,
|
|
793
793
|
"resultStatus": 1,
|
|
@@ -805,12 +805,12 @@ export var position = {
|
|
|
805
805
|
"leftBottom": coordinate,
|
|
806
806
|
"rightTop": coordinate,
|
|
807
807
|
"rightBottom": coordinate,
|
|
808
|
-
}
|
|
808
|
+
}
|
|
809
809
|
export var transactionInfo = {
|
|
810
810
|
"transactionId": "test1",
|
|
811
811
|
"tag": "test2",
|
|
812
812
|
"sessionLogFolder": "test3",
|
|
813
|
-
}
|
|
813
|
+
}
|
|
814
814
|
export var results = {
|
|
815
815
|
"chipPage": 0,
|
|
816
816
|
"processingFinishedStatus": 2,
|
|
@@ -832,35 +832,35 @@ export var results = {
|
|
|
832
832
|
"vdsncData": vdsncData,
|
|
833
833
|
"dtcData": img1,
|
|
834
834
|
"transactionInfo": transactionInfo,
|
|
835
|
-
}
|
|
835
|
+
}
|
|
836
836
|
|
|
837
837
|
export var rfidNotification = {
|
|
838
838
|
"notificationCode": 65536,
|
|
839
839
|
"dataFileType": 1,
|
|
840
840
|
"progress": 2,
|
|
841
|
-
}
|
|
842
|
-
export var paAttribute = {"type": "test1", "value": "test2"}
|
|
841
|
+
}
|
|
842
|
+
export var paAttribute = {"type": "test1", "value": "test2"}
|
|
843
843
|
export var paResourcesIssuer = {
|
|
844
844
|
"data": img1,
|
|
845
845
|
"friendlyName": "test",
|
|
846
846
|
"attributes": [paAttribute, paAttribute, paAttribute],
|
|
847
|
-
}
|
|
847
|
+
}
|
|
848
848
|
export var pkdCertificate = {
|
|
849
849
|
"binaryData": img1,
|
|
850
850
|
"resourceType": 0,
|
|
851
851
|
"privateKey": img2,
|
|
852
|
-
}
|
|
852
|
+
}
|
|
853
853
|
export var taChallenge = {
|
|
854
854
|
"data": img1,
|
|
855
855
|
"auxPCD": "test1",
|
|
856
856
|
"challengePICC": "test2",
|
|
857
857
|
"hashPK": "test3",
|
|
858
858
|
"idPICC": "test4",
|
|
859
|
-
}
|
|
859
|
+
}
|
|
860
860
|
export var tccParams = {
|
|
861
861
|
"serviceUrlTA": "test1",
|
|
862
862
|
"serviceUrlPA": "test2",
|
|
863
863
|
"pfxCertUrl": "test3",
|
|
864
864
|
"pfxPassPhrase": "test4",
|
|
865
865
|
"pfxCert": img1,
|
|
866
|
-
}
|
|
866
|
+
}
|
package/test/package-lock.json
CHANGED