@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,633 @@
|
|
|
1
|
+
import { exec } from '../../internal/bridge';
|
|
2
|
+
import { DocumentReader } from '../../index';
|
|
3
|
+
import { CustomizationColors } from './CustomizationColors';
|
|
4
|
+
import { CustomizationFonts } from './CustomizationFonts';
|
|
5
|
+
import { CustomizationImages } from './CustomizationImages';
|
|
6
|
+
import { Font } from './Font';
|
|
7
|
+
|
|
8
|
+
export class Customization {
|
|
9
|
+
get showStatusMessages() { return this._showStatusMessages; }
|
|
10
|
+
set showStatusMessages(val) {
|
|
11
|
+
this._showStatusMessages = val;
|
|
12
|
+
this._set({ "showStatusMessages": val });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get showResultStatusMessages() { return this._showResultStatusMessages; }
|
|
16
|
+
set showResultStatusMessages(val) {
|
|
17
|
+
this._showResultStatusMessages = val;
|
|
18
|
+
this._set({ "showResultStatusMessages": val });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get showHelpAnimation() { return this._showHelpAnimation; }
|
|
22
|
+
set showHelpAnimation(val) {
|
|
23
|
+
this._showHelpAnimation = val;
|
|
24
|
+
this._set({ "showHelpAnimation": val });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
get showNextPageAnimation() { return this._showNextPageAnimation; }
|
|
28
|
+
set showNextPageAnimation(val) {
|
|
29
|
+
this._showNextPageAnimation = val;
|
|
30
|
+
this._set({ "showNextPageAnimation": val });
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
get showBackgroundMask() { return this._showBackgroundMask; }
|
|
34
|
+
set showBackgroundMask(val) {
|
|
35
|
+
this._showBackgroundMask = val;
|
|
36
|
+
this._set({ "showBackgroundMask": val });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
get cameraFrameBorderWidth() { return this._cameraFrameBorderWidth; }
|
|
40
|
+
set cameraFrameBorderWidth(val) {
|
|
41
|
+
this._cameraFrameBorderWidth = val;
|
|
42
|
+
this._set({ "cameraFrameBorderWidth": val });
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
get cameraFrameLineLength() { return this._cameraFrameLineLength; }
|
|
46
|
+
set cameraFrameLineLength(val) {
|
|
47
|
+
this._cameraFrameLineLength = val;
|
|
48
|
+
this._set({ "cameraFrameLineLength": val });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
get cameraFrameOffsetWidth() { return this._cameraFrameOffsetWidth; }
|
|
52
|
+
set cameraFrameOffsetWidth(val) {
|
|
53
|
+
this._cameraFrameOffsetWidth = val;
|
|
54
|
+
this._set({ "cameraFrameOffsetWidth": val });
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
get cameraFrameShapeType() { return this._cameraFrameShapeType; }
|
|
58
|
+
set cameraFrameShapeType(val) {
|
|
59
|
+
this._cameraFrameShapeType = val;
|
|
60
|
+
this._set({ "cameraFrameShapeType": val });
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
get status() { return this._status; }
|
|
64
|
+
set status(val) {
|
|
65
|
+
this._status = val;
|
|
66
|
+
this._set({ "status": val });
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
get resultStatus() { return this._resultStatus; }
|
|
70
|
+
set resultStatus(val) {
|
|
71
|
+
this._resultStatus = val;
|
|
72
|
+
this._set({ "resultStatus": val });
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
get multipageButtonText() { return this._multipageButtonText; }
|
|
76
|
+
set multipageButtonText(val) {
|
|
77
|
+
this._multipageButtonText = val;
|
|
78
|
+
this._set({ "multipageButtonText": val });
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
get cameraFrameDefaultColor() { return this._cameraFrameDefaultColor; }
|
|
82
|
+
set cameraFrameDefaultColor(val) {
|
|
83
|
+
this._cameraFrameDefaultColor = val;
|
|
84
|
+
this._set({ "cameraFrameDefaultColor": val });
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
get cameraFrameActiveColor() { return this._cameraFrameActiveColor; }
|
|
88
|
+
set cameraFrameActiveColor(val) {
|
|
89
|
+
this._cameraFrameActiveColor = val;
|
|
90
|
+
this._set({ "cameraFrameActiveColor": val });
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
get statusTextColor() { return this._statusTextColor; }
|
|
94
|
+
set statusTextColor(val) {
|
|
95
|
+
this._statusTextColor = val;
|
|
96
|
+
this._set({ "statusTextColor": val });
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
get resultStatusTextColor() { return this._resultStatusTextColor; }
|
|
100
|
+
set resultStatusTextColor(val) {
|
|
101
|
+
this._resultStatusTextColor = val;
|
|
102
|
+
this._set({ "resultStatusTextColor": val });
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
get resultStatusBackgroundColor() { return this._resultStatusBackgroundColor; }
|
|
106
|
+
set resultStatusBackgroundColor(val) {
|
|
107
|
+
this._resultStatusBackgroundColor = val;
|
|
108
|
+
this._set({ "resultStatusBackgroundColor": val });
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
get multipageButtonBackgroundColor() { return this._multipageButtonBackgroundColor; }
|
|
112
|
+
set multipageButtonBackgroundColor(val) {
|
|
113
|
+
this._multipageButtonBackgroundColor = val;
|
|
114
|
+
this._set({ "multipageButtonBackgroundColor": val });
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
get tintColor() { return this._tintColor; }
|
|
118
|
+
set tintColor(val) {
|
|
119
|
+
this._tintColor = val;
|
|
120
|
+
this._set({ "tintColor": val });
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
get activityIndicatorColor() { return this._activityIndicatorColor; }
|
|
124
|
+
set activityIndicatorColor(val) {
|
|
125
|
+
this._activityIndicatorColor = val;
|
|
126
|
+
this._set({ "activityIndicatorColor": val });
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
get statusBackgroundColor() { return this._statusBackgroundColor; }
|
|
130
|
+
set statusBackgroundColor(val) {
|
|
131
|
+
this._statusBackgroundColor = val;
|
|
132
|
+
this._set({ "statusBackgroundColor": val });
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
get cameraPreviewBackgroundColor() { return this._cameraPreviewBackgroundColor; }
|
|
136
|
+
set cameraPreviewBackgroundColor(val) {
|
|
137
|
+
this._cameraPreviewBackgroundColor = val;
|
|
138
|
+
this._set({ "cameraPreviewBackgroundColor": val });
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
get backgroundMaskColor() { return this._backgroundMaskColor; }
|
|
142
|
+
set backgroundMaskColor(val) {
|
|
143
|
+
this._backgroundMaskColor = val;
|
|
144
|
+
this._set({ "backgroundMaskColor": val });
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
get multipageButtonTextColor() { return this._multipageButtonTextColor; }
|
|
148
|
+
set multipageButtonTextColor(val) {
|
|
149
|
+
this._multipageButtonTextColor = val;
|
|
150
|
+
this._set({ "multipageButtonTextColor": val });
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
get statusPositionMultiplier() { return this._statusPositionMultiplier; }
|
|
154
|
+
set statusPositionMultiplier(val) {
|
|
155
|
+
this._statusPositionMultiplier = val;
|
|
156
|
+
this._set({ "statusPositionMultiplier": val });
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
get resultStatusPositionMultiplier() { return this._resultStatusPositionMultiplier; }
|
|
160
|
+
set resultStatusPositionMultiplier(val) {
|
|
161
|
+
this._resultStatusPositionMultiplier = val;
|
|
162
|
+
this._set({ "resultStatusPositionMultiplier": val });
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
get toolbarSize() { return this._toolbarSize; }
|
|
166
|
+
set toolbarSize(val) {
|
|
167
|
+
this._toolbarSize = val;
|
|
168
|
+
this._set({ "toolbarSize": val });
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
get backgroundMaskAlpha() { return this._backgroundMaskAlpha; }
|
|
172
|
+
set backgroundMaskAlpha(val) {
|
|
173
|
+
this._backgroundMaskAlpha = val;
|
|
174
|
+
this._set({ "backgroundMaskAlpha": val });
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
get customStatusPositionMultiplier() { return this._customStatusPositionMultiplier; }
|
|
178
|
+
set customStatusPositionMultiplier(val) {
|
|
179
|
+
this._customStatusPositionMultiplier = val;
|
|
180
|
+
this._set({ "customStatusPositionMultiplier": val });
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
get cameraFrameVerticalPositionMultiplier() { return this._cameraFrameVerticalPositionMultiplier; }
|
|
184
|
+
set cameraFrameVerticalPositionMultiplier(val) {
|
|
185
|
+
this._cameraFrameVerticalPositionMultiplier = val;
|
|
186
|
+
this._set({ "cameraFrameVerticalPositionMultiplier": val });
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
get cameraFrameLandscapeAspectRatio() { return this._cameraFrameLandscapeAspectRatio; }
|
|
190
|
+
set cameraFrameLandscapeAspectRatio(val) {
|
|
191
|
+
this._cameraFrameLandscapeAspectRatio = val;
|
|
192
|
+
this._set({ "cameraFrameLandscapeAspectRatio": val });
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
get cameraFramePortraitAspectRatio() { return this._cameraFramePortraitAspectRatio; }
|
|
196
|
+
set cameraFramePortraitAspectRatio(val) {
|
|
197
|
+
this._cameraFramePortraitAspectRatio = val;
|
|
198
|
+
this._set({ "cameraFramePortraitAspectRatio": val });
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
get cameraFrameCornerRadius() { return this._cameraFrameCornerRadius; }
|
|
202
|
+
set cameraFrameCornerRadius(val) {
|
|
203
|
+
this._cameraFrameCornerRadius = val;
|
|
204
|
+
this._set({ "cameraFrameCornerRadius": val });
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
get livenessAnimationPositionMultiplier() { return this._livenessAnimationPositionMultiplier; }
|
|
208
|
+
set livenessAnimationPositionMultiplier(val) {
|
|
209
|
+
this._livenessAnimationPositionMultiplier = val;
|
|
210
|
+
this._set({ "livenessAnimationPositionMultiplier": val });
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
get nextPageAnimationStartDelay() { return this._nextPageAnimationStartDelay; }
|
|
214
|
+
set nextPageAnimationStartDelay(val) {
|
|
215
|
+
this._nextPageAnimationStartDelay = val;
|
|
216
|
+
this._set({ "nextPageAnimationStartDelay": val });
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
get nextPageAnimationEndDelay() { return this._nextPageAnimationEndDelay; }
|
|
220
|
+
set nextPageAnimationEndDelay(val) {
|
|
221
|
+
this._nextPageAnimationEndDelay = val;
|
|
222
|
+
this._set({ "nextPageAnimationEndDelay": val });
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
get activityIndicatorPortraitPositionMultiplier() { return this._activityIndicatorPortraitPositionMultiplier; }
|
|
226
|
+
set activityIndicatorPortraitPositionMultiplier(val) {
|
|
227
|
+
this._activityIndicatorPortraitPositionMultiplier = val;
|
|
228
|
+
this._set({ "activityIndicatorPortraitPositionMultiplier": val });
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
get activityIndicatorLandscapePositionMultiplier() { return this._activityIndicatorLandscapePositionMultiplier; }
|
|
232
|
+
set activityIndicatorLandscapePositionMultiplier(val) {
|
|
233
|
+
this._activityIndicatorLandscapePositionMultiplier = val;
|
|
234
|
+
this._set({ "activityIndicatorLandscapePositionMultiplier": val });
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
get cameraPreviewVerticalPositionMultiplier() { return this._cameraPreviewVerticalPositionMultiplier; }
|
|
238
|
+
set cameraPreviewVerticalPositionMultiplier(val) {
|
|
239
|
+
this._cameraPreviewVerticalPositionMultiplier = val;
|
|
240
|
+
this._set({ "cameraPreviewVerticalPositionMultiplier": val });
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
get multipageAnimationFrontImage() { return this._multipageAnimationFrontImage; }
|
|
244
|
+
set multipageAnimationFrontImage(val) {
|
|
245
|
+
this._multipageAnimationFrontImage = val;
|
|
246
|
+
this._set({ "multipageAnimationFrontImage": val });
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
get multipageAnimationBackImage() { return this._multipageAnimationBackImage; }
|
|
250
|
+
set multipageAnimationBackImage(val) {
|
|
251
|
+
this._multipageAnimationBackImage = val;
|
|
252
|
+
this._set({ "multipageAnimationBackImage": val });
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
get borderBackgroundImage() { return this._borderBackgroundImage; }
|
|
256
|
+
set borderBackgroundImage(val) {
|
|
257
|
+
this._borderBackgroundImage = val;
|
|
258
|
+
this._set({ "borderBackgroundImage": val });
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
get helpAnimationImage() { return this._helpAnimationImage; }
|
|
262
|
+
set helpAnimationImage(val) {
|
|
263
|
+
this._helpAnimationImage = val;
|
|
264
|
+
this._set({ "helpAnimationImage": val });
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
get closeButtonImage() { return this._closeButtonImage; }
|
|
268
|
+
set closeButtonImage(val) {
|
|
269
|
+
this._closeButtonImage = val;
|
|
270
|
+
this._set({ "closeButtonImage": val });
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
get captureButtonImage() { return this._captureButtonImage; }
|
|
274
|
+
set captureButtonImage(val) {
|
|
275
|
+
this._captureButtonImage = val;
|
|
276
|
+
this._set({ "captureButtonImage": val });
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
get cameraSwitchButtonImage() { return this._cameraSwitchButtonImage; }
|
|
280
|
+
set cameraSwitchButtonImage(val) {
|
|
281
|
+
this._cameraSwitchButtonImage = val;
|
|
282
|
+
this._set({ "cameraSwitchButtonImage": val });
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
get torchButtonOnImage() { return this._torchButtonOnImage; }
|
|
286
|
+
set torchButtonOnImage(val) {
|
|
287
|
+
this._torchButtonOnImage = val;
|
|
288
|
+
this._set({ "torchButtonOnImage": val });
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
get torchButtonOffImage() { return this._torchButtonOffImage; }
|
|
292
|
+
set torchButtonOffImage(val) {
|
|
293
|
+
this._torchButtonOffImage = val;
|
|
294
|
+
this._set({ "torchButtonOffImage": val });
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
get changeFrameButtonExpandImage() { return this._changeFrameButtonExpandImage; }
|
|
298
|
+
set changeFrameButtonExpandImage(val) {
|
|
299
|
+
this._changeFrameButtonExpandImage = val;
|
|
300
|
+
this._set({ "changeFrameButtonExpandImage": val });
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
get changeFrameButtonCollapseImage() { return this._changeFrameButtonCollapseImage; }
|
|
304
|
+
set changeFrameButtonCollapseImage(val) {
|
|
305
|
+
this._changeFrameButtonCollapseImage = val;
|
|
306
|
+
this._set({ "changeFrameButtonCollapseImage": val });
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
get livenessAnimationImage() { return this._livenessAnimationImage; }
|
|
310
|
+
set livenessAnimationImage(val) {
|
|
311
|
+
this._livenessAnimationImage = val;
|
|
312
|
+
this._set({ "livenessAnimationImage": val });
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
get multipageButtonImage() { return this._multipageButtonImage; }
|
|
316
|
+
set multipageButtonImage(val) {
|
|
317
|
+
this._multipageButtonImage = val;
|
|
318
|
+
this._set({ "multipageButtonImage": val });
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
get statusTextFont() { return this._statusTextFont; }
|
|
322
|
+
set statusTextFont(val) {
|
|
323
|
+
this._statusTextFont = val;
|
|
324
|
+
this._set({ "statusTextFont": val });
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
get resultStatusTextFont() { return this._resultStatusTextFont; }
|
|
328
|
+
set resultStatusTextFont(val) {
|
|
329
|
+
this._resultStatusTextFont = val;
|
|
330
|
+
this._set({ "resultStatusTextFont": val });
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
get multipageButtonTextFont() { return this._multipageButtonTextFont; }
|
|
334
|
+
set multipageButtonTextFont(val) {
|
|
335
|
+
this._multipageButtonTextFont = val;
|
|
336
|
+
this._set({ "multipageButtonTextFont": val });
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
get customLabelStatus() { return this._customLabelStatus; }
|
|
340
|
+
set customLabelStatus(val) {
|
|
341
|
+
this._customLabelStatus = val;
|
|
342
|
+
this._set({ "customLabelStatus": val });
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
get cameraFrameLineCap() { return this._cameraFrameLineCap; }
|
|
346
|
+
set cameraFrameLineCap(val) {
|
|
347
|
+
this._cameraFrameLineCap = val;
|
|
348
|
+
this._set({ "cameraFrameLineCap": val });
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
get uiCustomizationLayer() { return this._uiCustomizationLayer; }
|
|
352
|
+
set uiCustomizationLayer(val) {
|
|
353
|
+
this._uiCustomizationLayer = val;
|
|
354
|
+
this._set({ "uiCustomizationLayer": val });
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
get helpAnimationImageTransformsIOS() { return this._helpAnimationImageTransformsIOS; }
|
|
358
|
+
set helpAnimationImageTransformsIOS(val) {
|
|
359
|
+
this._helpAnimationImageTransformsIOS = val;
|
|
360
|
+
this._set({ "helpAnimationImageContentMode": val });
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
get multipageAnimationFrontImageTransformsIOS() { return this._multipageAnimationFrontImageTransformsIOS; }
|
|
364
|
+
set multipageAnimationFrontImageTransformsIOS(val) {
|
|
365
|
+
this._multipageAnimationFrontImageTransformsIOS = val;
|
|
366
|
+
this._set({ "multipageAnimationFrontImageContentMode": val });
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
get multipageAnimationBackImageTransformsIOS() { return this._multipageAnimationBackImageTransformsIOS; }
|
|
370
|
+
set multipageAnimationBackImageTransformsIOS(val) {
|
|
371
|
+
this._multipageAnimationBackImageTransformsIOS = val;
|
|
372
|
+
this._set({ "multipageAnimationBackImageContentMode": val });
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
get livenessAnimationImageTransformsIOS() { return this._livenessAnimationImageTransformsIOS; }
|
|
376
|
+
set livenessAnimationImageTransformsIOS(val) {
|
|
377
|
+
this._livenessAnimationImageTransformsIOS = val;
|
|
378
|
+
this._set({ "livenessAnimationImageContentMode": val });
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
get borderBackgroundImageTransformsIOS() { return this._borderBackgroundImageTransformsIOS; }
|
|
382
|
+
set borderBackgroundImageTransformsIOS(val) {
|
|
383
|
+
this._borderBackgroundImageTransformsIOS = val;
|
|
384
|
+
this._set({ "borderBackgroundImageContentMode": val });
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
get helpAnimationImageTransformsAndroid() { return this._helpAnimationImageTransformsAndroid; }
|
|
388
|
+
set helpAnimationImageTransformsAndroid(val) {
|
|
389
|
+
this._helpAnimationImageTransformsAndroid = val;
|
|
390
|
+
this._set({ "helpAnimationImageMatrix": val });
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
get multipageAnimationFrontImageTransformsAndroid() { return this._multipageAnimationFrontImageTransformsAndroid; }
|
|
394
|
+
set multipageAnimationFrontImageTransformsAndroid(val) {
|
|
395
|
+
this._multipageAnimationFrontImageTransformsAndroid = val;
|
|
396
|
+
this._set({ "multipageAnimationFrontImageMatrix": val });
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
get multipageAnimationBackImageTransformsAndroid() { return this._multipageAnimationBackImageTransformsAndroid; }
|
|
400
|
+
set multipageAnimationBackImageTransformsAndroid(val) {
|
|
401
|
+
this._multipageAnimationBackImageTransformsAndroid = val;
|
|
402
|
+
this._set({ "multipageAnimationBackImageMatrix": val });
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
get livenessAnimationImageTransformsAndroid() { return this._livenessAnimationImageTransformsAndroid; }
|
|
406
|
+
set livenessAnimationImageTransformsAndroid(val) {
|
|
407
|
+
this._livenessAnimationImageTransformsAndroid = val;
|
|
408
|
+
this._set({ "livenessAnimationImageMatrix": val });
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
get borderBackgroundImageTransformsAndroid() { return this._borderBackgroundImageTransformsAndroid; }
|
|
412
|
+
set borderBackgroundImageTransformsAndroid(val) {
|
|
413
|
+
this._borderBackgroundImageTransformsAndroid = val;
|
|
414
|
+
this._set({ "borderBackgroundImageMatrix": val });
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
get colors() { return this._colors; }
|
|
418
|
+
set colors(val) {
|
|
419
|
+
this._colors = val;
|
|
420
|
+
val._apply(this);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
get fonts() { return this._fonts; }
|
|
424
|
+
set fonts(val) {
|
|
425
|
+
this._fonts = val;
|
|
426
|
+
val._apply(this);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
get images() { return this._images; }
|
|
430
|
+
set images(val) {
|
|
431
|
+
this._images = val;
|
|
432
|
+
val._apply(this);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
static fromJson(jsonObject) {
|
|
436
|
+
if (jsonObject == null) return null;
|
|
437
|
+
|
|
438
|
+
const result = new Customization();
|
|
439
|
+
|
|
440
|
+
result._showStatusMessages = jsonObject["showStatusMessages"];
|
|
441
|
+
result._showResultStatusMessages = jsonObject["showResultStatusMessages"];
|
|
442
|
+
result._showHelpAnimation = jsonObject["showHelpAnimation"];
|
|
443
|
+
result._showNextPageAnimation = jsonObject["showNextPageAnimation"];
|
|
444
|
+
result._showBackgroundMask = jsonObject["showBackgroundMask"];
|
|
445
|
+
result._cameraFrameBorderWidth = jsonObject["cameraFrameBorderWidth"];
|
|
446
|
+
result._cameraFrameLineLength = jsonObject["cameraFrameLineLength"];
|
|
447
|
+
result._cameraFrameShapeType = jsonObject["cameraFrameShapeType"];
|
|
448
|
+
result._cameraFrameOffsetWidth = jsonObject["cameraFrameOffsetWidth"];
|
|
449
|
+
result._status = jsonObject["status"];
|
|
450
|
+
result._resultStatus = jsonObject["resultStatus"];
|
|
451
|
+
result._multipageButtonText = jsonObject["multipageButtonText"];
|
|
452
|
+
result._cameraFrameDefaultColor = jsonObject["cameraFrameDefaultColor"];
|
|
453
|
+
result._cameraFrameActiveColor = jsonObject["cameraFrameActiveColor"];
|
|
454
|
+
result._statusTextColor = jsonObject["statusTextColor"];
|
|
455
|
+
result._resultStatusTextColor = jsonObject["resultStatusTextColor"];
|
|
456
|
+
result._resultStatusBackgroundColor = jsonObject["resultStatusBackgroundColor"];
|
|
457
|
+
result._multipageButtonBackgroundColor = jsonObject["multipageButtonBackgroundColor"];
|
|
458
|
+
result._tintColor = jsonObject["tintColor"];
|
|
459
|
+
result._activityIndicatorColor = jsonObject["activityIndicatorColor"];
|
|
460
|
+
result._statusBackgroundColor = jsonObject["statusBackgroundColor"];
|
|
461
|
+
result._cameraPreviewBackgroundColor = jsonObject["cameraPreviewBackgroundColor"];
|
|
462
|
+
result._backgroundMaskColor = jsonObject["backgroundMaskColor"];
|
|
463
|
+
result._multipageButtonTextColor = jsonObject["multipageButtonTextColor"];
|
|
464
|
+
result._statusPositionMultiplier = jsonObject["statusPositionMultiplier"];
|
|
465
|
+
result._resultStatusPositionMultiplier = jsonObject["resultStatusPositionMultiplier"];
|
|
466
|
+
result._toolbarSize = jsonObject["toolbarSize"];
|
|
467
|
+
result._backgroundMaskAlpha = jsonObject["backgroundMaskAlpha"];
|
|
468
|
+
result._customStatusPositionMultiplier = jsonObject["customStatusPositionMultiplier"];
|
|
469
|
+
result._cameraFrameVerticalPositionMultiplier = jsonObject["cameraFrameVerticalPositionMultiplier"];
|
|
470
|
+
result._cameraFrameLandscapeAspectRatio = jsonObject["cameraFrameLandscapeAspectRatio"];
|
|
471
|
+
result._cameraFrameCornerRadius = jsonObject["cameraFrameCornerRadius"];
|
|
472
|
+
result._cameraFramePortraitAspectRatio = jsonObject["cameraFramePortraitAspectRatio"];
|
|
473
|
+
result._livenessAnimationPositionMultiplier = jsonObject["livenessAnimationPositionMultiplier"];
|
|
474
|
+
result._nextPageAnimationStartDelay = jsonObject["nextPageAnimationStartDelay"];
|
|
475
|
+
result._nextPageAnimationEndDelay = jsonObject["nextPageAnimationEndDelay"];
|
|
476
|
+
result._activityIndicatorPortraitPositionMultiplier = jsonObject["activityIndicatorPortraitPositionMultiplier"];
|
|
477
|
+
result._activityIndicatorLandscapePositionMultiplier = jsonObject["activityIndicatorLandscapePositionMultiplier"];
|
|
478
|
+
result._cameraPreviewVerticalPositionMultiplier = jsonObject["cameraPreviewVerticalPositionMultiplier"];
|
|
479
|
+
result._multipageAnimationFrontImage = jsonObject["multipageAnimationFrontImage"];
|
|
480
|
+
result._multipageAnimationBackImage = jsonObject["multipageAnimationBackImage"];
|
|
481
|
+
result._borderBackgroundImage = jsonObject["borderBackgroundImage"];
|
|
482
|
+
result._helpAnimationImage = jsonObject["helpAnimationImage"];
|
|
483
|
+
result._closeButtonImage = jsonObject["closeButtonImage"];
|
|
484
|
+
result._captureButtonImage = jsonObject["captureButtonImage"];
|
|
485
|
+
result._cameraSwitchButtonImage = jsonObject["cameraSwitchButtonImage"];
|
|
486
|
+
result._torchButtonOnImage = jsonObject["torchButtonOnImage"];
|
|
487
|
+
result._torchButtonOffImage = jsonObject["torchButtonOffImage"];
|
|
488
|
+
result._changeFrameButtonExpandImage = jsonObject["changeFrameButtonExpandImage"];
|
|
489
|
+
result._changeFrameButtonCollapseImage = jsonObject["changeFrameButtonCollapseImage"];
|
|
490
|
+
result._livenessAnimationImage = jsonObject["livenessAnimationImage"];
|
|
491
|
+
result._multipageButtonImage = jsonObject["multipageButtonImage"];
|
|
492
|
+
result._customLabelStatus = jsonObject["customLabelStatus"];
|
|
493
|
+
result._cameraFrameLineCap = jsonObject["cameraFrameLineCap"];
|
|
494
|
+
result._uiCustomizationLayer = jsonObject["uiCustomizationLayer"];
|
|
495
|
+
result._statusTextFont = Font.fromJson(jsonObject["statusTextFont"]);
|
|
496
|
+
result._resultStatusTextFont = Font.fromJson(jsonObject["resultStatusTextFont"]);
|
|
497
|
+
result._multipageButtonTextFont = Font.fromJson(jsonObject["multipageButtonTextFont"]);
|
|
498
|
+
result._helpAnimationImageTransformsIOS = jsonObject["helpAnimationImageContentMode"];
|
|
499
|
+
result._multipageAnimationFrontImageTransformsIOS = jsonObject["multipageAnimationFrontImageContentMode"];
|
|
500
|
+
result._multipageAnimationBackImageTransformsIOS = jsonObject["multipageAnimationBackImageContentMode"];
|
|
501
|
+
result._livenessAnimationImageTransformsIOS = jsonObject["livenessAnimationImageContentMode"];
|
|
502
|
+
result._borderBackgroundImageTransformsIOS = jsonObject["borderBackgroundImageContentMode"];
|
|
503
|
+
result._helpAnimationImageTransformsAndroid = jsonObject["helpAnimationImageMatrix"];
|
|
504
|
+
result._multipageAnimationFrontImageTransformsAndroid = jsonObject["multipageAnimationFrontImageMatrix"];
|
|
505
|
+
result._multipageAnimationBackImageTransformsAndroid = jsonObject["multipageAnimationBackImageMatrix"];
|
|
506
|
+
result._livenessAnimationImageTransformsAndroid = jsonObject["livenessAnimationImageMatrix"];
|
|
507
|
+
result._borderBackgroundImageTransformsAndroid = jsonObject["borderBackgroundImageMatrix"];
|
|
508
|
+
|
|
509
|
+
result._colors = CustomizationColors.fromJson(jsonObject["colors"]);
|
|
510
|
+
result._fonts = CustomizationFonts.fromJson(jsonObject["fonts"]);
|
|
511
|
+
result._images = CustomizationImages.fromJson(jsonObject["images"]);
|
|
512
|
+
|
|
513
|
+
return result;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
toJson() {
|
|
517
|
+
return {
|
|
518
|
+
"showStatusMessages": this.showStatusMessages,
|
|
519
|
+
"showResultStatusMessages": this.showResultStatusMessages,
|
|
520
|
+
"showHelpAnimation": this.showHelpAnimation,
|
|
521
|
+
"showNextPageAnimation": this.showNextPageAnimation,
|
|
522
|
+
"showBackgroundMask": this.showBackgroundMask,
|
|
523
|
+
"cameraFrameBorderWidth": this.cameraFrameBorderWidth,
|
|
524
|
+
"cameraFrameLineLength": this.cameraFrameLineLength,
|
|
525
|
+
"cameraFrameShapeType": this.cameraFrameShapeType,
|
|
526
|
+
"cameraFrameOffsetWidth": this.cameraFrameOffsetWidth,
|
|
527
|
+
"status": this.status,
|
|
528
|
+
"resultStatus": this.resultStatus,
|
|
529
|
+
"multipageButtonText": this.multipageButtonText,
|
|
530
|
+
"cameraFrameDefaultColor": this.cameraFrameDefaultColor,
|
|
531
|
+
"cameraFrameActiveColor": this.cameraFrameActiveColor,
|
|
532
|
+
"statusTextColor": this.statusTextColor,
|
|
533
|
+
"resultStatusTextColor": this.resultStatusTextColor,
|
|
534
|
+
"resultStatusBackgroundColor": this.resultStatusBackgroundColor,
|
|
535
|
+
"multipageButtonBackgroundColor": this.multipageButtonBackgroundColor,
|
|
536
|
+
"tintColor": this.tintColor,
|
|
537
|
+
"activityIndicatorColor": this.activityIndicatorColor,
|
|
538
|
+
"statusBackgroundColor": this.statusBackgroundColor,
|
|
539
|
+
"cameraPreviewBackgroundColor": this.cameraPreviewBackgroundColor,
|
|
540
|
+
"backgroundMaskColor": this.backgroundMaskColor,
|
|
541
|
+
"multipageButtonTextColor": this.multipageButtonTextColor,
|
|
542
|
+
"statusPositionMultiplier": this.statusPositionMultiplier,
|
|
543
|
+
"resultStatusPositionMultiplier": this.resultStatusPositionMultiplier,
|
|
544
|
+
"toolbarSize": this.toolbarSize,
|
|
545
|
+
"backgroundMaskAlpha": this.backgroundMaskAlpha,
|
|
546
|
+
"customStatusPositionMultiplier": this.customStatusPositionMultiplier,
|
|
547
|
+
"cameraFrameVerticalPositionMultiplier": this.cameraFrameVerticalPositionMultiplier,
|
|
548
|
+
"cameraFrameLandscapeAspectRatio": this.cameraFrameLandscapeAspectRatio,
|
|
549
|
+
"cameraFramePortraitAspectRatio": this.cameraFramePortraitAspectRatio,
|
|
550
|
+
"cameraFrameCornerRadius": this.cameraFrameCornerRadius,
|
|
551
|
+
"livenessAnimationPositionMultiplier": this.livenessAnimationPositionMultiplier,
|
|
552
|
+
"nextPageAnimationStartDelay": this.nextPageAnimationStartDelay,
|
|
553
|
+
"nextPageAnimationEndDelay": this.nextPageAnimationEndDelay,
|
|
554
|
+
"activityIndicatorPortraitPositionMultiplier": this.activityIndicatorPortraitPositionMultiplier,
|
|
555
|
+
"activityIndicatorLandscapePositionMultiplier": this.activityIndicatorLandscapePositionMultiplier,
|
|
556
|
+
"cameraPreviewVerticalPositionMultiplier": this.cameraPreviewVerticalPositionMultiplier,
|
|
557
|
+
"multipageAnimationFrontImage": this.multipageAnimationFrontImage,
|
|
558
|
+
"multipageAnimationBackImage": this.multipageAnimationBackImage,
|
|
559
|
+
"borderBackgroundImage": this.borderBackgroundImage,
|
|
560
|
+
"helpAnimationImage": this.helpAnimationImage,
|
|
561
|
+
"closeButtonImage": this.closeButtonImage,
|
|
562
|
+
"captureButtonImage": this.captureButtonImage,
|
|
563
|
+
"cameraSwitchButtonImage": this.cameraSwitchButtonImage,
|
|
564
|
+
"torchButtonOnImage": this.torchButtonOnImage,
|
|
565
|
+
"torchButtonOffImage": this.torchButtonOffImage,
|
|
566
|
+
"changeFrameButtonExpandImage": this.changeFrameButtonExpandImage,
|
|
567
|
+
"changeFrameButtonCollapseImage": this.changeFrameButtonCollapseImage,
|
|
568
|
+
"livenessAnimationImage": this.livenessAnimationImage,
|
|
569
|
+
"multipageButtonImage": this.multipageButtonImage,
|
|
570
|
+
"customLabelStatus": this.customLabelStatus,
|
|
571
|
+
"cameraFrameLineCap": this.cameraFrameLineCap,
|
|
572
|
+
"uiCustomizationLayer": this.uiCustomizationLayer,
|
|
573
|
+
"statusTextFont": this.statusTextFont?.toJson(),
|
|
574
|
+
"resultStatusTextFont": this.resultStatusTextFont?.toJson(),
|
|
575
|
+
"multipageButtonTextFont": this.multipageButtonTextFont?.toJson(),
|
|
576
|
+
"helpAnimationImageContentMode": this.helpAnimationImageTransformsIOS,
|
|
577
|
+
"multipageAnimationFrontImageContentMode": this.multipageAnimationFrontImageTransformsIOS,
|
|
578
|
+
"multipageAnimationBackImageContentMode": this.multipageAnimationBackImageTransformsIOS,
|
|
579
|
+
"livenessAnimationImageContentMode": this.livenessAnimationImageTransformsIOS,
|
|
580
|
+
"borderBackgroundImageContentMode": this.borderBackgroundImageTransformsIOS,
|
|
581
|
+
"helpAnimationImageMatrix": this.helpAnimationImageTransformsAndroid,
|
|
582
|
+
"multipageAnimationFrontImageMatrix": this.multipageAnimationFrontImageTransformsAndroid,
|
|
583
|
+
"multipageAnimationBackImageMatrix": this.multipageAnimationBackImageTransformsAndroid,
|
|
584
|
+
"livenessAnimationImageMatrix": this.livenessAnimationImageTransformsAndroid,
|
|
585
|
+
"borderBackgroundImageMatrix": this.borderBackgroundImageTransformsAndroid,
|
|
586
|
+
"colors": this.colors?.toJson(),
|
|
587
|
+
"fonts": this.fonts?.toJson(),
|
|
588
|
+
"images": this.images?.toJson(),
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
_apply() { this._set(this); }
|
|
593
|
+
_set(json) {
|
|
594
|
+
if (this === DocumentReader.instance.customization)
|
|
595
|
+
exec("setCustomization", [json]);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
export const Cap = {
|
|
600
|
+
BUTT: 0,
|
|
601
|
+
ROUND: 1,
|
|
602
|
+
SQUARE: 2
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
export const FrameShapeType = {
|
|
606
|
+
LINE: 0,
|
|
607
|
+
CORNER: 1
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
export const ViewContentMode = {
|
|
611
|
+
SCALE_TO_FILL: 0,
|
|
612
|
+
SCALE_ASPECT_FIT: 1,
|
|
613
|
+
SCALE_ASPECT_FILL: 2,
|
|
614
|
+
REDRAW: 3,
|
|
615
|
+
CENTER: 4,
|
|
616
|
+
TOP: 5,
|
|
617
|
+
BOTTOM: 6,
|
|
618
|
+
LEFT: 7,
|
|
619
|
+
RIGHT: 8,
|
|
620
|
+
TOP_LEFT: 9,
|
|
621
|
+
TOP_RIGHT: 10,
|
|
622
|
+
BOTTOM_LEFT: 11,
|
|
623
|
+
BOTTOM_RIGHT: 12
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
export const CustomButtonTag = {
|
|
627
|
+
CLOSE: 1001,
|
|
628
|
+
TORCH: 1002,
|
|
629
|
+
CAPTURE: 1003,
|
|
630
|
+
CHANGE_FRAME: 1004,
|
|
631
|
+
SKIP: 1005,
|
|
632
|
+
CAMERA_SWITCH: 1006
|
|
633
|
+
};
|