@regulaforensics/document-reader 8.2.186-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/README.md +18 -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 +826 -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 +573 -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 +12 -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/dr/fullauthrfid/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/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/strings.xml +7 -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 +10 -0
- package/examples/capacitor/ionic.config.json +7 -0
- package/examples/capacitor/ios/App/App/App.entitlements +5 -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 +53 -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 +3467 -0
- package/examples/capacitor/package.json +29 -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 +6 -0
- package/examples/capacitor/src/extra/bt_device.tsx +32 -0
- package/examples/capacitor/src/extra/custom_rfid.tsx +74 -0
- package/examples/capacitor/src/main.css +131 -0
- package/examples/capacitor/src/main.html +41 -0
- package/examples/capacitor/src/main.tsx +175 -0
- package/examples/capacitor/tsconfig.json +5 -0
- package/examples/capacitor/vite.config.ts +17 -0
- package/examples/cordova/.vscode/launch.json +28 -0
- package/examples/cordova/.vscode/typings/cordova/cordova.d.ts +80 -0
- package/examples/cordova/README.md +12 -0
- package/examples/cordova/config.xml +29 -0
- package/examples/cordova/package-lock.json +1314 -0
- package/examples/cordova/package.json +32 -0
- package/examples/cordova/scripts/android.sh +8 -0
- package/examples/cordova/scripts/ios.sh +8 -0
- package/examples/cordova/scripts/setup.sh +8 -0
- package/examples/cordova/www/images/document.png +0 -0
- package/examples/cordova/www/images/logo.png +0 -0
- package/examples/cordova/www/images/portrait.png +0 -0
- package/examples/cordova/www/index.html +21 -0
- package/examples/cordova/www/src/main.css +130 -0
- package/examples/cordova/www/src/main.html +63 -0
- package/examples/cordova/www/src/main.js +50 -0
- package/examples/ionic/README.md +12 -0
- package/examples/ionic/angular.json +39 -0
- package/examples/ionic/config.xml +28 -0
- package/examples/ionic/index.html +19 -0
- package/examples/ionic/index.ts +17 -0
- package/examples/ionic/ionic.config.json +7 -0
- package/examples/ionic/package-lock.json +16559 -0
- package/examples/ionic/package.json +47 -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/assets/.gitkeep +0 -0
- package/examples/ionic/src/images/document.png +0 -0
- package/examples/ionic/src/images/icon.png +0 -0
- package/examples/ionic/src/images/portrait.png +0 -0
- package/examples/ionic/src/main.css +130 -0
- package/examples/ionic/src/main.html +63 -0
- package/examples/ionic/src/main.ts +66 -0
- package/examples/ionic/tsconfig.json +12 -0
- package/examples/react_native/README.md +12 -0
- package/examples/react_native/app.config.ts +53 -0
- package/examples/react_native/assets/.gitkeep +0 -0
- package/examples/react_native/images/document.png +0 -0
- package/examples/react_native/images/icon/adaptive-icon.png +0 -0
- package/examples/react_native/images/icon/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 +52 -0
- package/examples/react_native/metro.config.js +7 -0
- package/examples/react_native/package-lock.json +9254 -0
- package/examples/react_native/package.json +27 -0
- package/examples/react_native/scripts/android.sh +12 -0
- package/examples/react_native/scripts/ios.sh +11 -0
- package/examples/react_native/scripts/setup.sh +8 -0
- package/examples/react_native/src/main.css +130 -0
- package/examples/react_native/src/main.html +63 -0
- package/examples/react_native/src/main.tsx +50 -0
- package/ios/CVDDocumentReader.h +7 -0
- package/ios/CVDDocumentReader.m +39 -0
- package/ios/RGLWConfig.h +42 -0
- package/ios/RGLWConfig.m +1398 -0
- package/ios/RGLWJSONConstructor.h +185 -0
- package/ios/RGLWJSONConstructor.m +2379 -0
- package/ios/RGLWMain.h +36 -0
- package/ios/RGLWMain.m +610 -0
- package/ios/RNDocumentReader.h +8 -0
- package/ios/RNDocumentReader.m +49 -0
- package/package.json +36 -0
- package/plugin.xml +51 -0
- package/www/capacitor/config/InitConfig.js +25 -0
- package/www/capacitor/config/OnlineProcessingConfig.js +41 -0
- package/www/capacitor/config/RFIDConfig.js +31 -0
- package/www/capacitor/config/RecognizeConfig.js +103 -0
- package/www/capacitor/config/ScannerConfig.js +38 -0
- package/www/capacitor/index.js +486 -0
- package/www/capacitor/info/DocReaderException.js +57 -0
- package/www/capacitor/info/DocReaderScenario.js +71 -0
- package/www/capacitor/info/DocReaderVersion.js +23 -0
- package/www/capacitor/info/DocumentsDatabase.js +27 -0
- package/www/capacitor/info/License.js +22 -0
- package/www/capacitor/info/PrepareProgress.js +23 -0
- package/www/capacitor/info/RFIDException.js +19 -0
- package/www/capacitor/internal/bridge.js +98 -0
- package/www/capacitor/internal/cordova.js +17 -0
- package/www/capacitor/params/Functionality.js +303 -0
- package/www/capacitor/params/customization/Customization.js +550 -0
- package/www/capacitor/params/customization/CustomizationColors.js +74 -0
- package/www/capacitor/params/customization/CustomizationFonts.js +40 -0
- package/www/capacitor/params/customization/CustomizationImages.js +25 -0
- package/www/capacitor/params/customization/Font.js +28 -0
- package/www/capacitor/params/process_params/AuthenticityParams.js +129 -0
- package/www/capacitor/params/process_params/BackendProcessingConfig.js +25 -0
- package/www/capacitor/params/process_params/FaceApiParams.js +38 -0
- package/www/capacitor/params/process_params/FaceApiSearchParams.js +21 -0
- package/www/capacitor/params/process_params/GlaresCheckParams.js +18 -0
- package/www/capacitor/params/process_params/ImageQA.js +97 -0
- package/www/capacitor/params/process_params/LivenessParams.js +67 -0
- package/www/capacitor/params/process_params/ProcessParams.js +570 -0
- package/www/capacitor/params/process_params/RfidParams.js +15 -0
- package/www/capacitor/params/rfid_scenario/DTCDataGroups.js +53 -0
- package/www/capacitor/params/rfid_scenario/EDLDataGroups.js +116 -0
- package/www/capacitor/params/rfid_scenario/EIDDataGroups.js +165 -0
- package/www/capacitor/params/rfid_scenario/EPassportDataGroups.js +130 -0
- package/www/capacitor/params/rfid_scenario/RFIDScenario.js +493 -0
- package/www/capacitor/results/DocumentType.js +285 -0
- package/www/capacitor/results/Position.js +60 -0
- package/www/capacitor/results/Results.js +318 -0
- package/www/capacitor/results/TransactionInfo.js +16 -0
- package/www/capacitor/results/authenticity/Authenticity.js +23 -0
- package/www/capacitor/results/authenticity/AuthenticityCheck.js +33 -0
- package/www/capacitor/results/authenticity/AuthenticityElement.js +27 -0
- package/www/capacitor/results/authenticity/AuthenticityResult.js +26 -0
- package/www/capacitor/results/authenticity/CheckDiagnose.js +124 -0
- package/www/capacitor/results/authenticity/SecurityFeatureType.js +59 -0
- package/www/capacitor/results/barcode/BarcodeField.js +24 -0
- package/www/capacitor/results/barcode/BarcodeResult.js +24 -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 +16 -0
- package/www/capacitor/results/image_quality/ImageQuality.js +31 -0
- package/www/capacitor/results/image_quality/ImageQualityCheckType.js +19 -0
- package/www/capacitor/results/image_quality/ImageQualityGroup.js +30 -0
- package/www/capacitor/results/rfid/AccessControlProcedureType.js +21 -0
- package/www/capacitor/results/rfid/Application.js +47 -0
- package/www/capacitor/results/rfid/Attribute.js +16 -0
- package/www/capacitor/results/rfid/Authority.js +28 -0
- package/www/capacitor/results/rfid/CardProperties.js +38 -0
- package/www/capacitor/results/rfid/CertificateChain.js +51 -0
- package/www/capacitor/results/rfid/CertificateData.js +14 -0
- package/www/capacitor/results/rfid/DataField.js +16 -0
- package/www/capacitor/results/rfid/Extension.js +14 -0
- package/www/capacitor/results/rfid/File.js +39 -0
- package/www/capacitor/results/rfid/FileData.js +18 -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 +76 -0
- package/www/capacitor/results/rfid/RFIDValidity.js +16 -0
- package/www/capacitor/results/rfid/RFIDValue.js +20 -0
- package/www/capacitor/results/rfid/SecurityObject.js +31 -0
- package/www/capacitor/results/rfid/SecurityObjectCertificates.js +14 -0
- package/www/capacitor/results/rfid/SignerInfo.js +57 -0
- package/www/capacitor/results/status/CheckResult.js +5 -0
- package/www/capacitor/results/status/OpticalStatus.js +30 -0
- package/www/capacitor/results/status/RFIDStatus.js +26 -0
- package/www/capacitor/results/status/ResultsStatus.js +28 -0
- package/www/capacitor/results/visible_digital_seals/BytesData.js +18 -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 +40 -0
- package/www/capacitor/results/visual_results/Comparison.js +19 -0
- package/www/capacitor/results/visual_results/FieldType.js +658 -0
- package/www/capacitor/results/visual_results/GraphicField.js +33 -0
- package/www/capacitor/results/visual_results/GraphicFieldType.js +25 -0
- package/www/capacitor/results/visual_results/GraphicResult.js +22 -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 +18 -0
- package/www/capacitor/results/visual_results/Rect.js +18 -0
- package/www/capacitor/results/visual_results/Symbol.js +18 -0
- package/www/capacitor/results/visual_results/TextField.js +68 -0
- package/www/capacitor/results/visual_results/TextResult.js +42 -0
- package/www/capacitor/results/visual_results/TextSource.js +19 -0
- package/www/capacitor/results/visual_results/Validity.js +17 -0
- package/www/capacitor/results/visual_results/Value.js +39 -0
- package/www/capacitor/rfid/PAAttribute.js +17 -0
- package/www/capacitor/rfid/PAResourcesIssuer.js +27 -0
- package/www/capacitor/rfid/PKDCertificate.js +54 -0
- package/www/capacitor/rfid/RFIDErrorCodes.js +123 -0
- package/www/capacitor/rfid/RFIDNotification.js +60 -0
- package/www/capacitor/rfid/TAChallenge.js +23 -0
- package/www/capacitor/rfid/TccParams.js +24 -0
- package/www/cordova.js +9816 -0
- package/www/react-native/config/InitConfig.js +25 -0
- package/www/react-native/config/OnlineProcessingConfig.js +41 -0
- package/www/react-native/config/RFIDConfig.js +31 -0
- package/www/react-native/config/RecognizeConfig.js +103 -0
- package/www/react-native/config/ScannerConfig.js +38 -0
- package/www/react-native/index.js +486 -0
- package/www/react-native/info/DocReaderException.js +57 -0
- package/www/react-native/info/DocReaderScenario.js +71 -0
- package/www/react-native/info/DocReaderVersion.js +23 -0
- package/www/react-native/info/DocumentsDatabase.js +27 -0
- package/www/react-native/info/License.js +22 -0
- package/www/react-native/info/PrepareProgress.js +23 -0
- package/www/react-native/info/RFIDException.js +19 -0
- package/www/react-native/internal/bridge.js +98 -0
- package/www/react-native/params/Functionality.js +303 -0
- package/www/react-native/params/customization/Customization.js +550 -0
- package/www/react-native/params/customization/CustomizationColors.js +74 -0
- package/www/react-native/params/customization/CustomizationFonts.js +40 -0
- package/www/react-native/params/customization/CustomizationImages.js +25 -0
- package/www/react-native/params/customization/Font.js +28 -0
- package/www/react-native/params/process_params/AuthenticityParams.js +129 -0
- package/www/react-native/params/process_params/BackendProcessingConfig.js +25 -0
- package/www/react-native/params/process_params/FaceApiParams.js +38 -0
- package/www/react-native/params/process_params/FaceApiSearchParams.js +21 -0
- package/www/react-native/params/process_params/GlaresCheckParams.js +18 -0
- package/www/react-native/params/process_params/ImageQA.js +97 -0
- package/www/react-native/params/process_params/LivenessParams.js +67 -0
- package/www/react-native/params/process_params/ProcessParams.js +570 -0
- package/www/react-native/params/process_params/RfidParams.js +15 -0
- package/www/react-native/params/rfid_scenario/DTCDataGroups.js +53 -0
- package/www/react-native/params/rfid_scenario/EDLDataGroups.js +116 -0
- package/www/react-native/params/rfid_scenario/EIDDataGroups.js +165 -0
- package/www/react-native/params/rfid_scenario/EPassportDataGroups.js +130 -0
- package/www/react-native/params/rfid_scenario/RFIDScenario.js +493 -0
- package/www/react-native/results/DocumentType.js +285 -0
- package/www/react-native/results/Position.js +60 -0
- package/www/react-native/results/Results.js +318 -0
- package/www/react-native/results/TransactionInfo.js +16 -0
- package/www/react-native/results/authenticity/Authenticity.js +23 -0
- package/www/react-native/results/authenticity/AuthenticityCheck.js +33 -0
- package/www/react-native/results/authenticity/AuthenticityElement.js +27 -0
- package/www/react-native/results/authenticity/AuthenticityResult.js +26 -0
- package/www/react-native/results/authenticity/CheckDiagnose.js +124 -0
- package/www/react-native/results/authenticity/SecurityFeatureType.js +59 -0
- package/www/react-native/results/barcode/BarcodeField.js +24 -0
- package/www/react-native/results/barcode/BarcodeResult.js +24 -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 +16 -0
- package/www/react-native/results/image_quality/ImageQuality.js +31 -0
- package/www/react-native/results/image_quality/ImageQualityCheckType.js +19 -0
- package/www/react-native/results/image_quality/ImageQualityGroup.js +30 -0
- package/www/react-native/results/rfid/AccessControlProcedureType.js +21 -0
- package/www/react-native/results/rfid/Application.js +47 -0
- package/www/react-native/results/rfid/Attribute.js +16 -0
- package/www/react-native/results/rfid/Authority.js +28 -0
- package/www/react-native/results/rfid/CardProperties.js +38 -0
- package/www/react-native/results/rfid/CertificateChain.js +51 -0
- package/www/react-native/results/rfid/CertificateData.js +14 -0
- package/www/react-native/results/rfid/DataField.js +16 -0
- package/www/react-native/results/rfid/Extension.js +14 -0
- package/www/react-native/results/rfid/File.js +39 -0
- package/www/react-native/results/rfid/FileData.js +18 -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 +76 -0
- package/www/react-native/results/rfid/RFIDValidity.js +16 -0
- package/www/react-native/results/rfid/RFIDValue.js +20 -0
- package/www/react-native/results/rfid/SecurityObject.js +31 -0
- package/www/react-native/results/rfid/SecurityObjectCertificates.js +14 -0
- package/www/react-native/results/rfid/SignerInfo.js +57 -0
- package/www/react-native/results/status/CheckResult.js +5 -0
- package/www/react-native/results/status/OpticalStatus.js +30 -0
- package/www/react-native/results/status/RFIDStatus.js +26 -0
- package/www/react-native/results/status/ResultsStatus.js +28 -0
- package/www/react-native/results/visible_digital_seals/BytesData.js +18 -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 +40 -0
- package/www/react-native/results/visual_results/Comparison.js +19 -0
- package/www/react-native/results/visual_results/FieldType.js +658 -0
- package/www/react-native/results/visual_results/GraphicField.js +33 -0
- package/www/react-native/results/visual_results/GraphicFieldType.js +25 -0
- package/www/react-native/results/visual_results/GraphicResult.js +22 -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 +18 -0
- package/www/react-native/results/visual_results/Rect.js +18 -0
- package/www/react-native/results/visual_results/Symbol.js +18 -0
- package/www/react-native/results/visual_results/TextField.js +68 -0
- package/www/react-native/results/visual_results/TextResult.js +42 -0
- package/www/react-native/results/visual_results/TextSource.js +19 -0
- package/www/react-native/results/visual_results/Validity.js +17 -0
- package/www/react-native/results/visual_results/Value.js +39 -0
- package/www/react-native/rfid/PAAttribute.js +17 -0
- package/www/react-native/rfid/PAResourcesIssuer.js +27 -0
- package/www/react-native/rfid/PKDCertificate.js +54 -0
- package/www/react-native/rfid/RFIDErrorCodes.js +123 -0
- package/www/react-native/rfid/RFIDNotification.js +60 -0
- package/www/react-native/rfid/TAChallenge.js +23 -0
- package/www/react-native/rfid/TccParams.js +24 -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 +421 -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 +316 -0
- package/www/types/params/customization/Customization.d.ts +558 -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 +465 -0
- package/www/types/params/process_params/RfidParams.d.ts +19 -0
- package/www/types/params/rfid_scenario/DTCDataGroups.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 +229 -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 +1310 -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,14 @@
|
|
|
1
|
+
export class CertificateData {
|
|
2
|
+
data
|
|
3
|
+
length
|
|
4
|
+
|
|
5
|
+
static fromJson(jsonObject) {
|
|
6
|
+
if (jsonObject == null) return null;
|
|
7
|
+
|
|
8
|
+
const result = new CertificateData();
|
|
9
|
+
result.data = jsonObject["data"];
|
|
10
|
+
result.length = jsonObject["length"];
|
|
11
|
+
|
|
12
|
+
return result;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RFIDDataFileType } from './RFIDDataFileType';
|
|
2
|
+
|
|
3
|
+
export class DataField {
|
|
4
|
+
data
|
|
5
|
+
fieldType
|
|
6
|
+
|
|
7
|
+
static fromJson(jsonObject) {
|
|
8
|
+
if (jsonObject == null) return null;
|
|
9
|
+
|
|
10
|
+
const result = new DataField();
|
|
11
|
+
result.data = jsonObject["data"] ?? "";
|
|
12
|
+
result.fieldType = jsonObject["fieldType"] ?? RFIDDataFileType.UNSPECIFIED;
|
|
13
|
+
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FileData } from "./FileData";
|
|
2
|
+
import { RFIDDataFileType } from "./RFIDDataFileType";
|
|
3
|
+
import { RFIDErrorCodes } from "../../rfid/RFIDErrorCodes";
|
|
4
|
+
import { SecurityObjectCertificates } from "./SecurityObjectCertificates";
|
|
5
|
+
|
|
6
|
+
export class File {
|
|
7
|
+
fileData
|
|
8
|
+
fileID
|
|
9
|
+
notifications
|
|
10
|
+
pAStatus
|
|
11
|
+
readingStatus
|
|
12
|
+
readingTime
|
|
13
|
+
type
|
|
14
|
+
typeName
|
|
15
|
+
docFieldsText
|
|
16
|
+
docFieldsGraphics
|
|
17
|
+
docFieldsOriginals
|
|
18
|
+
certificates
|
|
19
|
+
|
|
20
|
+
static fromJson(jsonObject) {
|
|
21
|
+
if (jsonObject == null) return null;
|
|
22
|
+
|
|
23
|
+
const result = new File();
|
|
24
|
+
result.readingTime = jsonObject["readingTime"];
|
|
25
|
+
result.type = jsonObject["type"];
|
|
26
|
+
result.typeName = jsonObject["typeName"];
|
|
27
|
+
result.pAStatus = jsonObject["pAStatus"];
|
|
28
|
+
result.readingStatus = jsonObject["readingStatus"];
|
|
29
|
+
result.fileID = jsonObject["fileID"];
|
|
30
|
+
result.fileData = FileData.fromJson(jsonObject["fileData"]);
|
|
31
|
+
result.certificates = SecurityObjectCertificates.fromJson(jsonObject["certificates"]);
|
|
32
|
+
result.notifications = jsonObject["notifications"];
|
|
33
|
+
result.docFieldsText = jsonObject["docFieldsText"];
|
|
34
|
+
result.docFieldsGraphics = jsonObject["docFieldsGraphics"];
|
|
35
|
+
result.docFieldsOriginals = jsonObject["docFieldsOriginals"];
|
|
36
|
+
|
|
37
|
+
return result;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class FileData {
|
|
2
|
+
data
|
|
3
|
+
length
|
|
4
|
+
type
|
|
5
|
+
status
|
|
6
|
+
|
|
7
|
+
static fromJson(jsonObject) {
|
|
8
|
+
if (jsonObject == null) return null;
|
|
9
|
+
|
|
10
|
+
const result = new FileData();
|
|
11
|
+
result.data = jsonObject["data"];
|
|
12
|
+
result.length = jsonObject["length"];
|
|
13
|
+
result.type = jsonObject["type"];
|
|
14
|
+
result.status = jsonObject["status"];
|
|
15
|
+
|
|
16
|
+
return result;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { exec } from "../../internal/bridge";
|
|
2
|
+
|
|
3
|
+
export const RFIDDataFileType = {
|
|
4
|
+
UNSPECIFIED: 0,
|
|
5
|
+
PASSPORT_DG1: 1,
|
|
6
|
+
PASSPORT_DG2: 2,
|
|
7
|
+
PASSPORT_DG3: 3,
|
|
8
|
+
PASSPORT_DG4: 4,
|
|
9
|
+
PASSPORT_DG5: 5,
|
|
10
|
+
PASSPORT_DG6: 6,
|
|
11
|
+
PASSPORT_DG7: 7,
|
|
12
|
+
PASSPORT_DG8: 8,
|
|
13
|
+
PASSPORT_DG9: 9,
|
|
14
|
+
PASSPORT_DG10: 10,
|
|
15
|
+
PASSPORT_DG11: 11,
|
|
16
|
+
PASSPORT_DG12: 12,
|
|
17
|
+
PASSPORT_DG13: 13,
|
|
18
|
+
PASSPORT_DG14: 14,
|
|
19
|
+
PASSPORT_DG15: 15,
|
|
20
|
+
PASSPORT_DG16: 16,
|
|
21
|
+
PASSPORT_DG17: 17,
|
|
22
|
+
PASSPORT_DG18: 18,
|
|
23
|
+
PASSPORT_DG19: 19,
|
|
24
|
+
PASSPORT_DG20: 20,
|
|
25
|
+
PASSPORT_SOD: 21,
|
|
26
|
+
PASSPORT_CVCA: 22,
|
|
27
|
+
PASSPORT_COM: 23,
|
|
28
|
+
DTC_DG17: 57,
|
|
29
|
+
DTC_DG18: 58,
|
|
30
|
+
DTC_DG22: 62,
|
|
31
|
+
DTC_DG23: 63,
|
|
32
|
+
DTC_DG24: 64,
|
|
33
|
+
ID_DG1: 101,
|
|
34
|
+
ID_DG2: 102,
|
|
35
|
+
ID_DG3: 103,
|
|
36
|
+
ID_DG4: 104,
|
|
37
|
+
ID_DG5: 105,
|
|
38
|
+
ID_DG6: 106,
|
|
39
|
+
ID_DG7: 107,
|
|
40
|
+
ID_DG8: 108,
|
|
41
|
+
ID_DG9: 109,
|
|
42
|
+
ID_DG10: 110,
|
|
43
|
+
ID_DG11: 111,
|
|
44
|
+
ID_DG12: 112,
|
|
45
|
+
ID_DG13: 113,
|
|
46
|
+
ID_DG14: 114,
|
|
47
|
+
ID_DG15: 115,
|
|
48
|
+
ID_DG16: 116,
|
|
49
|
+
ID_DG17: 117,
|
|
50
|
+
ID_DG18: 118,
|
|
51
|
+
ID_DG19: 119,
|
|
52
|
+
ID_DG20: 120,
|
|
53
|
+
ID_DG21: 121,
|
|
54
|
+
DL_COM: 150,
|
|
55
|
+
DL_DG1: 151,
|
|
56
|
+
DL_DG2: 152,
|
|
57
|
+
DL_DG3: 153,
|
|
58
|
+
DL_DG4: 154,
|
|
59
|
+
DL_DG5: 155,
|
|
60
|
+
DL_DG6: 156,
|
|
61
|
+
DL_DG7: 157,
|
|
62
|
+
DL_DG8: 158,
|
|
63
|
+
DL_DG9: 159,
|
|
64
|
+
DL_DG10: 160,
|
|
65
|
+
DL_DG11: 161,
|
|
66
|
+
DL_DG12: 162,
|
|
67
|
+
DL_DG13: 163,
|
|
68
|
+
DL_DG14: 164,
|
|
69
|
+
DL_SOD: 165,
|
|
70
|
+
DL_CE: 166,
|
|
71
|
+
DL_CVCA: 167,
|
|
72
|
+
PACE_CARDACCESS: 200,
|
|
73
|
+
PACE_CARDSECURITY: 201,
|
|
74
|
+
PACE_CHIPSECURITY: 202,
|
|
75
|
+
MIFARE_DATA: 300,
|
|
76
|
+
MIFARE_VALIDITY: 301,
|
|
77
|
+
AUTHENTICITYV2: 302,
|
|
78
|
+
ATR: 400,
|
|
79
|
+
ESIGN_PK: 500,
|
|
80
|
+
ESIGN_SIGNEDDATA: 501,
|
|
81
|
+
CERTIFICATE: 600,
|
|
82
|
+
MASTERLIST: 601,
|
|
83
|
+
DEFECTLIST: 602,
|
|
84
|
+
DEVIATIONLIST: 603,
|
|
85
|
+
APP_DIRECTORY: 700,
|
|
86
|
+
SESSION: 701,
|
|
87
|
+
LOGDATA: 702,
|
|
88
|
+
CHIP_PROPERTIES: 703,
|
|
89
|
+
SAM_DATA: 800,
|
|
90
|
+
SAM_DATA_MAX: 832,
|
|
91
|
+
VDS: 900,
|
|
92
|
+
VDSNC: 901,
|
|
93
|
+
USERDEFINED: 1000
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
RFIDDataFileType.getTranslation = async function (value) {
|
|
97
|
+
return await exec("getTranslation", ["RFIDDataFileType", value]);
|
|
98
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { AccessControlProcedureType } from './AccessControlProcedureType';
|
|
2
|
+
import { Application } from './Application';
|
|
3
|
+
import { SecurityObject } from './SecurityObject';
|
|
4
|
+
import { CardProperties } from './CardProperties';
|
|
5
|
+
import { RFIDErrorCodes } from '../../rfid/RFIDErrorCodes';
|
|
6
|
+
import { DataField } from './DataField';
|
|
7
|
+
import { RFIDDataFileType } from './RFIDDataFileType';
|
|
8
|
+
|
|
9
|
+
export class RFIDSessionData {
|
|
10
|
+
accessControls
|
|
11
|
+
applications
|
|
12
|
+
securityObjects
|
|
13
|
+
cardProperties
|
|
14
|
+
totalBytesReceived
|
|
15
|
+
totalBytesSent
|
|
16
|
+
status
|
|
17
|
+
extLeSupport
|
|
18
|
+
processTime
|
|
19
|
+
dataFields
|
|
20
|
+
dataGroups
|
|
21
|
+
|
|
22
|
+
static fromJson(jsonObject) {
|
|
23
|
+
if (jsonObject == null) return null;
|
|
24
|
+
|
|
25
|
+
const result = new RFIDSessionData();
|
|
26
|
+
result.totalBytesReceived = jsonObject["totalBytesReceived"];
|
|
27
|
+
result.totalBytesSent = jsonObject["totalBytesSent"];
|
|
28
|
+
result.status = jsonObject["status"];
|
|
29
|
+
result.extLeSupport = jsonObject["extLeSupport"];
|
|
30
|
+
result.processTime = jsonObject["processTime"];
|
|
31
|
+
result.cardProperties = CardProperties.fromJson(jsonObject["cardProperties"]);
|
|
32
|
+
result.dataGroups = jsonObject["dataGroups"];
|
|
33
|
+
|
|
34
|
+
if (jsonObject["accessControls"]) {
|
|
35
|
+
result.accessControls = [];
|
|
36
|
+
for (const item of jsonObject["accessControls"]) {
|
|
37
|
+
const accessControl = AccessControlProcedureType.fromJson(item);
|
|
38
|
+
if (accessControl) {
|
|
39
|
+
result.accessControls.push(accessControl);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (jsonObject["applications"]) {
|
|
45
|
+
result.applications = [];
|
|
46
|
+
for (const item of jsonObject["applications"]) {
|
|
47
|
+
const application = Application.fromJson(item);
|
|
48
|
+
if (application) {
|
|
49
|
+
result.applications.push(application);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (jsonObject["securityObjects"]) {
|
|
55
|
+
result.securityObjects = [];
|
|
56
|
+
for (const item of jsonObject["securityObjects"]) {
|
|
57
|
+
const securityObject = SecurityObject.fromJson(item);
|
|
58
|
+
if (securityObject) {
|
|
59
|
+
result.securityObjects.push(securityObject);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (jsonObject["dataFields"]) {
|
|
65
|
+
result.dataFields = [];
|
|
66
|
+
for (const item of jsonObject["dataFields"]) {
|
|
67
|
+
const dataField = DataField.fromJson(item);
|
|
68
|
+
if (dataField) {
|
|
69
|
+
result.dataFields.push(dataField);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return result;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RFIDValue } from './RFIDValue';
|
|
2
|
+
|
|
3
|
+
export class RFIDValidity {
|
|
4
|
+
notAfter
|
|
5
|
+
notBefore
|
|
6
|
+
|
|
7
|
+
static fromJson(jsonObject) {
|
|
8
|
+
if (jsonObject == null) return null;
|
|
9
|
+
|
|
10
|
+
const result = new RFIDValidity();
|
|
11
|
+
result.notAfter = RFIDValue.fromJson(jsonObject["notAfter"]);
|
|
12
|
+
result.notBefore = RFIDValue.fromJson(jsonObject["notBefore"]);
|
|
13
|
+
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export class RFIDValue {
|
|
2
|
+
data
|
|
3
|
+
length
|
|
4
|
+
status
|
|
5
|
+
type
|
|
6
|
+
format
|
|
7
|
+
|
|
8
|
+
static fromJson(jsonObject) {
|
|
9
|
+
if (jsonObject == null) return null;
|
|
10
|
+
|
|
11
|
+
const result = new RFIDValue();
|
|
12
|
+
result.length = jsonObject["length"];
|
|
13
|
+
result.type = jsonObject["type"];
|
|
14
|
+
result.status = jsonObject["status"];
|
|
15
|
+
result.data = jsonObject["data"];
|
|
16
|
+
result.format = jsonObject["format"];
|
|
17
|
+
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SignerInfo } from './SignerInfo';
|
|
2
|
+
|
|
3
|
+
export class SecurityObject {
|
|
4
|
+
fileReference
|
|
5
|
+
objectType
|
|
6
|
+
version
|
|
7
|
+
signerInfos
|
|
8
|
+
notifications
|
|
9
|
+
|
|
10
|
+
static fromJson(jsonObject) {
|
|
11
|
+
if (jsonObject == null) return null;
|
|
12
|
+
|
|
13
|
+
const result = new SecurityObject();
|
|
14
|
+
result.fileReference = jsonObject["fileReference"];
|
|
15
|
+
result.version = jsonObject["version"];
|
|
16
|
+
result.objectType = jsonObject["objectType"];
|
|
17
|
+
result.notifications = jsonObject["notifications"];
|
|
18
|
+
|
|
19
|
+
if (jsonObject["signerInfos"]) {
|
|
20
|
+
result.signerInfos = [];
|
|
21
|
+
for (const item of jsonObject["signerInfos"]) {
|
|
22
|
+
const signerInfo = SignerInfo.fromJson(item);
|
|
23
|
+
if (signerInfo) {
|
|
24
|
+
result.signerInfos.push(signerInfo);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return result;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CertificateData } from './CertificateData';
|
|
2
|
+
|
|
3
|
+
export class SecurityObjectCertificates {
|
|
4
|
+
securityObject
|
|
5
|
+
|
|
6
|
+
static fromJson(jsonObject) {
|
|
7
|
+
if (jsonObject == null) return null;
|
|
8
|
+
|
|
9
|
+
const result = new SecurityObjectCertificates();
|
|
10
|
+
result.securityObject = CertificateData.fromJson(jsonObject["securityObject"]);
|
|
11
|
+
|
|
12
|
+
return result;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Authority } from './Authority';
|
|
2
|
+
import { RFIDValue } from './RFIDValue';
|
|
3
|
+
import { Extension } from './Extension';
|
|
4
|
+
import { CertificateChain } from './CertificateChain';
|
|
5
|
+
|
|
6
|
+
export class SignerInfo {
|
|
7
|
+
dataToHash
|
|
8
|
+
digestAlgorithm
|
|
9
|
+
paStatus
|
|
10
|
+
signatureAlgorithm
|
|
11
|
+
version
|
|
12
|
+
issuer
|
|
13
|
+
serialNumber
|
|
14
|
+
signature
|
|
15
|
+
signedAttributes
|
|
16
|
+
subjectKeyIdentifier
|
|
17
|
+
certificateChain
|
|
18
|
+
notifications
|
|
19
|
+
|
|
20
|
+
static fromJson(jsonObject) {
|
|
21
|
+
if (jsonObject == null) return null;
|
|
22
|
+
|
|
23
|
+
const result = new SignerInfo();
|
|
24
|
+
result.dataToHash = jsonObject["dataToHash"];
|
|
25
|
+
result.digestAlgorithm = jsonObject["digestAlgorithm"];
|
|
26
|
+
result.paStatus = jsonObject["paStatus"];
|
|
27
|
+
result.signatureAlgorithm = jsonObject["signatureAlgorithm"];
|
|
28
|
+
result.version = jsonObject["version"];
|
|
29
|
+
result.issuer = Authority.fromJson(jsonObject["issuer"]);
|
|
30
|
+
result.serialNumber = RFIDValue.fromJson(jsonObject["serialNumber"]);
|
|
31
|
+
result.signature = RFIDValue.fromJson(jsonObject["signature"]);
|
|
32
|
+
result.subjectKeyIdentifier = RFIDValue.fromJson(jsonObject["subjectKeyIdentifier"]);
|
|
33
|
+
result.notifications = jsonObject["notifications"];
|
|
34
|
+
|
|
35
|
+
if (jsonObject["signedAttributes"] != null) {
|
|
36
|
+
result.signedAttributes = [];
|
|
37
|
+
for (const item of jsonObject["signedAttributes"]) {
|
|
38
|
+
const extension = Extension.fromJson(item);
|
|
39
|
+
if (extension != null) {
|
|
40
|
+
result.signedAttributes.push(extension);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (jsonObject["certificateChain"] != null) {
|
|
46
|
+
result.certificateChain = [];
|
|
47
|
+
for (const item of jsonObject["certificateChain"]) {
|
|
48
|
+
const certificateChainItem = CertificateChain.fromJson(item);
|
|
49
|
+
if (certificateChainItem != null) {
|
|
50
|
+
result.certificateChain.push(certificateChainItem);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return result;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CheckResult } from './CheckResult';
|
|
2
|
+
|
|
3
|
+
export class OpticalStatus {
|
|
4
|
+
overallStatus
|
|
5
|
+
mrz
|
|
6
|
+
text
|
|
7
|
+
docType
|
|
8
|
+
security
|
|
9
|
+
imageQA
|
|
10
|
+
expiry
|
|
11
|
+
vds
|
|
12
|
+
pagesCount
|
|
13
|
+
|
|
14
|
+
static fromJson(jsonObject) {
|
|
15
|
+
if (jsonObject == null) return null;
|
|
16
|
+
|
|
17
|
+
const result = new OpticalStatus();
|
|
18
|
+
result.overallStatus = jsonObject["overallStatus"];
|
|
19
|
+
result.mrz = jsonObject["mrz"];
|
|
20
|
+
result.text = jsonObject["text"];
|
|
21
|
+
result.docType = jsonObject["docType"];
|
|
22
|
+
result.security = jsonObject["security"];
|
|
23
|
+
result.imageQA = jsonObject["imageQA"];
|
|
24
|
+
result.expiry = jsonObject["expiry"];
|
|
25
|
+
result.vds = jsonObject["vds"];
|
|
26
|
+
result.pagesCount = jsonObject["pagesCount"];
|
|
27
|
+
|
|
28
|
+
return result;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CheckResult } from './CheckResult';
|
|
2
|
+
|
|
3
|
+
export class RFIDStatus {
|
|
4
|
+
overallStatus
|
|
5
|
+
pa
|
|
6
|
+
ca
|
|
7
|
+
aa
|
|
8
|
+
ta
|
|
9
|
+
bac
|
|
10
|
+
pace
|
|
11
|
+
|
|
12
|
+
static fromJson(jsonObject) {
|
|
13
|
+
if (jsonObject == null) return null;
|
|
14
|
+
|
|
15
|
+
const result = new RFIDStatus();
|
|
16
|
+
result.pa = jsonObject["pa"];
|
|
17
|
+
result.ca = jsonObject["ca"];
|
|
18
|
+
result.aa = jsonObject["aa"];
|
|
19
|
+
result.ta = jsonObject["ta"];
|
|
20
|
+
result.bac = jsonObject["bac"];
|
|
21
|
+
result.pace = jsonObject["pace"];
|
|
22
|
+
result.overallStatus = jsonObject["overallStatus"];
|
|
23
|
+
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CheckResult } from './CheckResult';
|
|
2
|
+
import { OpticalStatus } from './OpticalStatus';
|
|
3
|
+
import { RFIDStatus } from './RFIDStatus';
|
|
4
|
+
|
|
5
|
+
export class ResultsStatus {
|
|
6
|
+
overallStatus
|
|
7
|
+
optical
|
|
8
|
+
detailsOptical
|
|
9
|
+
rfid
|
|
10
|
+
detailsRFID
|
|
11
|
+
portrait
|
|
12
|
+
stopList
|
|
13
|
+
|
|
14
|
+
static fromJson(jsonObject) {
|
|
15
|
+
if (jsonObject == null) return null;
|
|
16
|
+
|
|
17
|
+
const result = new ResultsStatus();
|
|
18
|
+
result.overallStatus = jsonObject["overallStatus"];
|
|
19
|
+
result.optical = jsonObject["optical"];
|
|
20
|
+
result.detailsOptical = OpticalStatus.fromJson(jsonObject["detailsOptical"]);
|
|
21
|
+
result.rfid = jsonObject["rfid"];
|
|
22
|
+
result.detailsRFID = RFIDStatus.fromJson(jsonObject["detailsRFID"]);
|
|
23
|
+
result.portrait = jsonObject["portrait"];
|
|
24
|
+
result.stopList = jsonObject["stopList"];
|
|
25
|
+
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class BytesData {
|
|
2
|
+
data
|
|
3
|
+
length
|
|
4
|
+
status
|
|
5
|
+
type
|
|
6
|
+
|
|
7
|
+
static fromJson(jsonObject) {
|
|
8
|
+
if (jsonObject == null) return null;
|
|
9
|
+
|
|
10
|
+
const result = new BytesData();
|
|
11
|
+
result.data = jsonObject["data"];
|
|
12
|
+
result.length = jsonObject["length"];
|
|
13
|
+
result.status = jsonObject["status"];
|
|
14
|
+
result.type = jsonObject["type"];
|
|
15
|
+
|
|
16
|
+
return result;
|
|
17
|
+
}
|
|
18
|
+
}
|