@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,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,92 @@
|
|
|
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
|
+
|
|
77
|
+
toJson() {
|
|
78
|
+
return {
|
|
79
|
+
"cardProperties": this.cardProperties?.toJson(),
|
|
80
|
+
"totalBytesReceived": this.totalBytesReceived,
|
|
81
|
+
"totalBytesSent": this.totalBytesSent,
|
|
82
|
+
"status": this.status,
|
|
83
|
+
"extLeSupport": this.extLeSupport,
|
|
84
|
+
"processTime": this.processTime,
|
|
85
|
+
"accessControls": this.accessControls?.map(e => e.toJson()),
|
|
86
|
+
"applications": this.applications?.map(e => e.toJson()),
|
|
87
|
+
"securityObjects": this.securityObjects?.map(e => e.toJson()),
|
|
88
|
+
"dataFields": this.dataFields?.map(e => e.toJson()),
|
|
89
|
+
"dataGroups": this.dataGroups,
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
|
|
17
|
+
toJson() {
|
|
18
|
+
return {
|
|
19
|
+
"notAfter": this.notAfter?.toJson(),
|
|
20
|
+
"notBefore": this.notBefore?.toJson(),
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
|
|
21
|
+
toJson() {
|
|
22
|
+
return {
|
|
23
|
+
"data": this.data,
|
|
24
|
+
"length": this.length,
|
|
25
|
+
"status": this.status,
|
|
26
|
+
"type": this.type,
|
|
27
|
+
"format": this.format,
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
|
|
32
|
+
toJson() {
|
|
33
|
+
return {
|
|
34
|
+
"fileReference": this.fileReference,
|
|
35
|
+
"objectType": this.objectType,
|
|
36
|
+
"version": this.version,
|
|
37
|
+
"signerInfos": this.signerInfos?.map(e => e.toJson()),
|
|
38
|
+
"notifications": this.notifications,
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
|
|
15
|
+
toJson() {
|
|
16
|
+
return {
|
|
17
|
+
"securityObject": this.securityObject?.toJson(),
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
|
|
58
|
+
toJson() {
|
|
59
|
+
return {
|
|
60
|
+
"dataToHash": this.dataToHash,
|
|
61
|
+
"digestAlgorithm": this.digestAlgorithm,
|
|
62
|
+
"version": this.version,
|
|
63
|
+
"paStatus": this.paStatus,
|
|
64
|
+
"signatureAlgorithm": this.signatureAlgorithm,
|
|
65
|
+
"issuer": this.issuer?.toJson(),
|
|
66
|
+
"serialNumber": this.serialNumber?.toJson(),
|
|
67
|
+
"signature": this.signature?.toJson(),
|
|
68
|
+
"subjectKeyIdentifier": this.subjectKeyIdentifier?.toJson(),
|
|
69
|
+
"signedAttributes": this.signedAttributes?.map(e => e.toJson()),
|
|
70
|
+
"certificateChain": this.certificateChain?.map(e => e.toJson()),
|
|
71
|
+
"notifications": this.notifications,
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
|
|
31
|
+
toJson() {
|
|
32
|
+
return {
|
|
33
|
+
"overallStatus": this.overallStatus,
|
|
34
|
+
"mrz": this.mrz,
|
|
35
|
+
"text": this.text,
|
|
36
|
+
"docType": this.docType,
|
|
37
|
+
"security": this.security,
|
|
38
|
+
"imageQA": this.imageQA,
|
|
39
|
+
"expiry": this.expiry,
|
|
40
|
+
"vds": this.vds,
|
|
41
|
+
"pagesCount": this.pagesCount,
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
|
|
27
|
+
toJson() {
|
|
28
|
+
return {
|
|
29
|
+
"overallStatus": this.overallStatus,
|
|
30
|
+
"pa": this.pa,
|
|
31
|
+
"ca": this.ca,
|
|
32
|
+
"aa": this.aa,
|
|
33
|
+
"ta": this.ta,
|
|
34
|
+
"bac": this.bac,
|
|
35
|
+
"pace": this.pace,
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
|
|
29
|
+
toJson() {
|
|
30
|
+
return {
|
|
31
|
+
"overallStatus": this.overallStatus,
|
|
32
|
+
"optical": this.optical,
|
|
33
|
+
"rfid": this.rfid,
|
|
34
|
+
"portrait": this.portrait,
|
|
35
|
+
"stopList": this.stopList,
|
|
36
|
+
"detailsOptical": this.detailsOptical?.toJson(),
|
|
37
|
+
"detailsRFID": this.detailsRFID?.toJson(),
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
|
|
19
|
+
toJson() {
|
|
20
|
+
return {
|
|
21
|
+
"data": this.data,
|
|
22
|
+
"length": this.length,
|
|
23
|
+
"status": this.status,
|
|
24
|
+
"type": this.type,
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|