@regulaforensics/document-reader 7.1.301-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.
- package/README.md +17 -0
- package/RNDocumentReader.podspec +21 -0
- package/android/CVDDocumentReader.kt +74 -0
- package/android/build.gradle +36 -0
- package/android/cordova.gradle +12 -0
- package/android/src/main/java/com/regula/plugin/documentreader/BluetoothUtil.kt +160 -0
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +834 -0
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +1795 -0
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +579 -0
- package/android/src/main/java/com/regula/plugin/documentreader/RNDocumentReaderModule.kt +100 -0
- package/android/src/main/java/com/regula/plugin/documentreader/Utils.kt +181 -0
- package/examples/capacitor/README.md +22 -0
- package/examples/capacitor/android/app/build.gradle +50 -0
- package/examples/capacitor/android/app/capacitor.build.gradle +22 -0
- package/examples/capacitor/android/app/proguard-rules.pro +21 -0
- package/examples/capacitor/android/app/src/main/AndroidManifest.xml +27 -0
- package/examples/capacitor/android/app/src/main/assets/Regula/.gitkeep +0 -0
- package/examples/capacitor/android/app/src/main/java/com/regula/example/dr/capacitor/MainActivity.java +5 -0
- package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable/launcher.xml +4 -0
- package/examples/capacitor/android/app/src/main/res/drawable/launcher_round.xml +4 -0
- package/examples/capacitor/android/app/src/main/res/drawable/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/layout/activity_main.xml +12 -0
- package/examples/capacitor/android/app/src/main/res/values/styles.xml +22 -0
- package/examples/capacitor/android/build.gradle +30 -0
- package/examples/capacitor/android/capacitor.settings.gradle +15 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/examples/capacitor/android/gradle.properties +22 -0
- package/examples/capacitor/android/gradlew +252 -0
- package/examples/capacitor/android/gradlew.bat +94 -0
- package/examples/capacitor/android/settings.gradle +5 -0
- package/examples/capacitor/android/variables.gradle +16 -0
- package/examples/capacitor/index.html +5 -0
- package/examples/capacitor/index.tsx +39 -0
- package/examples/capacitor/ionic.config.json +7 -0
- package/examples/capacitor/ios/App/App/App.entitlements +10 -0
- package/examples/capacitor/ios/App/App/AppDelegate.swift +49 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Contents.json +6 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
- package/examples/capacitor/ios/App/App/Base.lproj/LaunchScreen.storyboard +32 -0
- package/examples/capacitor/ios/App/App/Base.lproj/Main.storyboard +19 -0
- package/examples/capacitor/ios/App/App/Info.plist +67 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +414 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/examples/capacitor/ios/App/App.xcworkspace/contents.xcworkspacedata +10 -0
- package/examples/capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/examples/capacitor/ios/App/Podfile +26 -0
- package/examples/capacitor/ios/App/Podfile.lock +56 -0
- package/examples/capacitor/package-lock.json +3411 -0
- package/examples/capacitor/package.json +27 -0
- package/examples/capacitor/public/assets/.gitkeep +0 -0
- package/examples/capacitor/public/images/document.png +0 -0
- package/examples/capacitor/public/images/portrait.png +0 -0
- package/examples/capacitor/scripts/android.sh +9 -0
- package/examples/capacitor/scripts/ios.sh +8 -0
- package/examples/capacitor/scripts/setup.sh +12 -0
- package/examples/capacitor/src/extra/bt_device.tsx +33 -0
- package/examples/capacitor/src/extra/custom_rfid.tsx +61 -0
- package/examples/capacitor/src/main.css +148 -0
- package/examples/capacitor/src/main.html +38 -0
- package/examples/capacitor/src/main.tsx +172 -0
- package/examples/capacitor/tsconfig.json +5 -0
- package/examples/capacitor/vite.config.ts +17 -0
- package/examples/ionic/README.md +22 -0
- package/examples/ionic/angular.json +39 -0
- package/examples/ionic/assets/.gitkeep +0 -0
- package/examples/ionic/config.xml +61 -0
- package/examples/ionic/images/document.png +0 -0
- package/examples/ionic/images/icon.png +0 -0
- package/examples/ionic/images/portrait.png +0 -0
- package/examples/ionic/index.html +19 -0
- package/examples/ionic/index.tsx +54 -0
- package/examples/ionic/ionic.config.json +7 -0
- package/examples/ionic/package-lock.json +14349 -0
- package/examples/ionic/package.json +44 -0
- package/examples/ionic/scripts/android.sh +8 -0
- package/examples/ionic/scripts/ios.sh +8 -0
- package/examples/ionic/scripts/setup.sh +8 -0
- package/examples/ionic/src/extra/bt_device.tsx +33 -0
- package/examples/ionic/src/extra/custom_rfid.tsx +61 -0
- package/examples/ionic/src/main.css +148 -0
- package/examples/ionic/src/main.html +38 -0
- package/examples/ionic/src/main.tsx +172 -0
- package/examples/ionic/tsconfig.json +14 -0
- package/examples/react_native/README.md +22 -0
- package/examples/react_native/app.config.ts +49 -0
- package/examples/react_native/assets/.gitkeep +0 -0
- package/examples/react_native/images/document.png +0 -0
- package/examples/react_native/images/icon.png +0 -0
- package/examples/react_native/images/portrait.png +0 -0
- package/examples/react_native/index.html +11 -0
- package/examples/react_native/index.tsx +81 -0
- package/examples/react_native/metro.config.js +7 -0
- package/examples/react_native/package-lock.json +8612 -0
- package/examples/react_native/package.json +27 -0
- package/examples/react_native/scripts/android.sh +13 -0
- package/examples/react_native/scripts/ios.sh +12 -0
- package/examples/react_native/scripts/setup.sh +8 -0
- package/examples/react_native/src/extra/bt_device.tsx +33 -0
- package/examples/react_native/src/extra/custom_rfid.tsx +61 -0
- package/examples/react_native/src/main.css +148 -0
- package/examples/react_native/src/main.html +38 -0
- package/examples/react_native/src/main.tsx +172 -0
- package/ios/CVDDocumentReader.h +7 -0
- package/ios/CVDDocumentReader.m +39 -0
- package/ios/RGLWConfig.h +42 -0
- package/ios/RGLWConfig.m +1404 -0
- package/ios/RGLWJSONConstructor.h +185 -0
- package/ios/RGLWJSONConstructor.m +2379 -0
- package/ios/RGLWMain.h +36 -0
- package/ios/RGLWMain.m +620 -0
- package/ios/RNDocumentReader.h +8 -0
- package/ios/RNDocumentReader.m +49 -0
- package/package.json +36 -0
- package/plugin.xml +50 -0
- package/test/json.tsx +868 -0
- package/test/package-lock.json +584 -0
- package/test/package.json +9 -0
- package/test/test.tsx +93 -0
- package/test/utils.tsx +38 -0
- package/www/capacitor/config/InitConfig.js +52 -0
- package/www/capacitor/config/OnlineProcessingConfig.js +52 -0
- package/www/capacitor/config/RFIDConfig.js +31 -0
- package/www/capacitor/config/RecognizeConfig.js +126 -0
- package/www/capacitor/config/ScannerConfig.js +48 -0
- package/www/capacitor/index.js +502 -0
- package/www/capacitor/info/DocReaderException.js +64 -0
- package/www/capacitor/info/DocReaderScenario.js +89 -0
- package/www/capacitor/info/DocReaderVersion.js +32 -0
- package/www/capacitor/info/DocumentsDatabase.js +39 -0
- package/www/capacitor/info/License.js +30 -0
- package/www/capacitor/info/PrepareProgress.js +31 -0
- package/www/capacitor/info/RFIDException.js +26 -0
- package/www/capacitor/internal/bridge.js +98 -0
- package/www/capacitor/internal/cordova.js +17 -0
- package/www/capacitor/params/Functionality.js +355 -0
- package/www/capacitor/params/customization/Customization.js +633 -0
- package/www/capacitor/params/customization/CustomizationColors.js +87 -0
- package/www/capacitor/params/customization/CustomizationFonts.js +48 -0
- package/www/capacitor/params/customization/CustomizationImages.js +31 -0
- package/www/capacitor/params/customization/Font.js +36 -0
- package/www/capacitor/params/process_params/AuthenticityParams.js +150 -0
- package/www/capacitor/params/process_params/BackendProcessingConfig.js +34 -0
- package/www/capacitor/params/process_params/FaceApiParams.js +51 -0
- package/www/capacitor/params/process_params/FaceApiSearchParams.js +29 -0
- package/www/capacitor/params/process_params/GlaresCheckParams.js +25 -0
- package/www/capacitor/params/process_params/ImageQA.js +113 -0
- package/www/capacitor/params/process_params/LivenessParams.js +79 -0
- package/www/capacitor/params/process_params/ProcessParams.js +665 -0
- package/www/capacitor/params/process_params/RFIDParams.js +21 -0
- package/www/capacitor/params/rfid_scenario/DTCDataGroup.js +63 -0
- package/www/capacitor/params/rfid_scenario/EDLDataGroups.js +135 -0
- package/www/capacitor/params/rfid_scenario/EIDDataGroups.js +191 -0
- package/www/capacitor/params/rfid_scenario/EPassportDataGroups.js +151 -0
- package/www/capacitor/params/rfid_scenario/RFIDScenario.js +560 -0
- package/www/capacitor/results/DocumentType.js +302 -0
- package/www/capacitor/results/Position.js +88 -0
- package/www/capacitor/results/Results.js +343 -0
- package/www/capacitor/results/TransactionInfo.js +24 -0
- package/www/capacitor/results/authenticity/Authenticity.js +23 -0
- package/www/capacitor/results/authenticity/AuthenticityCheck.js +43 -0
- package/www/capacitor/results/authenticity/AuthenticityElement.js +37 -0
- package/www/capacitor/results/authenticity/AuthenticityResult.js +33 -0
- package/www/capacitor/results/authenticity/CheckDiagnose.js +125 -0
- package/www/capacitor/results/authenticity/SecurityFeatureType.js +59 -0
- package/www/capacitor/results/barcode/BarcodeField.js +34 -0
- package/www/capacitor/results/barcode/BarcodeResult.js +30 -0
- package/www/capacitor/results/barcode/BarcodeStatus.js +33 -0
- package/www/capacitor/results/barcode/BarcodeType.js +21 -0
- package/www/capacitor/results/barcode/PDF417Info.js +24 -0
- package/www/capacitor/results/image_quality/ImageQuality.js +40 -0
- package/www/capacitor/results/image_quality/ImageQualityCheckType.js +19 -0
- package/www/capacitor/results/image_quality/ImageQualityGroup.js +39 -0
- package/www/capacitor/results/rfid/AccessControlProcedureType.js +30 -0
- package/www/capacitor/results/rfid/Application.js +59 -0
- package/www/capacitor/results/rfid/Attribute.js +23 -0
- package/www/capacitor/results/rfid/Authority.js +36 -0
- package/www/capacitor/results/rfid/CardProperties.js +57 -0
- package/www/capacitor/results/rfid/CertificateChain.js +69 -0
- package/www/capacitor/results/rfid/CertificateData.js +21 -0
- package/www/capacitor/results/rfid/DataField.js +23 -0
- package/www/capacitor/results/rfid/Extension.js +21 -0
- package/www/capacitor/results/rfid/File.js +56 -0
- package/www/capacitor/results/rfid/FileData.js +27 -0
- package/www/capacitor/results/rfid/RFIDAccessControlProcedureType.js +10 -0
- package/www/capacitor/results/rfid/RFIDCertificateType.js +13 -0
- package/www/capacitor/results/rfid/RFIDDataFileType.js +98 -0
- package/www/capacitor/results/rfid/RFIDSessionData.js +92 -0
- package/www/capacitor/results/rfid/RFIDValidity.js +23 -0
- package/www/capacitor/results/rfid/RFIDValue.js +30 -0
- package/www/capacitor/results/rfid/SecurityObject.js +41 -0
- package/www/capacitor/results/rfid/SecurityObjectCertificates.js +20 -0
- package/www/capacitor/results/rfid/SignerInfo.js +74 -0
- package/www/capacitor/results/status/CheckResult.js +5 -0
- package/www/capacitor/results/status/OpticalStatus.js +44 -0
- package/www/capacitor/results/status/RFIDStatus.js +38 -0
- package/www/capacitor/results/status/ResultsStatus.js +40 -0
- package/www/capacitor/results/visible_digital_seals/BytesData.js +27 -0
- package/www/capacitor/results/visible_digital_seals/LDSParsingErrorCodes.js +134 -0
- package/www/capacitor/results/visible_digital_seals/LDSParsingNotificationCodes.js +232 -0
- package/www/capacitor/results/visible_digital_seals/VDSNCData.js +54 -0
- package/www/capacitor/results/visual_results/Comparison.js +27 -0
- package/www/capacitor/results/visual_results/FieldType.js +660 -0
- package/www/capacitor/results/visual_results/GraphicField.js +47 -0
- package/www/capacitor/results/visual_results/GraphicFieldType.js +25 -0
- package/www/capacitor/results/visual_results/GraphicResult.js +28 -0
- package/www/capacitor/results/visual_results/LCID.js +174 -0
- package/www/capacitor/results/visual_results/Lights.js +11 -0
- package/www/capacitor/results/visual_results/RFIDOrigin.js +27 -0
- package/www/capacitor/results/visual_results/Rect.js +27 -0
- package/www/capacitor/results/visual_results/Symbol.js +26 -0
- package/www/capacitor/results/visual_results/TextField.js +85 -0
- package/www/capacitor/results/visual_results/TextResult.js +52 -0
- package/www/capacitor/results/visual_results/TextSource.js +27 -0
- package/www/capacitor/results/visual_results/Validity.js +24 -0
- package/www/capacitor/results/visual_results/Value.js +52 -0
- package/www/capacitor/rfid/PAAttribute.js +24 -0
- package/www/capacitor/rfid/PAResourcesIssuer.js +35 -0
- package/www/capacitor/rfid/PKDCertificate.js +62 -0
- package/www/capacitor/rfid/RFIDErrorCodes.js +123 -0
- package/www/capacitor/rfid/RFIDNotification.js +68 -0
- package/www/capacitor/rfid/TAChallenge.js +33 -0
- package/www/capacitor/rfid/TccParams.js +34 -0
- package/www/cordova.js +11029 -0
- package/www/react-native/config/InitConfig.js +52 -0
- package/www/react-native/config/OnlineProcessingConfig.js +52 -0
- package/www/react-native/config/RFIDConfig.js +31 -0
- package/www/react-native/config/RecognizeConfig.js +126 -0
- package/www/react-native/config/ScannerConfig.js +48 -0
- package/www/react-native/index.js +502 -0
- package/www/react-native/info/DocReaderException.js +64 -0
- package/www/react-native/info/DocReaderScenario.js +89 -0
- package/www/react-native/info/DocReaderVersion.js +32 -0
- package/www/react-native/info/DocumentsDatabase.js +39 -0
- package/www/react-native/info/License.js +30 -0
- package/www/react-native/info/PrepareProgress.js +31 -0
- package/www/react-native/info/RFIDException.js +26 -0
- package/www/react-native/internal/bridge.js +98 -0
- package/www/react-native/params/Functionality.js +355 -0
- package/www/react-native/params/customization/Customization.js +633 -0
- package/www/react-native/params/customization/CustomizationColors.js +87 -0
- package/www/react-native/params/customization/CustomizationFonts.js +48 -0
- package/www/react-native/params/customization/CustomizationImages.js +31 -0
- package/www/react-native/params/customization/Font.js +36 -0
- package/www/react-native/params/process_params/AuthenticityParams.js +150 -0
- package/www/react-native/params/process_params/BackendProcessingConfig.js +34 -0
- package/www/react-native/params/process_params/FaceApiParams.js +51 -0
- package/www/react-native/params/process_params/FaceApiSearchParams.js +29 -0
- package/www/react-native/params/process_params/GlaresCheckParams.js +25 -0
- package/www/react-native/params/process_params/ImageQA.js +113 -0
- package/www/react-native/params/process_params/LivenessParams.js +79 -0
- package/www/react-native/params/process_params/ProcessParams.js +665 -0
- package/www/react-native/params/process_params/RFIDParams.js +21 -0
- package/www/react-native/params/rfid_scenario/DTCDataGroup.js +63 -0
- package/www/react-native/params/rfid_scenario/EDLDataGroups.js +135 -0
- package/www/react-native/params/rfid_scenario/EIDDataGroups.js +191 -0
- package/www/react-native/params/rfid_scenario/EPassportDataGroups.js +151 -0
- package/www/react-native/params/rfid_scenario/RFIDScenario.js +560 -0
- package/www/react-native/results/DocumentType.js +302 -0
- package/www/react-native/results/Position.js +88 -0
- package/www/react-native/results/Results.js +343 -0
- package/www/react-native/results/TransactionInfo.js +24 -0
- package/www/react-native/results/authenticity/Authenticity.js +23 -0
- package/www/react-native/results/authenticity/AuthenticityCheck.js +43 -0
- package/www/react-native/results/authenticity/AuthenticityElement.js +37 -0
- package/www/react-native/results/authenticity/AuthenticityResult.js +33 -0
- package/www/react-native/results/authenticity/CheckDiagnose.js +125 -0
- package/www/react-native/results/authenticity/SecurityFeatureType.js +59 -0
- package/www/react-native/results/barcode/BarcodeField.js +34 -0
- package/www/react-native/results/barcode/BarcodeResult.js +30 -0
- package/www/react-native/results/barcode/BarcodeStatus.js +33 -0
- package/www/react-native/results/barcode/BarcodeType.js +21 -0
- package/www/react-native/results/barcode/PDF417Info.js +24 -0
- package/www/react-native/results/image_quality/ImageQuality.js +40 -0
- package/www/react-native/results/image_quality/ImageQualityCheckType.js +19 -0
- package/www/react-native/results/image_quality/ImageQualityGroup.js +39 -0
- package/www/react-native/results/rfid/AccessControlProcedureType.js +30 -0
- package/www/react-native/results/rfid/Application.js +59 -0
- package/www/react-native/results/rfid/Attribute.js +23 -0
- package/www/react-native/results/rfid/Authority.js +36 -0
- package/www/react-native/results/rfid/CardProperties.js +57 -0
- package/www/react-native/results/rfid/CertificateChain.js +69 -0
- package/www/react-native/results/rfid/CertificateData.js +21 -0
- package/www/react-native/results/rfid/DataField.js +23 -0
- package/www/react-native/results/rfid/Extension.js +21 -0
- package/www/react-native/results/rfid/File.js +56 -0
- package/www/react-native/results/rfid/FileData.js +27 -0
- package/www/react-native/results/rfid/RFIDAccessControlProcedureType.js +10 -0
- package/www/react-native/results/rfid/RFIDCertificateType.js +13 -0
- package/www/react-native/results/rfid/RFIDDataFileType.js +98 -0
- package/www/react-native/results/rfid/RFIDSessionData.js +92 -0
- package/www/react-native/results/rfid/RFIDValidity.js +23 -0
- package/www/react-native/results/rfid/RFIDValue.js +30 -0
- package/www/react-native/results/rfid/SecurityObject.js +41 -0
- package/www/react-native/results/rfid/SecurityObjectCertificates.js +20 -0
- package/www/react-native/results/rfid/SignerInfo.js +74 -0
- package/www/react-native/results/status/CheckResult.js +5 -0
- package/www/react-native/results/status/OpticalStatus.js +44 -0
- package/www/react-native/results/status/RFIDStatus.js +38 -0
- package/www/react-native/results/status/ResultsStatus.js +40 -0
- package/www/react-native/results/visible_digital_seals/BytesData.js +27 -0
- package/www/react-native/results/visible_digital_seals/LDSParsingErrorCodes.js +134 -0
- package/www/react-native/results/visible_digital_seals/LDSParsingNotificationCodes.js +232 -0
- package/www/react-native/results/visible_digital_seals/VDSNCData.js +54 -0
- package/www/react-native/results/visual_results/Comparison.js +27 -0
- package/www/react-native/results/visual_results/FieldType.js +660 -0
- package/www/react-native/results/visual_results/GraphicField.js +47 -0
- package/www/react-native/results/visual_results/GraphicFieldType.js +25 -0
- package/www/react-native/results/visual_results/GraphicResult.js +28 -0
- package/www/react-native/results/visual_results/LCID.js +174 -0
- package/www/react-native/results/visual_results/Lights.js +11 -0
- package/www/react-native/results/visual_results/RFIDOrigin.js +27 -0
- package/www/react-native/results/visual_results/Rect.js +27 -0
- package/www/react-native/results/visual_results/Symbol.js +26 -0
- package/www/react-native/results/visual_results/TextField.js +85 -0
- package/www/react-native/results/visual_results/TextResult.js +52 -0
- package/www/react-native/results/visual_results/TextSource.js +27 -0
- package/www/react-native/results/visual_results/Validity.js +24 -0
- package/www/react-native/results/visual_results/Value.js +52 -0
- package/www/react-native/rfid/PAAttribute.js +24 -0
- package/www/react-native/rfid/PAResourcesIssuer.js +35 -0
- package/www/react-native/rfid/PKDCertificate.js +62 -0
- package/www/react-native/rfid/RFIDErrorCodes.js +123 -0
- package/www/react-native/rfid/RFIDNotification.js +68 -0
- package/www/react-native/rfid/TAChallenge.js +33 -0
- package/www/react-native/rfid/TccParams.js +34 -0
- package/www/types/config/InitConfig.d.ts +63 -0
- package/www/types/config/OnlineProcessingConfig.d.ts +22 -0
- package/www/types/config/RFIDConfig.d.ts +131 -0
- package/www/types/config/RecognizeConfig.d.ts +119 -0
- package/www/types/config/ScannerConfig.d.ts +54 -0
- package/www/types/index.d.ts +427 -0
- package/www/types/info/DocReaderException.d.ts +79 -0
- package/www/types/info/DocReaderScenario.d.ts +90 -0
- package/www/types/info/DocReaderVersion.d.ts +28 -0
- package/www/types/info/DocumentsDatabase.d.ts +42 -0
- package/www/types/info/License.d.ts +23 -0
- package/www/types/info/PrepareProgress.d.ts +15 -0
- package/www/types/info/RFIDException.d.ts +8 -0
- package/www/types/params/Functionality.d.ts +320 -0
- package/www/types/params/customization/Customization.d.ts +563 -0
- package/www/types/params/customization/CustomizationColors.d.ts +16 -0
- package/www/types/params/customization/CustomizationFonts.d.ts +13 -0
- package/www/types/params/customization/CustomizationImages.d.ts +12 -0
- package/www/types/params/customization/Font.d.ts +36 -0
- package/www/types/params/process_params/AuthenticityParams.d.ts +30 -0
- package/www/types/params/process_params/BackendProcessingConfig.d.ts +25 -0
- package/www/types/params/process_params/FaceApiParams.d.ts +68 -0
- package/www/types/params/process_params/FaceApiSearchParams.d.ts +35 -0
- package/www/types/params/process_params/GlaresCheckParams.d.ts +26 -0
- package/www/types/params/process_params/ImageQA.d.ts +79 -0
- package/www/types/params/process_params/LivenessParams.d.ts +20 -0
- package/www/types/params/process_params/ProcessParams.d.ts +473 -0
- package/www/types/params/process_params/RFIDParams.d.ts +19 -0
- package/www/types/params/rfid_scenario/DTCDataGroup.d.ts +13 -0
- package/www/types/params/rfid_scenario/EDLDataGroups.d.ts +22 -0
- package/www/types/params/rfid_scenario/EIDDataGroups.d.ts +29 -0
- package/www/types/params/rfid_scenario/EPassportDataGroups.d.ts +24 -0
- package/www/types/params/rfid_scenario/RFIDScenario.d.ts +167 -0
- package/www/types/results/DocumentType.d.ts +525 -0
- package/www/types/results/Position.d.ts +50 -0
- package/www/types/results/Results.d.ts +283 -0
- package/www/types/results/TransactionInfo.d.ts +9 -0
- package/www/types/results/authenticity/Authenticity.d.ts +67 -0
- package/www/types/results/authenticity/AuthenticityCheck.d.ts +23 -0
- package/www/types/results/authenticity/AuthenticityElement.d.ts +26 -0
- package/www/types/results/authenticity/AuthenticityResult.d.ts +16 -0
- package/www/types/results/authenticity/CheckDiagnose.d.ts +231 -0
- package/www/types/results/authenticity/SecurityFeatureType.d.ts +100 -0
- package/www/types/results/barcode/BarcodeField.d.ts +37 -0
- package/www/types/results/barcode/BarcodeResult.d.ts +14 -0
- package/www/types/results/barcode/BarcodeStatus.d.ts +66 -0
- package/www/types/results/barcode/BarcodeType.d.ts +45 -0
- package/www/types/results/barcode/PDF417Info.d.ts +15 -0
- package/www/types/results/image_quality/ImageQuality.d.ts +18 -0
- package/www/types/results/image_quality/ImageQualityCheckType.d.ts +30 -0
- package/www/types/results/image_quality/ImageQualityGroup.d.ts +17 -0
- package/www/types/results/rfid/AccessControlProcedureType.d.ts +21 -0
- package/www/types/results/rfid/Application.d.ts +44 -0
- package/www/types/results/rfid/Attribute.d.ts +9 -0
- package/www/types/results/rfid/Authority.d.ts +11 -0
- package/www/types/results/rfid/CardProperties.d.ts +48 -0
- package/www/types/results/rfid/CertificateChain.d.ts +28 -0
- package/www/types/results/rfid/CertificateData.d.ts +7 -0
- package/www/types/results/rfid/DataField.d.ts +9 -0
- package/www/types/results/rfid/Extension.d.ts +7 -0
- package/www/types/results/rfid/File.d.ts +22 -0
- package/www/types/results/rfid/FileData.d.ts +9 -0
- package/www/types/results/rfid/RFIDAccessControlProcedureType.d.ts +18 -0
- package/www/types/results/rfid/RFIDCertificateType.d.ts +13 -0
- package/www/types/results/rfid/RFIDDataFileType.d.ts +101 -0
- package/www/types/results/rfid/RFIDSessionData.d.ts +48 -0
- package/www/types/results/rfid/RFIDValidity.d.ts +9 -0
- package/www/types/results/rfid/RFIDValue.d.ts +10 -0
- package/www/types/results/rfid/SecurityObject.d.ts +28 -0
- package/www/types/results/rfid/SecurityObjectCertificates.d.ts +8 -0
- package/www/types/results/rfid/SignerInfo.d.ts +41 -0
- package/www/types/results/status/CheckResult.d.ts +8 -0
- package/www/types/results/status/OpticalStatus.d.ts +29 -0
- package/www/types/results/status/RFIDStatus.d.ts +22 -0
- package/www/types/results/status/ResultsStatus.d.ts +24 -0
- package/www/types/results/visible_digital_seals/BytesData.d.ts +9 -0
- package/www/types/results/visible_digital_seals/LDSParsingErrorCodes.d.ts +132 -0
- package/www/types/results/visible_digital_seals/LDSParsingNotificationCodes.d.ts +230 -0
- package/www/types/results/visible_digital_seals/VDSNCData.d.ts +35 -0
- package/www/types/results/visual_results/Comparison.d.ts +15 -0
- package/www/types/results/visual_results/FieldType.d.ts +1314 -0
- package/www/types/results/visual_results/GraphicField.d.ts +29 -0
- package/www/types/results/visual_results/GraphicFieldType.d.ts +52 -0
- package/www/types/results/visual_results/GraphicResult.d.ts +10 -0
- package/www/types/results/visual_results/LCID.d.ts +173 -0
- package/www/types/results/visual_results/Lights.d.ts +23 -0
- package/www/types/results/visual_results/RFIDOrigin.d.ts +10 -0
- package/www/types/results/visual_results/Rect.d.ts +9 -0
- package/www/types/results/visual_results/Symbol.d.ts +14 -0
- package/www/types/results/visual_results/TextField.d.ts +40 -0
- package/www/types/results/visual_results/TextResult.d.ts +23 -0
- package/www/types/results/visual_results/TextSource.d.ts +15 -0
- package/www/types/results/visual_results/Validity.d.ts +13 -0
- package/www/types/results/visual_results/Value.d.ts +27 -0
- package/www/types/rfid/PAAttribute.d.ts +4 -0
- package/www/types/rfid/PAResourcesIssuer.d.ts +7 -0
- package/www/types/rfid/PKDCertificate.d.ts +34 -0
- package/www/types/rfid/RFIDErrorCodes.d.ts +121 -0
- package/www/types/rfid/RFIDNotification.d.ts +153 -0
- package/www/types/rfid/TAChallenge.d.ts +7 -0
- package/www/types/rfid/TccParams.d.ts +25 -0
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { exec } from '../internal/bridge';
|
|
2
|
+
import { AuthenticityResult } from "./authenticity/AuthenticityResult";
|
|
3
|
+
import { BarcodeResult } from "./barcode/BarcodeResult";
|
|
4
|
+
import { ImageQualityGroup } from "./image_quality/ImageQualityGroup";
|
|
5
|
+
import { RFIDSessionData } from "./rfid/RFIDSessionData";
|
|
6
|
+
import { ResultsStatus } from "./status/ResultsStatus";
|
|
7
|
+
import { FieldType } from "./visual_results/FieldType";
|
|
8
|
+
import { GraphicFieldType } from "./visual_results/GraphicFieldType";
|
|
9
|
+
import { LCID } from "./visual_results/LCID";
|
|
10
|
+
import { Lights } from "./visual_results/Lights";
|
|
11
|
+
import { GraphicField } from "./visual_results/GraphicField";
|
|
12
|
+
import { GraphicResult } from "./visual_results/GraphicResult";
|
|
13
|
+
import { TextResult } from "./visual_results/TextResult";
|
|
14
|
+
import { TextField } from "./visual_results/TextField";
|
|
15
|
+
import { VDSNCData } from "./visible_digital_seals/VDSNCData";
|
|
16
|
+
import { Position } from "./Position";
|
|
17
|
+
import { DocumentType } from "./DocumentType";
|
|
18
|
+
import { TransactionInfo } from "./TransactionInfo";
|
|
19
|
+
|
|
20
|
+
export class Results {
|
|
21
|
+
documentType
|
|
22
|
+
textResult
|
|
23
|
+
graphicResult
|
|
24
|
+
documentPosition
|
|
25
|
+
barcodePosition
|
|
26
|
+
mrzPosition
|
|
27
|
+
imageQuality
|
|
28
|
+
status
|
|
29
|
+
authenticityResult
|
|
30
|
+
rfidSessionData
|
|
31
|
+
chipPage
|
|
32
|
+
barcodeResult
|
|
33
|
+
vdsncData
|
|
34
|
+
dtcData
|
|
35
|
+
processingFinishedStatus
|
|
36
|
+
morePagesAvailable
|
|
37
|
+
elapsedTime
|
|
38
|
+
elapsedTimeRFID
|
|
39
|
+
rawResult
|
|
40
|
+
transactionInfo
|
|
41
|
+
|
|
42
|
+
async textFieldValueByType(fieldType) {
|
|
43
|
+
return await exec("textFieldValueByType", [
|
|
44
|
+
this.rawResult,
|
|
45
|
+
fieldType,
|
|
46
|
+
]);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
async textFieldValueByTypeLcid(fieldType, lcid) {
|
|
50
|
+
return await exec("textFieldValueByTypeLcid", [
|
|
51
|
+
this.rawResult,
|
|
52
|
+
fieldType,
|
|
53
|
+
lcid,
|
|
54
|
+
]);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async textFieldValueByTypeSource(fieldType, source) {
|
|
58
|
+
return await exec("textFieldValueByTypeSource", [
|
|
59
|
+
this.rawResult,
|
|
60
|
+
fieldType,
|
|
61
|
+
source,
|
|
62
|
+
]);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
async textFieldValueByTypeLcidSource(fieldType, lcid, source) {
|
|
66
|
+
return await exec("textFieldValueByTypeLcidSource", [
|
|
67
|
+
this.rawResult,
|
|
68
|
+
fieldType,
|
|
69
|
+
lcid,
|
|
70
|
+
source,
|
|
71
|
+
]);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
async textFieldValueByTypeSourceOriginal(fieldType, source, original) {
|
|
75
|
+
return await exec("textFieldValueByTypeSourceOriginal", [
|
|
76
|
+
this.rawResult,
|
|
77
|
+
fieldType,
|
|
78
|
+
source,
|
|
79
|
+
original,
|
|
80
|
+
]);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
async textFieldValueByTypeLcidSourceOriginal(fieldType, lcid, source, original) {
|
|
84
|
+
return await exec("textFieldValueByTypeLcidSourceOriginal", [
|
|
85
|
+
this.rawResult,
|
|
86
|
+
fieldType,
|
|
87
|
+
lcid,
|
|
88
|
+
source,
|
|
89
|
+
original,
|
|
90
|
+
]);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
async textFieldByType(fieldType) {
|
|
94
|
+
const result = await exec("textFieldByType", [
|
|
95
|
+
this.rawResult,
|
|
96
|
+
fieldType,
|
|
97
|
+
]);
|
|
98
|
+
if (result == null) return null;
|
|
99
|
+
return TextField.fromJson(JSON.parse(result));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
async textFieldByTypeLcid(fieldType, lcid) {
|
|
103
|
+
const result = await exec("textFieldByTypeLcid", [
|
|
104
|
+
this.rawResult,
|
|
105
|
+
fieldType,
|
|
106
|
+
lcid,
|
|
107
|
+
]);
|
|
108
|
+
if (result == null) return null;
|
|
109
|
+
return TextField.fromJson(JSON.parse(result));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
async graphicFieldByTypeSource(fieldType, source) {
|
|
113
|
+
const result = await exec("graphicFieldByTypeSource", [
|
|
114
|
+
this.rawResult,
|
|
115
|
+
fieldType,
|
|
116
|
+
source,
|
|
117
|
+
]);
|
|
118
|
+
if (result == null) return null;
|
|
119
|
+
return GraphicField.fromJson(JSON.parse(result));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
async graphicFieldByTypeSourcePageIndex(fieldType, source, pageIndex) {
|
|
123
|
+
const result = await exec("graphicFieldByTypeSourcePageIndex", [
|
|
124
|
+
this.rawResult,
|
|
125
|
+
fieldType,
|
|
126
|
+
source,
|
|
127
|
+
pageIndex,
|
|
128
|
+
]);
|
|
129
|
+
if (result == null) return null;
|
|
130
|
+
return GraphicField.fromJson(JSON.parse(result));
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
async graphicFieldByTypeSourcePageIndexLight(fieldType, source, pageIndex, light) {
|
|
134
|
+
const result = await exec("graphicFieldByTypeSourcePageIndexLight", [
|
|
135
|
+
this.rawResult,
|
|
136
|
+
fieldType,
|
|
137
|
+
source,
|
|
138
|
+
pageIndex,
|
|
139
|
+
light,
|
|
140
|
+
]);
|
|
141
|
+
if (result == null) return null;
|
|
142
|
+
return GraphicField.fromJson(JSON.parse(result));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
async graphicFieldImageByType(fieldType) {
|
|
146
|
+
const result = await exec("graphicFieldImageByType", [
|
|
147
|
+
this.rawResult,
|
|
148
|
+
fieldType,
|
|
149
|
+
]);
|
|
150
|
+
return result;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
async graphicFieldImageByTypeSource(fieldType, source) {
|
|
154
|
+
const result = await exec("graphicFieldImageByTypeSource", [
|
|
155
|
+
this.rawResult,
|
|
156
|
+
fieldType,
|
|
157
|
+
source,
|
|
158
|
+
]);
|
|
159
|
+
return result;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
async graphicFieldImageByTypeSourcePageIndex(fieldType, source, pageIndex) {
|
|
163
|
+
const result = await exec("graphicFieldImageByTypeSourcePageIndex", [
|
|
164
|
+
this.rawResult,
|
|
165
|
+
fieldType,
|
|
166
|
+
source,
|
|
167
|
+
pageIndex,
|
|
168
|
+
]);
|
|
169
|
+
return result;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
async graphicFieldImageByTypeSourcePageIndexLight(fieldType, source, pageIndex, light) {
|
|
173
|
+
const result = await exec("graphicFieldImageByTypeSourcePageIndexLight", [
|
|
174
|
+
this.rawResult,
|
|
175
|
+
fieldType,
|
|
176
|
+
source,
|
|
177
|
+
pageIndex,
|
|
178
|
+
light,
|
|
179
|
+
]);
|
|
180
|
+
return result;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
async containers(resultType) {
|
|
184
|
+
return await exec("containers", [this.rawResult, resultType]);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
async encryptedContainers() {
|
|
188
|
+
return await exec("encryptedContainers", [this.rawResult]);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
static fromJson(jsonObject) {
|
|
192
|
+
if (jsonObject == null) return null;
|
|
193
|
+
|
|
194
|
+
const result = new Results();
|
|
195
|
+
result.chipPage = jsonObject["chipPage"];
|
|
196
|
+
result.processingFinishedStatus = jsonObject["processingFinishedStatus"];
|
|
197
|
+
result.elapsedTime = jsonObject["elapsedTime"];
|
|
198
|
+
result.elapsedTimeRFID = jsonObject["elapsedTimeRFID"];
|
|
199
|
+
result.morePagesAvailable = jsonObject["morePagesAvailable"];
|
|
200
|
+
result.graphicResult = GraphicResult.fromJson(jsonObject["graphicResult"]);
|
|
201
|
+
result.textResult = TextResult.fromJson(jsonObject["textResult"]);
|
|
202
|
+
result.rawResult = jsonObject["rawResult"];
|
|
203
|
+
result.rfidSessionData = RFIDSessionData.fromJson(jsonObject["rfidSessionData"]);
|
|
204
|
+
result.authenticityResult = AuthenticityResult.fromJson(jsonObject["authenticityResult"]);
|
|
205
|
+
result.barcodeResult = BarcodeResult.fromJson(jsonObject["barcodeResult"]);
|
|
206
|
+
result.status = ResultsStatus.fromJson(jsonObject["status"]);
|
|
207
|
+
result.vdsncData = VDSNCData.fromJson(jsonObject["vdsncData"]);
|
|
208
|
+
result.dtcData = jsonObject["dtcData"];
|
|
209
|
+
result.transactionInfo = TransactionInfo.fromJson(jsonObject["transactionInfo"]);
|
|
210
|
+
|
|
211
|
+
if (jsonObject["documentPosition"] != null) {
|
|
212
|
+
result.documentPosition = [];
|
|
213
|
+
for (const item of jsonObject["documentPosition"]) {
|
|
214
|
+
const position = Position.fromJson(item);
|
|
215
|
+
if (position != null) {
|
|
216
|
+
result.documentPosition.push(position);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (jsonObject["barcodePosition"] != null) {
|
|
222
|
+
result.barcodePosition = [];
|
|
223
|
+
for (const item of jsonObject["barcodePosition"]) {
|
|
224
|
+
const position = Position.fromJson(item);
|
|
225
|
+
if (position != null) {
|
|
226
|
+
result.barcodePosition.push(position);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (jsonObject["mrzPosition"] != null) {
|
|
232
|
+
result.mrzPosition = [];
|
|
233
|
+
for (const item of jsonObject["mrzPosition"]) {
|
|
234
|
+
const position = Position.fromJson(item);
|
|
235
|
+
if (position != null) {
|
|
236
|
+
result.mrzPosition.push(position);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
if (jsonObject["imageQuality"] != null) {
|
|
242
|
+
result.imageQuality = [];
|
|
243
|
+
for (const item of jsonObject["imageQuality"]) {
|
|
244
|
+
const imageQualityGroup = ImageQualityGroup.fromJson(item);
|
|
245
|
+
if (imageQualityGroup != null) {
|
|
246
|
+
result.imageQuality.push(imageQualityGroup);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
if (jsonObject["documentType"] != null) {
|
|
252
|
+
result.documentType = [];
|
|
253
|
+
for (const item of jsonObject["documentType"]) {
|
|
254
|
+
const documentType = DocumentType.fromJson(item);
|
|
255
|
+
if (documentType != null) {
|
|
256
|
+
result.documentType.push(documentType);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
return result;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
toJson() {
|
|
265
|
+
return {
|
|
266
|
+
"documentType": this.documentType?.map(e => e.toJson()),
|
|
267
|
+
"documentPosition": this.documentPosition?.map(e => e.toJson()),
|
|
268
|
+
"barcodePosition": this.barcodePosition?.map(e => e.toJson()),
|
|
269
|
+
"mrzPosition": this.mrzPosition?.map(e => e.toJson()),
|
|
270
|
+
"imageQuality": this.imageQuality?.map(e => e.toJson()),
|
|
271
|
+
"textResult": this.textResult?.toJson(),
|
|
272
|
+
"graphicResult": this.graphicResult?.toJson(),
|
|
273
|
+
"status": this.status?.toJson(),
|
|
274
|
+
"authenticityResult": this.authenticityResult?.toJson(),
|
|
275
|
+
"rfidSessionData": this.rfidSessionData?.toJson(),
|
|
276
|
+
"barcodeResult": this.barcodeResult?.toJson(),
|
|
277
|
+
"vdsncData": this.vdsncData?.toJson(),
|
|
278
|
+
"dtcData": this.dtcData,
|
|
279
|
+
"chipPage": this.chipPage,
|
|
280
|
+
"processingFinishedStatus": this.processingFinishedStatus,
|
|
281
|
+
"morePagesAvailable": this.morePagesAvailable,
|
|
282
|
+
"elapsedTime": this.elapsedTime,
|
|
283
|
+
"elapsedTimeRFID": this.elapsedTimeRFID,
|
|
284
|
+
"rawResult": this.rawResult,
|
|
285
|
+
"transactionInfo": this.transactionInfo?.toJson(),
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export const ProcessingFinishedStatus = {
|
|
291
|
+
NOT_READY: 0,
|
|
292
|
+
READY: 1,
|
|
293
|
+
TIMEOUT: 2
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
export const ResultType = {
|
|
297
|
+
NONE: -1,
|
|
298
|
+
EMPTY: 0,
|
|
299
|
+
RAW_IMAGE: 1,
|
|
300
|
+
FILE_IMAGE: 2,
|
|
301
|
+
MRZ_OCR_EXTENDED: 3,
|
|
302
|
+
BARCODES: 5,
|
|
303
|
+
GRAPHICS: 6,
|
|
304
|
+
MRZ_TEST_QUALITY: 7,
|
|
305
|
+
DOCUMENT_TYPES_CANDIDATES: 8,
|
|
306
|
+
CHOSEN_DOCUMENT_TYPE_CANDIDATE: 9,
|
|
307
|
+
DOCUMENTS_INFO_LIST: 10,
|
|
308
|
+
OCR_LEXICAL_ANALYZE: 15,
|
|
309
|
+
RAW_UNCROPPED_IMAGE: 16,
|
|
310
|
+
VISUAL_OCR_EXTENDED: 17,
|
|
311
|
+
BAR_CODES_TEXT_DATA: 18,
|
|
312
|
+
BAR_CODES_IMAGE_DATA: 19,
|
|
313
|
+
AUTHENTICITY: 20,
|
|
314
|
+
EXPERT_ANALYZE: 21,
|
|
315
|
+
OCR_LEXICAL_ANALYZE_EX: 22,
|
|
316
|
+
EOS_IMAGE: 23,
|
|
317
|
+
BAYER_IMAGE: 24,
|
|
318
|
+
MAGNETIC_STRIPE: 25,
|
|
319
|
+
MAGNETIC_STRIPE_TEXT_DATA: 26,
|
|
320
|
+
FIELD_FILE_IMAGE: 27,
|
|
321
|
+
DATABASE_CHECK: 28,
|
|
322
|
+
FINGERPRINT_TEMPLATE_ISO: 29,
|
|
323
|
+
INPUT_IMAGE_QUALITY: 30,
|
|
324
|
+
LIVE_PORTRAIT: 32,
|
|
325
|
+
STATUS: 33,
|
|
326
|
+
PORTRAIT_COMPARISON: 34,
|
|
327
|
+
EXT_PORTRAIT: 35,
|
|
328
|
+
TEXT: 36,
|
|
329
|
+
IMAGES: 37,
|
|
330
|
+
INTERNAL_RFID_SESSION: 48,
|
|
331
|
+
INTERNAL_ENCRYPTED_RCL: 49,
|
|
332
|
+
INTERNAL_LICENSE: 50,
|
|
333
|
+
MRZ_POSITION: 61,
|
|
334
|
+
BARCODE_POSITION: 62,
|
|
335
|
+
DOCUMENT_POSITION: 85,
|
|
336
|
+
CUSTOM: 100,
|
|
337
|
+
RFID_RAW_DATA: 101,
|
|
338
|
+
RFID_TEXT_DATA: 102,
|
|
339
|
+
RFID_IMAGE_DATA: 103,
|
|
340
|
+
RFID_BINARY_DATA: 104,
|
|
341
|
+
RFID_ORIGINAL_GRAPHICS: 105,
|
|
342
|
+
RFID_DTC_VC: 109
|
|
343
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class TransactionInfo {
|
|
2
|
+
transactionId
|
|
3
|
+
tag
|
|
4
|
+
sessionLogFolder
|
|
5
|
+
|
|
6
|
+
static fromJson(jsonObject) {
|
|
7
|
+
if (jsonObject == null) return null
|
|
8
|
+
var result = new TransactionInfo()
|
|
9
|
+
|
|
10
|
+
result.transactionId = jsonObject["transactionId"]
|
|
11
|
+
result.tag = jsonObject["tag"]
|
|
12
|
+
result.sessionLogFolder = jsonObject["sessionLogFolder"]
|
|
13
|
+
|
|
14
|
+
return result
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
toJson() {
|
|
18
|
+
return {
|
|
19
|
+
"transactionId": this.transactionId,
|
|
20
|
+
"tag": this.tag,
|
|
21
|
+
"sessionLogFolder": this.sessionLogFolder,
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const Authenticity = {
|
|
2
|
+
NONE: 0,
|
|
3
|
+
UV_LUMINESCENCE: 1,
|
|
4
|
+
IR_B900: 2,
|
|
5
|
+
IMAGE_PATTERN: 4,
|
|
6
|
+
AXIAL_PROTECTION: 8,
|
|
7
|
+
UV_FIBERS: 16,
|
|
8
|
+
IR_VISIBILITY: 32,
|
|
9
|
+
OCR_SECURITY_TEXT: 64,
|
|
10
|
+
IPI: 128,
|
|
11
|
+
PHOTO_EMBED_TYPE: 512,
|
|
12
|
+
OVI: 1024,
|
|
13
|
+
HOLOGRAMS: 4096,
|
|
14
|
+
PHOTO_AREA: 8192,
|
|
15
|
+
PORTRAIT_COMPARISON: 32768,
|
|
16
|
+
BARCODE_FORMAT_CHECK: 65536,
|
|
17
|
+
KINEGRAM: 131072,
|
|
18
|
+
HOLOGRAMS_DETECTION: 524288,
|
|
19
|
+
LIVENESS: 2097152,
|
|
20
|
+
OCR: 4194304,
|
|
21
|
+
MRZ: 8388608,
|
|
22
|
+
STATUS_ONLY: 2147483648
|
|
23
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Authenticity } from "./Authenticity";
|
|
2
|
+
import { AuthenticityElement } from "./AuthenticityElement";
|
|
3
|
+
import { CheckResult } from "../status/CheckResult";
|
|
4
|
+
|
|
5
|
+
export class AuthenticityCheck {
|
|
6
|
+
type
|
|
7
|
+
status
|
|
8
|
+
pageIndex
|
|
9
|
+
elements
|
|
10
|
+
typeName
|
|
11
|
+
|
|
12
|
+
constructor() {
|
|
13
|
+
this.elements = []
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
static fromJson(jsonObject) {
|
|
17
|
+
if (jsonObject == null) return null
|
|
18
|
+
const result = new AuthenticityCheck()
|
|
19
|
+
|
|
20
|
+
result.type = jsonObject["type"]
|
|
21
|
+
result.status = jsonObject["status"]
|
|
22
|
+
result.typeName = jsonObject["typeName"]
|
|
23
|
+
result.pageIndex = jsonObject["pageIndex"]
|
|
24
|
+
for (const item of jsonObject["elements"]) {
|
|
25
|
+
const element = AuthenticityElement.fromJson(item)
|
|
26
|
+
if (element != null) {
|
|
27
|
+
result.elements.push(element)
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return result
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
toJson() {
|
|
35
|
+
return {
|
|
36
|
+
"type": this.type,
|
|
37
|
+
"status": this.status,
|
|
38
|
+
"pageIndex": this.pageIndex,
|
|
39
|
+
"typeName": this.typeName,
|
|
40
|
+
"elements": this.elements?.map(e => e.toJson()),
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { SecurityFeatureType } from "./SecurityFeatureType";
|
|
2
|
+
import { CheckDiagnose } from "./CheckDiagnose";
|
|
3
|
+
import { CheckResult } from "../status/CheckResult";
|
|
4
|
+
|
|
5
|
+
export class AuthenticityElement {
|
|
6
|
+
status
|
|
7
|
+
elementType
|
|
8
|
+
elementDiagnose
|
|
9
|
+
elementTypeName
|
|
10
|
+
elementDiagnoseName
|
|
11
|
+
|
|
12
|
+
constructor() {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
static fromJson(jsonObject) {
|
|
16
|
+
if (jsonObject == null) return null
|
|
17
|
+
const result = new AuthenticityElement()
|
|
18
|
+
|
|
19
|
+
result.status = jsonObject["status"]
|
|
20
|
+
result.elementType = jsonObject["elementType"]
|
|
21
|
+
result.elementDiagnose = jsonObject["elementDiagnose"]
|
|
22
|
+
result.elementTypeName = jsonObject["elementTypeName"]
|
|
23
|
+
result.elementDiagnoseName = jsonObject["elementDiagnoseName"]
|
|
24
|
+
|
|
25
|
+
return result
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
toJson() {
|
|
29
|
+
return {
|
|
30
|
+
"status": this.status,
|
|
31
|
+
"elementType": this.elementType,
|
|
32
|
+
"elementDiagnose": this.elementDiagnose,
|
|
33
|
+
"elementTypeName": this.elementTypeName,
|
|
34
|
+
"elementDiagnoseName": this.elementDiagnoseName,
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AuthenticityCheck } from "./AuthenticityCheck";
|
|
2
|
+
import { CheckResult } from "../status/CheckResult";
|
|
3
|
+
|
|
4
|
+
export class AuthenticityResult {
|
|
5
|
+
status
|
|
6
|
+
checks
|
|
7
|
+
|
|
8
|
+
constructor() {
|
|
9
|
+
this.checks = []
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
static fromJson(jsonObject) {
|
|
13
|
+
if (jsonObject == null) return null
|
|
14
|
+
const result = new AuthenticityResult()
|
|
15
|
+
|
|
16
|
+
result.status = jsonObject["status"]
|
|
17
|
+
for (const item of jsonObject["checks"]) {
|
|
18
|
+
const check = AuthenticityCheck.fromJson(item)
|
|
19
|
+
if (check != null) {
|
|
20
|
+
result.checks.push(check)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return result
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
toJson() {
|
|
28
|
+
return {
|
|
29
|
+
"status": this.status,
|
|
30
|
+
"checks": this.checks?.map(e => e.toJson()),
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
export const CheckDiagnose = {
|
|
2
|
+
PASS: 1,
|
|
3
|
+
INVALID_INPUT_DATA: 2,
|
|
4
|
+
INTERNAL_ERROR: 3,
|
|
5
|
+
EXCEPTION_IN_MODULE: 4,
|
|
6
|
+
UNCERTAIN_VERIFICATION: 5,
|
|
7
|
+
NECESSARY_IMAGE_NOT_FOUND: 7,
|
|
8
|
+
PHOTO_SIDES_NOT_FOUND: 8,
|
|
9
|
+
INVALID_CHECKSUM: 10,
|
|
10
|
+
SYNTAX_ERROR: 11,
|
|
11
|
+
LOGIC_ERROR: 12,
|
|
12
|
+
SOURCES_COMPARISON_ERROR: 13,
|
|
13
|
+
FIELDS_COMPARISON_LOGIC_ERROR: 14,
|
|
14
|
+
INVALID_FIELD_FORMAT: 15,
|
|
15
|
+
TRUE_LUMINISCENCE_ERROR: 20,
|
|
16
|
+
FALSE_LUMINISCENCE_ERROR: 21,
|
|
17
|
+
FIXED_PATTERN_ERROR: 22,
|
|
18
|
+
LOW_CONTRAST_IN_IR_LIGHT: 23,
|
|
19
|
+
INCORRECT_BACKGROUND_LIGHT: 24,
|
|
20
|
+
BACKGROUND_COMPARISON_ERROR: 25,
|
|
21
|
+
INCORRECT_TEXT_COLOR: 26,
|
|
22
|
+
PHOTO_FALSE_LUMINISCENCE: 27,
|
|
23
|
+
TOO_MUCH_SHIFT: 28,
|
|
24
|
+
CONTACT_CHIP_TYPE_MISMATCH: 29,
|
|
25
|
+
FIBERS_NOT_FOUND: 30,
|
|
26
|
+
TOO_MANY_OBJECTS: 31,
|
|
27
|
+
SPECKS_IN_UV: 33,
|
|
28
|
+
TOO_LOW_RESOLUTION: 34,
|
|
29
|
+
INVISIBLE_ELEMENT_PRESENT: 40,
|
|
30
|
+
VISIBLE_ELEMENT_ABSENT: 41,
|
|
31
|
+
ELEMENT_SHOULD_BE_COLORED: 42,
|
|
32
|
+
ELEMENT_SHOULD_BE_GRAYSCALE: 43,
|
|
33
|
+
PHOTO_WHITE_IR_DONT_MATCH: 44,
|
|
34
|
+
UV_DULL_PAPER_MRZ: 50,
|
|
35
|
+
FALSE_LUMINISCENCE_IN_MRZ: 51,
|
|
36
|
+
UV_DULL_PAPER_PHOTO: 52,
|
|
37
|
+
UV_DULL_PAPER_BLANK: 53,
|
|
38
|
+
UV_DULL_PAPER_ERROR: 54,
|
|
39
|
+
FALSE_LUMINISCENCE_IN_BLANK: 55,
|
|
40
|
+
BAD_AREA_IN_AXIAL: 60,
|
|
41
|
+
FALSE_IPI_PARAMETERS: 65,
|
|
42
|
+
FIELD_POS_CORRECTOR_HIGHLIGHT_IR: 80,
|
|
43
|
+
FIELD_POS_CORRECTOR_GLARES_IN_PHOTO_AREA: 81,
|
|
44
|
+
FIELD_POS_CORRECTOR_PHOTO_REPLACED: 82,
|
|
45
|
+
FIELD_POS_CORRECTOR_LANDMARKS_CHECK_ERROR: 83,
|
|
46
|
+
FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR: 84,
|
|
47
|
+
FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR: 85,
|
|
48
|
+
CHD_FIELD_POS_CORRECTOR_INCORRECT_HEAD_POSITION: 86,
|
|
49
|
+
OVI_IR_INVISIBLE: 90,
|
|
50
|
+
OVI_INSUFFICIENT_AREA: 91,
|
|
51
|
+
OVI_COLOR_INVARIABLE: 92,
|
|
52
|
+
OVI_BAD_COLOR_FRONT: 93,
|
|
53
|
+
OVI_BAD_COLOR_SIDE: 94,
|
|
54
|
+
OVI_WIDE_COLOR_SPREAD: 95,
|
|
55
|
+
OVI_BAD_COLOR_PERCENT: 96,
|
|
56
|
+
HOLOGRAM_ELEMENT_ABSENT: 100,
|
|
57
|
+
HOLOGRAM_SIDE_TOP_IMAGES_ABSENT: 101,
|
|
58
|
+
HOLOGRAM_ELEMENT_PRESENT: 102,
|
|
59
|
+
HOLOGRAM_FRAMES_IS_ABSENT: 103,
|
|
60
|
+
HOLOGRAM_HOLO_FIELD_IS_ABSENT: 104,
|
|
61
|
+
PHOTO_PATTERN_INTERRUPTED: 110,
|
|
62
|
+
PHOTO_PATTERN_SHIFTED: 111,
|
|
63
|
+
PHOTO_PATTERN_DIFFERENT_COLORS: 112,
|
|
64
|
+
PHOTO_PATTERN_IR_VISIBLE: 113,
|
|
65
|
+
PHOTO_PATTERN_NOT_INTERSECT: 114,
|
|
66
|
+
PHOTO_SIZE_IS_WRONG: 115,
|
|
67
|
+
PHOTO_PATTERN_INVALID_COLOR: 116,
|
|
68
|
+
PHOTO_PATTERN_SHIFTED_VERT: 117,
|
|
69
|
+
PHOTO_PATTERN_PATTERN_NOT_FOUND: 118,
|
|
70
|
+
PHOTO_PATTERN_DIFFERENT_LINES_THICKNESS: 119,
|
|
71
|
+
PHOTO_IS_NOT_RECTANGLE: 120,
|
|
72
|
+
PHOTO_CORNERS_IS_WRONG: 121,
|
|
73
|
+
DOCUMENT_IS_CANCELLING: 122,
|
|
74
|
+
TEXT_COLOR_SHOULD_BE_BLUE: 130,
|
|
75
|
+
TEXT_COLOR_SHOULD_BE_GREEN: 131,
|
|
76
|
+
TEXT_COLOR_SHOULD_BE_RED: 132,
|
|
77
|
+
TEXT_SHOULD_BE_BLACK: 133,
|
|
78
|
+
SECURITY_TEXT_IS_ABSENT: 134,
|
|
79
|
+
BARCODE_WAS_READ_WITH_ERRORS: 140,
|
|
80
|
+
BARCODE_DATA_FORMAT_ERROR: 141,
|
|
81
|
+
BARCODE_SIZE_PARAMS_ERROR: 142,
|
|
82
|
+
NOT_ALL_BARCODES_READ: 143,
|
|
83
|
+
GLARES_IN_BARCODE_AREA: 144,
|
|
84
|
+
CHD_NO_CERTIFICATE_FOR_DIGITAL_SIGNATURE_CHECK: 145,
|
|
85
|
+
PORTRAIT_COMPARISON_PORTRAITS_DIFFER: 150,
|
|
86
|
+
PORTRAIT_COMPARISON_NO_SERVICE_REPLY: 151,
|
|
87
|
+
PORTRAIT_COMPARISON_SERVICE_ERROR: 152,
|
|
88
|
+
PORTRAIT_COMPARISON_NOT_ENOUGH_IMAGES: 153,
|
|
89
|
+
PORTRAIT_COMPARISON_NO_LIVE_PHOTO: 154,
|
|
90
|
+
PORTRAIT_COMPARISON_NO_SERVICE_LICENSE: 155,
|
|
91
|
+
PORTRAIT_COMPARISON_NO_PORTRAIT_DETECTED: 156,
|
|
92
|
+
MOBILE_IMAGES_UNSUITABLE_LIGHT_CONDITIONS: 160,
|
|
93
|
+
MOBILE_IMAGES_WHITE_UV_NO_DIFFERENCE: 161,
|
|
94
|
+
FINGERPRINTS_COMPARISON_MISMATCH: 170,
|
|
95
|
+
HOLO_PHOTO_FACE_NOT_DETECTED: 180,
|
|
96
|
+
HOLO_PHOTO_FACE_COMPARISON_FAILED: 181,
|
|
97
|
+
HOLO_PHOTO_FACE_GLARE_IN_CENTER_ABSENT: 182,
|
|
98
|
+
HOLO_ELEMENT_SHAPE_ERROR: 183,
|
|
99
|
+
ALGORITHM_STEPS_ERROR: 184,
|
|
100
|
+
HOLO_AREAS_NOT_LOADED: 185,
|
|
101
|
+
FINISHED_BY_TIMEOUT: 186,
|
|
102
|
+
HOLO_PHOTO_DOCUMENT_OUTSIDE_FRAME: 187,
|
|
103
|
+
LIVENESS_DEPTH_CHECK_FAILED: 190,
|
|
104
|
+
MRZ_QUALITY_WRONG_SYMBOL_POSITION: 200,
|
|
105
|
+
MRZ_QUALITY_WRONG_BACKGROUND: 201,
|
|
106
|
+
MRZ_QUALITY_WRONG_MRZ_WIDTH: 202,
|
|
107
|
+
MRZ_QUALITY_WRONG_MRZ_HEIGHT: 203,
|
|
108
|
+
MRZ_QUALITY_WRONG_LINE_POSITION: 204,
|
|
109
|
+
MRZ_QUALITY_WRONG_FONT_TYPE: 205,
|
|
110
|
+
OCR_QUALITY_TEXT_POSITION: 220,
|
|
111
|
+
OCR_QUALITY_INVALID_FONT: 221,
|
|
112
|
+
OCR_QUALITY_INVALID_BACKGROUND: 222,
|
|
113
|
+
LAS_INK_INVALID_LINES_FREQUENCY: 230,
|
|
114
|
+
DOC_LIVENESS_DOCUMENT_NOT_LIVE: 238,
|
|
115
|
+
CHD_DOC_LIVENESS_BLACK_AND_WHITE_COPY_DETECTED: 239,
|
|
116
|
+
DOC_LIVENESS_ELECTRONIC_DEVICE_DETECTED: 240,
|
|
117
|
+
DOC_LIVENESS_INVALID_BARCODE_BACKGROUND: 241,
|
|
118
|
+
ICAO_IDB_BASE_32_ERROR: 243,
|
|
119
|
+
ICAO_IDB_ZIPPED_ERROR: 244,
|
|
120
|
+
ICAO_IDB_MESSAGE_ZONE_EMPTY: 245,
|
|
121
|
+
ICAO_IDB_SIGNATURE_MUST_BE_PRESENT: 246,
|
|
122
|
+
ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT: 247,
|
|
123
|
+
ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT: 248,
|
|
124
|
+
INCORRECT_OBJECT_COLOR: 250
|
|
125
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export const SecurityFeatureType = {
|
|
2
|
+
NONE: -1,
|
|
3
|
+
BLANK: 0,
|
|
4
|
+
FILL: 1,
|
|
5
|
+
PHOTO: 2,
|
|
6
|
+
MRZ: 3,
|
|
7
|
+
FALSE_LUMINESCENCE: 4,
|
|
8
|
+
HOLO_SIMPLE: 5,
|
|
9
|
+
HOLO_VERIFY_STATIC: 6,
|
|
10
|
+
HOLO_VERIFY_MULTI_STATIC: 7,
|
|
11
|
+
HOLO_VERIFY_DINAMIC: 8,
|
|
12
|
+
PATTERN_NOT_INTERRUPTED: 9,
|
|
13
|
+
PATTERN_NOT_SHIFTED: 10,
|
|
14
|
+
PATTERN_SAME_COLORS: 11,
|
|
15
|
+
PATTERN_IR_INVISIBLE: 12,
|
|
16
|
+
PHOTO_SIZE_CHECK: 13,
|
|
17
|
+
PORTRAIT_COMPARISON_VS_GHOST: 14,
|
|
18
|
+
PORTRAIT_COMPARISON_VS_RFID: 15,
|
|
19
|
+
PORTRAIT_COMPARISON_VS_VISUAL: 16,
|
|
20
|
+
BARCODE: 17,
|
|
21
|
+
PATTERN_DIFFERENT_LINES_THICKNESS: 18,
|
|
22
|
+
PORTRAIT_COMPARISON_VS_CAMERA: 19,
|
|
23
|
+
PORTRAIT_COMPARISON_RFID_VS_CAMERA: 20,
|
|
24
|
+
GHOST_PHOTO: 21,
|
|
25
|
+
CLEAR_GHOST_PHOTO: 22,
|
|
26
|
+
INVISIBLE_OBJECT: 23,
|
|
27
|
+
LOW_CONTRAST_OBJECT: 24,
|
|
28
|
+
PHOTO_COLOR: 25,
|
|
29
|
+
PHOTO_SHAPE: 26,
|
|
30
|
+
PHOTO_CORNERS: 27,
|
|
31
|
+
DOCUMENT_CANCELLING_DETECTOR: 28,
|
|
32
|
+
OCR: 28,
|
|
33
|
+
PORTRAIT_COMPARISON_EXTVS_VISUAL: 29,
|
|
34
|
+
PORTRAIT_COMPARISON_EXTVS_RFID: 30,
|
|
35
|
+
PORTRAIT_COMPARISON_EXTVS_LIVE: 31,
|
|
36
|
+
LIVENESS_DEPTH: 32,
|
|
37
|
+
MICROTEXT: 33,
|
|
38
|
+
FLUORESCENT_OBJECT: 34,
|
|
39
|
+
LANDMARKS_CHECK: 35,
|
|
40
|
+
FACE_PRESENCE: 36,
|
|
41
|
+
FACE_ABSENCE: 38,
|
|
42
|
+
LIVENESS_SCREEN_CAPTURE: 39,
|
|
43
|
+
LIVENESS_ELECTRONIC_DEVICE: 40,
|
|
44
|
+
LIVENESS_OVI: 41,
|
|
45
|
+
BARCODE_SIZE_CHECK: 42,
|
|
46
|
+
LAS_INK: 43,
|
|
47
|
+
LIVENESS_MLI: 44,
|
|
48
|
+
LIVENESS_BARCODE_BACKGROUND: 45,
|
|
49
|
+
PORTRAIT_COMPARISON_VS_BARCODE: 46,
|
|
50
|
+
PORTRAIT_COMPARISON_RFID_VS_BARCODE: 47,
|
|
51
|
+
PORTRAIT_COMPARISON_EXT_VS_BARCODE: 48,
|
|
52
|
+
PORTRAIT_COMPARISON_BARCODE_VS_CAMERA: 49,
|
|
53
|
+
CHECK_DIGITAL_SIGNATURE: 50,
|
|
54
|
+
CONTACT_CHIP_CLASSIFICATION: 51,
|
|
55
|
+
HEAD_POSITION_CHECK: 52,
|
|
56
|
+
LIVENESS_BLACK_AND_WHITE_COPY_CHECK: 53,
|
|
57
|
+
LIVENESS_DYNAPRINT: 54,
|
|
58
|
+
LIVENESS_GEOMETRY_CHECK: 55
|
|
59
|
+
}
|