react-native-scanbot-barcode-scanner-sdk 7.1.2-rc.2 → 8.0.0-rc.1
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/LICENSE +1 -1
- package/Libraries.txt +437 -17
- package/README.md +32 -34
- package/RNScanbotBarcodeSDK.podspec +3 -2
- package/android/gradle.properties +3 -3
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule.kt +117 -69
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkPluginResultDelegate.kt +3 -2
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/ScanbotBarcodeScannerView.kt +76 -50
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/ScanbotBarcodeScannerViewEvents.kt +24 -1
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/ScanbotBarcodeScannerViewManager.kt +66 -55
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/models/ScanbotBarcodeScannerModels.kt +1 -1
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/extensions/Extensions.kt +19 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerLegacyView.h +8 -7
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerLegacyView.m +92 -221
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerView.h +12 -8
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerView.mm +147 -317
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewController+Utils.swift +74 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewController.swift +429 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewManager.mm +17 -23
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewOperators.h +95 -0
- package/ios/ScanbotBarcodeSdk.m +58 -76
- package/ios/ScanbotBarcodeSdkPluginResultDelegate.m +2 -6
- package/lib/commonjs/Barcode.js +51 -0
- package/lib/commonjs/Barcode.js.map +1 -0
- package/lib/commonjs/ImageProcessor.js +24 -0
- package/lib/commonjs/ImageProcessor.js.map +1 -0
- package/lib/commonjs/Sdk.js +57 -0
- package/lib/commonjs/Sdk.js.map +1 -0
- package/lib/commonjs/{component → components}/barcode-camera-view/ScanbotBarcodeCameraView.js +14 -9
- package/lib/commonjs/components/barcode-camera-view/ScanbotBarcodeCameraView.js.map +1 -0
- package/lib/commonjs/components/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js.map +1 -0
- package/lib/commonjs/components/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js.map +1 -0
- package/lib/commonjs/{component/barcode-camera-view → components}/index.js +3 -3
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/components/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +1 -0
- package/lib/commonjs/impl/BarcodeScannerImpl.js +59 -0
- package/lib/commonjs/impl/BarcodeScannerImpl.js.map +1 -0
- package/lib/commonjs/impl/ImageProcessorImpl.js +20 -0
- package/lib/commonjs/impl/ImageProcessorImpl.js.map +1 -0
- package/lib/commonjs/impl/SdkImpl.js +27 -0
- package/lib/commonjs/impl/SdkImpl.js.map +1 -0
- package/lib/commonjs/impl/index.js +39 -0
- package/lib/commonjs/impl/index.js.map +1 -0
- package/lib/commonjs/impl/scanbotBarcodeSDKModule.js +22 -0
- package/lib/commonjs/impl/scanbotBarcodeSDKModule.js.map +1 -0
- package/lib/commonjs/index.js +18 -162
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types/base/SdkConfiguration.js +106 -0
- package/lib/commonjs/types/base/SdkConfiguration.js.map +1 -0
- package/lib/commonjs/{base/barcodeSDKConfigurations.js → types/base/customTypes.js} +1 -1
- package/lib/commonjs/types/base/customTypes.js.map +1 -0
- package/lib/commonjs/types/base/errors.js +139 -0
- package/lib/commonjs/types/base/errors.js.map +1 -0
- package/lib/commonjs/types/base/index.js +50 -0
- package/lib/commonjs/types/base/index.js.map +1 -0
- package/lib/commonjs/types/base/utils.js +59 -0
- package/lib/commonjs/types/base/utils.js.map +1 -0
- package/lib/commonjs/{barcode → types/core/barcode}/BarcodeConfigurationTypes.js +244 -74
- package/lib/commonjs/types/core/barcode/BarcodeConfigurationTypes.js.map +1 -0
- package/lib/commonjs/{barcode → types/core/barcode}/BarcodeDocumentTypes.js +62 -10
- package/lib/commonjs/types/core/barcode/BarcodeDocumentTypes.js.map +1 -0
- package/lib/commonjs/{barcode → types/core/barcode}/BarcodeScannerTypes.js +39 -28
- package/lib/commonjs/types/core/barcode/BarcodeScannerTypes.js.map +1 -0
- package/lib/commonjs/{barcode → types/core/barcode}/BarcodeTypes.js +31 -12
- package/lib/commonjs/types/core/barcode/BarcodeTypes.js.map +1 -0
- package/lib/commonjs/types/core/barcode/index.js.map +1 -0
- package/lib/commonjs/types/core/camera/Camera.js +23 -0
- package/lib/commonjs/types/core/camera/Camera.js.map +1 -0
- package/lib/commonjs/types/core/camera/index.js +17 -0
- package/lib/commonjs/types/core/camera/index.js.map +1 -0
- package/lib/commonjs/types/core/common/CommonTypes.js +29 -0
- package/lib/commonjs/types/core/common/CommonTypes.js.map +1 -0
- package/lib/commonjs/{utils/json → types/core/common}/JsonSerializationTypes.js +2 -3
- package/lib/commonjs/types/core/common/JsonSerializationTypes.js.map +1 -0
- package/lib/commonjs/types/core/common/index.js +28 -0
- package/lib/commonjs/types/core/common/index.js.map +1 -0
- package/lib/commonjs/{documents → types/core/generic_document}/BarcodeDocumentModel.js +1131 -160
- package/lib/commonjs/types/core/generic_document/BarcodeDocumentModel.js.map +1 -0
- package/lib/commonjs/{documents → types/core/generic_document}/CommonFieldType.js +6 -3
- package/lib/commonjs/types/core/generic_document/CommonFieldType.js.map +1 -0
- package/lib/commonjs/{documents → types/core/generic_document}/GenericDocument.js +13 -18
- package/lib/commonjs/types/core/generic_document/GenericDocument.js.map +1 -0
- package/lib/commonjs/types/core/generic_document/index.js.map +1 -0
- package/lib/commonjs/{utils → types/core}/geometry/Geometry.js +4 -8
- package/lib/commonjs/types/core/geometry/Geometry.js.map +1 -0
- package/lib/commonjs/types/core/geometry/index.js +17 -0
- package/lib/commonjs/types/core/geometry/index.js.map +1 -0
- package/lib/commonjs/{imageRef → types/core/image}/ImageRefTypes.js +157 -69
- package/lib/commonjs/types/core/image/ImageRefTypes.js.map +1 -0
- package/lib/commonjs/types/core/image/ImageTypes.js +41 -0
- package/lib/commonjs/types/core/image/ImageTypes.js.map +1 -0
- package/lib/commonjs/{imageRef → types/core/image}/image.js +54 -50
- package/lib/commonjs/types/core/image/image.js.map +1 -0
- package/lib/commonjs/{imageRef → types/core/image}/index.js +0 -11
- package/lib/commonjs/types/core/image/index.js.map +1 -0
- package/lib/commonjs/types/core/index.js +105 -0
- package/lib/commonjs/types/core/index.js.map +1 -0
- package/lib/commonjs/types/core/licensing/LicensingTypes.js +239 -0
- package/lib/commonjs/types/core/licensing/LicensingTypes.js.map +1 -0
- package/lib/commonjs/types/core/licensing/index.js +17 -0
- package/lib/commonjs/types/core/licensing/index.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/ArTrackingOverlayConfiguration.js +8 -14
- package/lib/commonjs/types/core/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeInfoMapping.js +4 -8
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeInfoMapping.js.map +1 -0
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeItemMapper.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerScreenConfiguration.js +17 -19
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeScannerScreenConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerUiResult.js +3 -6
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeScannerUiResult.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeTextLocalization.js +1 -3
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeTextLocalization.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeUseCase.js +6 -6
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeUseCase.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/FindAndPickScanningModeUseCase.js +6 -9
- package/lib/commonjs/types/core/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/MultipleScanningModeUseCase.js +11 -14
- package/lib/commonjs/types/core/ui_v2/barcode/MultipleScanningModeUseCase.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/SingleScanningModeUseCase.js +4 -6
- package/lib/commonjs/types/core/ui_v2/barcode/SingleScanningModeUseCase.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/ActionBarConfiguration.js +2 -4
- package/lib/commonjs/types/core/ui_v2/common/ActionBarConfiguration.js.map +1 -0
- package/lib/commonjs/types/core/ui_v2/common/BottomBarConfiguration.js +23 -0
- package/lib/commonjs/types/core/ui_v2/common/BottomBarConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/CameraConfiguration.js +11 -3
- package/lib/commonjs/types/core/ui_v2/common/CameraConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/CameraPermission.js +2 -4
- package/lib/commonjs/types/core/ui_v2/common/CameraPermission.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/Common.js +20 -35
- package/lib/commonjs/types/core/ui_v2/common/Common.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/NavigationBarConfiguration.js +1 -0
- package/lib/commonjs/types/core/ui_v2/common/NavigationBarConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/ScanCompletionOverlay.js +2 -4
- package/lib/commonjs/types/core/ui_v2/common/ScanCompletionOverlay.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/ScanbotAlertDialog.js +2 -4
- package/lib/commonjs/types/core/ui_v2/common/ScanbotAlertDialog.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/TopBarConfiguration.js +4 -4
- package/lib/commonjs/types/core/ui_v2/common/TopBarConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/UserGuidanceConfiguration.js +3 -6
- package/lib/commonjs/types/core/ui_v2/common/UserGuidanceConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/ViewFinderConfiguration.js +14 -19
- package/lib/commonjs/types/core/ui_v2/common/ViewFinderConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/index.js +15 -15
- package/lib/commonjs/types/core/ui_v2/index.js.map +1 -0
- package/lib/commonjs/{imageRef → types/core/utils}/ObjectPoolTypes.js +2 -4
- package/lib/commonjs/types/core/utils/ObjectPoolTypes.js.map +1 -0
- package/lib/commonjs/types/core/utils/index.js +28 -0
- package/lib/commonjs/types/core/utils/index.js.map +1 -0
- package/lib/commonjs/types/core/utils/utils.js +10 -0
- package/lib/commonjs/types/core/utils/utils.js.map +1 -0
- package/lib/commonjs/types/index.js +28 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/module/Barcode.js +45 -0
- package/lib/module/Barcode.js.map +1 -0
- package/lib/module/ImageProcessor.js +19 -0
- package/lib/module/ImageProcessor.js.map +1 -0
- package/lib/module/Sdk.js +51 -0
- package/lib/module/Sdk.js.map +1 -0
- package/lib/module/{component → components}/barcode-camera-view/ScanbotBarcodeCameraView.js +10 -4
- package/lib/module/components/barcode-camera-view/ScanbotBarcodeCameraView.js.map +1 -0
- package/lib/module/components/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js.map +1 -0
- package/lib/module/components/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js.map +1 -0
- package/lib/module/components/index.js +4 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +1 -0
- package/lib/module/impl/BarcodeScannerImpl.js +53 -0
- package/lib/module/impl/BarcodeScannerImpl.js.map +1 -0
- package/lib/module/impl/ImageProcessorImpl.js +15 -0
- package/lib/module/impl/ImageProcessorImpl.js.map +1 -0
- package/lib/module/impl/SdkImpl.js +22 -0
- package/lib/module/impl/SdkImpl.js.map +1 -0
- package/lib/module/impl/index.js +4 -0
- package/lib/module/impl/index.js.map +1 -0
- package/lib/module/impl/scanbotBarcodeSDKModule.js +16 -0
- package/lib/module/impl/scanbotBarcodeSDKModule.js.map +1 -0
- package/lib/module/index.js +5 -119
- package/lib/module/index.js.map +1 -1
- package/lib/module/types/base/SdkConfiguration.js +100 -0
- package/lib/module/types/base/SdkConfiguration.js.map +1 -0
- package/lib/module/types/base/customTypes.js +2 -0
- package/lib/module/types/base/customTypes.js.map +1 -0
- package/lib/module/types/base/errors.js +119 -0
- package/lib/module/types/base/errors.js.map +1 -0
- package/lib/module/types/base/index.js +5 -0
- package/lib/module/types/base/index.js.map +1 -0
- package/lib/module/types/base/utils.js +52 -0
- package/lib/module/types/base/utils.js.map +1 -0
- package/lib/module/{barcode → types/core/barcode}/BarcodeConfigurationTypes.js +244 -76
- package/lib/module/types/core/barcode/BarcodeConfigurationTypes.js.map +1 -0
- package/lib/module/{barcode → types/core/barcode}/BarcodeDocumentTypes.js +60 -9
- package/lib/module/types/core/barcode/BarcodeDocumentTypes.js.map +1 -0
- package/lib/module/{barcode → types/core/barcode}/BarcodeScannerTypes.js +39 -28
- package/lib/module/types/core/barcode/BarcodeScannerTypes.js.map +1 -0
- package/lib/module/{barcode → types/core/barcode}/BarcodeTypes.js +30 -11
- package/lib/module/types/core/barcode/BarcodeTypes.js.map +1 -0
- package/lib/module/types/core/barcode/index.js.map +1 -0
- package/lib/module/types/core/camera/Camera.js +17 -0
- package/lib/module/types/core/camera/Camera.js.map +1 -0
- package/lib/module/types/core/camera/index.js +2 -0
- package/lib/module/types/core/camera/index.js.map +1 -0
- package/lib/module/types/core/common/CommonTypes.js +23 -0
- package/lib/module/types/core/common/CommonTypes.js.map +1 -0
- package/lib/module/{utils/json → types/core/common}/JsonSerializationTypes.js +2 -4
- package/lib/module/types/core/common/JsonSerializationTypes.js.map +1 -0
- package/lib/module/types/core/common/index.js +3 -0
- package/lib/module/types/core/common/index.js.map +1 -0
- package/lib/module/{documents → types/core/generic_document}/BarcodeDocumentModel.js +1129 -159
- package/lib/module/types/core/generic_document/BarcodeDocumentModel.js.map +1 -0
- package/lib/module/{documents → types/core/generic_document}/CommonFieldType.js +6 -3
- package/lib/module/types/core/generic_document/CommonFieldType.js.map +1 -0
- package/lib/module/{documents → types/core/generic_document}/GenericDocument.js +13 -18
- package/lib/module/types/core/generic_document/GenericDocument.js.map +1 -0
- package/lib/module/types/core/generic_document/index.js.map +1 -0
- package/lib/module/{utils → types/core}/geometry/Geometry.js +4 -9
- package/lib/module/types/core/geometry/Geometry.js.map +1 -0
- package/lib/module/types/core/geometry/index.js +2 -0
- package/lib/module/types/core/geometry/index.js.map +1 -0
- package/lib/module/{imageRef → types/core/image}/ImageRefTypes.js +156 -68
- package/lib/module/types/core/image/ImageRefTypes.js.map +1 -0
- package/lib/module/types/core/image/ImageTypes.js +35 -0
- package/lib/module/types/core/image/ImageTypes.js.map +1 -0
- package/lib/module/{imageRef → types/core/image}/image.js +54 -49
- package/lib/module/types/core/image/image.js.map +1 -0
- package/lib/module/{imageRef → types/core/image}/index.js +0 -1
- package/lib/module/types/core/image/index.js.map +1 -0
- package/lib/module/types/core/index.js +10 -0
- package/lib/module/types/core/index.js.map +1 -0
- package/lib/module/types/core/licensing/LicensingTypes.js +233 -0
- package/lib/module/types/core/licensing/LicensingTypes.js.map +1 -0
- package/lib/module/types/core/licensing/index.js +2 -0
- package/lib/module/types/core/licensing/index.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/ArTrackingOverlayConfiguration.js +8 -14
- package/lib/module/types/core/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeInfoMapping.js +4 -9
- package/lib/module/types/core/ui_v2/barcode/BarcodeInfoMapping.js.map +1 -0
- package/lib/module/types/core/ui_v2/barcode/BarcodeItemMapper.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerScreenConfiguration.js +17 -19
- package/lib/module/types/core/ui_v2/barcode/BarcodeScannerScreenConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerUiResult.js +3 -7
- package/lib/module/types/core/ui_v2/barcode/BarcodeScannerUiResult.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeTextLocalization.js +1 -4
- package/lib/module/types/core/ui_v2/barcode/BarcodeTextLocalization.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeUseCase.js +6 -6
- package/lib/module/types/core/ui_v2/barcode/BarcodeUseCase.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/FindAndPickScanningModeUseCase.js +6 -9
- package/lib/module/types/core/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/MultipleScanningModeUseCase.js +11 -14
- package/lib/module/types/core/ui_v2/barcode/MultipleScanningModeUseCase.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/SingleScanningModeUseCase.js +4 -6
- package/lib/module/types/core/ui_v2/barcode/SingleScanningModeUseCase.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/ActionBarConfiguration.js +2 -4
- package/lib/module/types/core/ui_v2/common/ActionBarConfiguration.js.map +1 -0
- package/lib/module/types/core/ui_v2/common/BottomBarConfiguration.js +17 -0
- package/lib/module/types/core/ui_v2/common/BottomBarConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/CameraConfiguration.js +11 -4
- package/lib/module/types/core/ui_v2/common/CameraConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/CameraPermission.js +2 -5
- package/lib/module/types/core/ui_v2/common/CameraPermission.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/Common.js +20 -36
- package/lib/module/types/core/ui_v2/common/Common.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/NavigationBarConfiguration.js +1 -0
- package/lib/module/types/core/ui_v2/common/NavigationBarConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/ScanCompletionOverlay.js +2 -4
- package/lib/module/types/core/ui_v2/common/ScanCompletionOverlay.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/ScanbotAlertDialog.js +2 -4
- package/lib/module/types/core/ui_v2/common/ScanbotAlertDialog.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/TopBarConfiguration.js +4 -4
- package/lib/module/types/core/ui_v2/common/TopBarConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/UserGuidanceConfiguration.js +3 -6
- package/lib/module/types/core/ui_v2/common/UserGuidanceConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/ViewFinderConfiguration.js +14 -19
- package/lib/module/types/core/ui_v2/common/ViewFinderConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/index.js +2 -2
- package/lib/module/types/core/ui_v2/index.js.map +1 -0
- package/lib/module/{imageRef → types/core/utils}/ObjectPoolTypes.js +2 -5
- package/lib/module/types/core/utils/ObjectPoolTypes.js.map +1 -0
- package/lib/module/types/core/utils/index.js +3 -0
- package/lib/module/types/core/utils/index.js.map +1 -0
- package/lib/module/types/core/utils/utils.js +8 -0
- package/lib/module/types/core/utils/utils.js.map +1 -0
- package/lib/module/types/index.js +3 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/typescript/src/Barcode.d.ts +47 -0
- package/lib/typescript/src/Barcode.d.ts.map +1 -0
- package/lib/typescript/src/ImageProcessor.d.ts +12 -0
- package/lib/typescript/src/ImageProcessor.d.ts.map +1 -0
- package/lib/typescript/src/Sdk.d.ts +58 -0
- package/lib/typescript/src/Sdk.d.ts.map +1 -0
- package/lib/typescript/src/components/barcode-camera-view/ScanbotBarcodeCameraView.d.ts.map +1 -0
- package/lib/typescript/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts +17 -12
- package/lib/typescript/src/components/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts.map +1 -0
- package/lib/typescript/src/components/barcode-camera-view/ScanbotBarcodeCameraViewTypes.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +4 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/lib/typescript/src/{component → components}/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts +6 -0
- package/lib/typescript/src/components/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/impl/BarcodeScannerImpl.d.ts +2 -0
- package/lib/typescript/src/impl/BarcodeScannerImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/ImageProcessorImpl.d.ts +2 -0
- package/lib/typescript/src/impl/ImageProcessorImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/SdkImpl.d.ts +2 -0
- package/lib/typescript/src/impl/SdkImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/index.d.ts +4 -0
- package/lib/typescript/src/impl/index.d.ts.map +1 -0
- package/lib/typescript/src/impl/scanbotBarcodeSDKModule.d.ts +2 -0
- package/lib/typescript/src/impl/scanbotBarcodeSDKModule.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +5 -66
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types/base/SdkConfiguration.d.ts +74 -0
- package/lib/typescript/src/types/base/SdkConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/types/base/customTypes.d.ts +15 -0
- package/lib/typescript/src/types/base/customTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/base/errors.d.ts +55 -0
- package/lib/typescript/src/types/base/errors.d.ts.map +1 -0
- package/lib/typescript/src/types/base/index.d.ts +5 -0
- package/lib/typescript/src/types/base/index.d.ts.map +1 -0
- package/lib/typescript/src/types/base/utils.d.ts +3 -0
- package/lib/typescript/src/types/base/utils.d.ts.map +1 -0
- package/lib/typescript/src/{barcode → types/core/barcode}/BarcodeConfigurationTypes.d.ts +203 -36
- package/lib/typescript/src/types/core/barcode/BarcodeConfigurationTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/barcode/BarcodeDocumentTypes.d.ts +117 -0
- package/lib/typescript/src/types/core/barcode/BarcodeDocumentTypes.d.ts.map +1 -0
- package/lib/typescript/src/{barcode → types/core/barcode}/BarcodeScannerTypes.d.ts +68 -21
- package/lib/typescript/src/types/core/barcode/BarcodeScannerTypes.d.ts.map +1 -0
- package/lib/typescript/src/{barcode → types/core/barcode}/BarcodeTypes.d.ts +390 -13
- package/lib/typescript/src/types/core/barcode/BarcodeTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/barcode/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/camera/Camera.d.ts +26 -0
- package/lib/typescript/src/types/core/camera/Camera.d.ts.map +1 -0
- package/lib/typescript/src/types/core/camera/index.d.ts +2 -0
- package/lib/typescript/src/types/core/camera/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/common/CommonTypes.d.ts +36 -0
- package/lib/typescript/src/types/core/common/CommonTypes.d.ts.map +1 -0
- package/lib/typescript/src/{utils/json → types/core/common}/JsonSerializationTypes.d.ts +13 -4
- package/lib/typescript/src/types/core/common/JsonSerializationTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/common/index.d.ts +3 -0
- package/lib/typescript/src/types/core/common/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/generic_document/BarcodeDocumentModel.d.ts +2360 -0
- package/lib/typescript/src/types/core/generic_document/BarcodeDocumentModel.d.ts.map +1 -0
- package/lib/typescript/src/types/core/generic_document/CommonFieldType.d.ts +176 -0
- package/lib/typescript/src/types/core/generic_document/CommonFieldType.d.ts.map +1 -0
- package/lib/typescript/src/{documents → types/core/generic_document}/GenericDocument.d.ts +82 -14
- package/lib/typescript/src/types/core/generic_document/GenericDocument.d.ts.map +1 -0
- package/lib/typescript/src/types/core/generic_document/index.d.ts.map +1 -0
- package/lib/typescript/src/{utils → types/core}/geometry/Geometry.d.ts +6 -5
- package/lib/typescript/src/types/core/geometry/Geometry.d.ts.map +1 -0
- package/lib/typescript/src/types/core/geometry/index.d.ts +2 -0
- package/lib/typescript/src/types/core/geometry/index.d.ts.map +1 -0
- package/lib/typescript/src/{imageRef → types/core/image}/ImageRefTypes.d.ts +208 -40
- package/lib/typescript/src/types/core/image/ImageRefTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/image/ImageTypes.d.ts +63 -0
- package/lib/typescript/src/types/core/image/ImageTypes.d.ts.map +1 -0
- package/lib/typescript/src/{imageRef → types/core/image}/image.d.ts +6 -10
- package/lib/typescript/src/types/core/image/image.d.ts.map +1 -0
- package/lib/typescript/src/{imageRef → types/core/image}/index.d.ts +0 -1
- package/lib/typescript/src/types/core/image/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/index.d.ts +10 -0
- package/lib/typescript/src/types/core/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/licensing/LicensingTypes.d.ts +243 -0
- package/lib/typescript/src/types/core/licensing/LicensingTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/licensing/index.d.ts +2 -0
- package/lib/typescript/src/types/core/licensing/index.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/ArTrackingOverlayConfiguration.d.ts +27 -10
- package/lib/typescript/src/types/core/ui_v2/barcode/ArTrackingOverlayConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeInfoMapping.d.ts +6 -6
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeInfoMapping.d.ts.map +1 -0
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeItemMapper.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerScreenConfiguration.d.ts +14 -14
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeScannerScreenConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerUiResult.d.ts +4 -4
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeScannerUiResult.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeTextLocalization.d.ts +2 -2
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeTextLocalization.d.ts.map +1 -0
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeUseCase.d.ts +8 -0
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeUseCase.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/FindAndPickScanningModeUseCase.d.ts +6 -6
- package/lib/typescript/src/types/core/ui_v2/barcode/FindAndPickScanningModeUseCase.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/MultipleScanningModeUseCase.d.ts +42 -15
- package/lib/typescript/src/types/core/ui_v2/barcode/MultipleScanningModeUseCase.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/SingleScanningModeUseCase.d.ts +5 -5
- package/lib/typescript/src/types/core/ui_v2/barcode/SingleScanningModeUseCase.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/ActionBarConfiguration.d.ts +3 -3
- package/lib/typescript/src/types/core/ui_v2/common/ActionBarConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/types/core/ui_v2/common/BottomBarConfiguration.d.ts +26 -0
- package/lib/typescript/src/types/core/ui_v2/common/BottomBarConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/CameraConfiguration.d.ts +25 -5
- package/lib/typescript/src/types/core/ui_v2/common/CameraConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/CameraPermission.d.ts +4 -4
- package/lib/typescript/src/types/core/ui_v2/common/CameraPermission.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/Common.d.ts +55 -24
- package/lib/typescript/src/types/core/ui_v2/common/Common.d.ts.map +1 -0
- package/lib/typescript/src/types/core/ui_v2/common/NavigationBarConfiguration.d.ts +26 -0
- package/lib/typescript/src/types/core/ui_v2/common/NavigationBarConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/ScanCompletionOverlay.d.ts +3 -3
- package/lib/typescript/src/types/core/ui_v2/common/ScanCompletionOverlay.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/ScanbotAlertDialog.d.ts +3 -3
- package/lib/typescript/src/types/core/ui_v2/common/ScanbotAlertDialog.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/TopBarConfiguration.d.ts +33 -7
- package/lib/typescript/src/types/core/ui_v2/common/TopBarConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/UserGuidanceConfiguration.d.ts +4 -4
- package/lib/typescript/src/types/core/ui_v2/common/UserGuidanceConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/ViewFinderConfiguration.d.ts +7 -7
- package/lib/typescript/src/types/core/ui_v2/common/ViewFinderConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/index.d.ts +2 -2
- package/lib/typescript/src/types/core/ui_v2/index.d.ts.map +1 -0
- package/lib/typescript/src/{imageRef → types/core/utils}/ObjectPoolTypes.d.ts +3 -3
- package/lib/typescript/src/types/core/utils/ObjectPoolTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/utils/index.d.ts +3 -0
- package/lib/typescript/src/types/core/utils/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/utils/utils.d.ts +28 -0
- package/lib/typescript/src/types/core/utils/utils.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +3 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/package.json +13 -13
- package/src/Barcode.ts +67 -0
- package/src/ImageProcessor.ts +18 -0
- package/src/Sdk.ts +53 -0
- package/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraView.tsx +13 -4
- package/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewProperties.ts +22 -14
- package/src/components/index.ts +3 -0
- package/src/{component → components}/spec/ScanbotBarcodeScannerViewNativeComponent.ts +3 -0
- package/src/impl/BarcodeScannerImpl.ts +115 -0
- package/src/impl/ImageProcessorImpl.ts +14 -0
- package/src/impl/SdkImpl.ts +28 -0
- package/src/impl/index.ts +3 -0
- package/src/impl/scanbotBarcodeSDKModule.ts +22 -0
- package/src/index.ts +5 -178
- package/src/types/base/SdkConfiguration.ts +120 -0
- package/src/types/base/customTypes.ts +14 -0
- package/src/types/base/errors.ts +158 -0
- package/src/types/base/index.ts +4 -0
- package/src/types/base/utils.ts +53 -0
- package/src/{barcode → types/core/barcode}/BarcodeConfigurationTypes.ts +294 -83
- package/src/types/core/barcode/BarcodeDocumentTypes.ts +218 -0
- package/src/{barcode → types/core/barcode}/BarcodeScannerTypes.ts +91 -44
- package/src/{barcode → types/core/barcode}/BarcodeTypes.ts +315 -19
- package/src/types/core/camera/Camera.ts +33 -0
- package/src/types/core/camera/index.ts +1 -0
- package/src/types/core/common/CommonTypes.ts +43 -0
- package/src/{utils/json → types/core/common}/JsonSerializationTypes.ts +16 -5
- package/src/types/core/common/index.ts +2 -0
- package/src/{documents → types/core/generic_document}/BarcodeDocumentModel.ts +1524 -172
- package/src/{documents → types/core/generic_document}/CommonFieldType.ts +96 -7
- package/src/{documents → types/core/generic_document}/GenericDocument.ts +77 -28
- package/src/{utils → types/core}/geometry/Geometry.ts +6 -8
- package/src/types/core/geometry/index.ts +1 -0
- package/src/{imageRef → types/core/image}/ImageRefTypes.ts +277 -83
- package/src/types/core/image/ImageTypes.ts +78 -0
- package/src/{imageRef → types/core/image}/image.ts +44 -76
- package/src/{imageRef → types/core/image}/index.ts +0 -1
- package/src/types/core/index.ts +9 -0
- package/src/types/core/licensing/LicensingTypes.ts +377 -0
- package/src/types/core/licensing/index.ts +1 -0
- package/src/{ui_v2 → types/core/ui_v2}/barcode/ArTrackingOverlayConfiguration.ts +28 -17
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeInfoMapping.ts +6 -9
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerScreenConfiguration.ts +18 -25
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerUiResult.ts +5 -7
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeTextLocalization.ts +2 -3
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeUseCase.ts +6 -5
- package/src/{ui_v2 → types/core/ui_v2}/barcode/FindAndPickScanningModeUseCase.ts +17 -19
- package/src/{ui_v2 → types/core/ui_v2}/barcode/MultipleScanningModeUseCase.ts +50 -25
- package/src/{ui_v2 → types/core/ui_v2}/barcode/SingleScanningModeUseCase.ts +9 -10
- package/src/{ui_v2 → types/core/ui_v2}/common/ActionBarConfiguration.ts +3 -4
- package/src/types/core/ui_v2/common/BottomBarConfiguration.ts +33 -0
- package/src/{ui_v2 → types/core/ui_v2}/common/CameraConfiguration.ts +33 -7
- package/src/{ui_v2 → types/core/ui_v2}/common/CameraPermission.ts +4 -5
- package/src/{ui_v2 → types/core/ui_v2}/common/Common.ts +62 -41
- package/src/{ui_v2 → types/core/ui_v2}/common/NavigationBarConfiguration.ts +19 -2
- package/src/{ui_v2 → types/core/ui_v2}/common/ScanCompletionOverlay.ts +3 -4
- package/src/{ui_v2 → types/core/ui_v2}/common/ScanbotAlertDialog.ts +3 -4
- package/src/{ui_v2 → types/core/ui_v2}/common/TopBarConfiguration.ts +37 -13
- package/src/{ui_v2 → types/core/ui_v2}/common/UserGuidanceConfiguration.ts +4 -6
- package/src/{ui_v2 → types/core/ui_v2}/common/ViewFinderConfiguration.ts +15 -17
- package/src/{ui_v2 → types/core/ui_v2}/index.ts +2 -4
- package/src/{imageRef → types/core/utils}/ObjectPoolTypes.ts +3 -4
- package/src/types/core/utils/index.ts +2 -0
- package/src/types/core/utils/utils.ts +45 -0
- package/src/types/index.ts +2 -0
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/extensions/IntExtensions.kt +0 -7
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewControllerWrapper.h +0 -121
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewControllerWrapper.m +0 -307
- package/lib/commonjs/barcode/BarcodeConfigurationTypes.js.map +0 -1
- package/lib/commonjs/barcode/BarcodeDocumentTypes.js.map +0 -1
- package/lib/commonjs/barcode/BarcodeScannerTypes.js.map +0 -1
- package/lib/commonjs/barcode/BarcodeTypes.js.map +0 -1
- package/lib/commonjs/barcode/index.js.map +0 -1
- package/lib/commonjs/base/barcodeSDKConfigurations.js.map +0 -1
- package/lib/commonjs/base/barcodeSDKTypes.js +0 -2
- package/lib/commonjs/base/barcodeSDKTypes.js.map +0 -1
- package/lib/commonjs/base/index.js +0 -28
- package/lib/commonjs/base/index.js.map +0 -1
- package/lib/commonjs/component/barcode-camera-view/ScanbotBarcodeCameraView.js.map +0 -1
- package/lib/commonjs/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js.map +0 -1
- package/lib/commonjs/component/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js.map +0 -1
- package/lib/commonjs/component/barcode-camera-view/index.js.map +0 -1
- package/lib/commonjs/component/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +0 -1
- package/lib/commonjs/documents/BarcodeDocumentModel.js.map +0 -1
- package/lib/commonjs/documents/CommonFieldType.js.map +0 -1
- package/lib/commonjs/documents/GenericDocument.js.map +0 -1
- package/lib/commonjs/documents/index.js.map +0 -1
- package/lib/commonjs/imageRef/ImageRefTypes.js.map +0 -1
- package/lib/commonjs/imageRef/ImageTypes.js +0 -24
- package/lib/commonjs/imageRef/ImageTypes.js.map +0 -1
- package/lib/commonjs/imageRef/ObjectPoolTypes.js.map +0 -1
- package/lib/commonjs/imageRef/image.js.map +0 -1
- package/lib/commonjs/imageRef/index.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeInfoMapping.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeItemMapper.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeScannerConfiguration.js +0 -179
- package/lib/commonjs/ui_v2/barcode/BarcodeScannerConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeScannerScreenConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeScannerUiResult.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeTextLocalization.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeUseCase.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/MultipleScanningModeUseCase.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/SingleScanningModeUseCase.js.map +0 -1
- package/lib/commonjs/ui_v2/common/ActionBarConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/CameraConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/CameraPermission.js.map +0 -1
- package/lib/commonjs/ui_v2/common/Common.js.map +0 -1
- package/lib/commonjs/ui_v2/common/NavigationBarConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/ScanCompletionOverlay.js.map +0 -1
- package/lib/commonjs/ui_v2/common/ScanbotAlertDialog.js.map +0 -1
- package/lib/commonjs/ui_v2/common/TopBarConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/UserGuidanceConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/ViewFinderConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/index.js.map +0 -1
- package/lib/commonjs/utils/geometry/Geometry.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -39
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/commonjs/utils/json/JsonSerializationTypes.js.map +0 -1
- package/lib/commonjs/utils/utils.js +0 -31
- package/lib/commonjs/utils/utils.js.map +0 -1
- package/lib/module/barcode/BarcodeConfigurationTypes.js.map +0 -1
- package/lib/module/barcode/BarcodeDocumentTypes.js.map +0 -1
- package/lib/module/barcode/BarcodeScannerTypes.js.map +0 -1
- package/lib/module/barcode/BarcodeTypes.js.map +0 -1
- package/lib/module/barcode/index.js.map +0 -1
- package/lib/module/base/barcodeSDKConfigurations.js +0 -2
- package/lib/module/base/barcodeSDKConfigurations.js.map +0 -1
- package/lib/module/base/barcodeSDKTypes.js +0 -2
- package/lib/module/base/barcodeSDKTypes.js.map +0 -1
- package/lib/module/base/index.js +0 -3
- package/lib/module/base/index.js.map +0 -1
- package/lib/module/component/barcode-camera-view/ScanbotBarcodeCameraView.js.map +0 -1
- package/lib/module/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js.map +0 -1
- package/lib/module/component/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js.map +0 -1
- package/lib/module/component/barcode-camera-view/index.js +0 -4
- package/lib/module/component/barcode-camera-view/index.js.map +0 -1
- package/lib/module/component/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +0 -1
- package/lib/module/documents/BarcodeDocumentModel.js.map +0 -1
- package/lib/module/documents/CommonFieldType.js.map +0 -1
- package/lib/module/documents/GenericDocument.js.map +0 -1
- package/lib/module/documents/index.js.map +0 -1
- package/lib/module/imageRef/ImageRefTypes.js.map +0 -1
- package/lib/module/imageRef/ImageTypes.js +0 -18
- package/lib/module/imageRef/ImageTypes.js.map +0 -1
- package/lib/module/imageRef/ObjectPoolTypes.js.map +0 -1
- package/lib/module/imageRef/image.js.map +0 -1
- package/lib/module/imageRef/index.js.map +0 -1
- package/lib/module/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeInfoMapping.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeItemMapper.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeScannerConfiguration.js +0 -173
- package/lib/module/ui_v2/barcode/BarcodeScannerConfiguration.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeScannerScreenConfiguration.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeScannerUiResult.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeTextLocalization.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeUseCase.js.map +0 -1
- package/lib/module/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +0 -1
- package/lib/module/ui_v2/barcode/MultipleScanningModeUseCase.js.map +0 -1
- package/lib/module/ui_v2/barcode/SingleScanningModeUseCase.js.map +0 -1
- package/lib/module/ui_v2/common/ActionBarConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/CameraConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/CameraPermission.js.map +0 -1
- package/lib/module/ui_v2/common/Common.js.map +0 -1
- package/lib/module/ui_v2/common/NavigationBarConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/ScanCompletionOverlay.js.map +0 -1
- package/lib/module/ui_v2/common/ScanbotAlertDialog.js.map +0 -1
- package/lib/module/ui_v2/common/TopBarConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/UserGuidanceConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/ViewFinderConfiguration.js.map +0 -1
- package/lib/module/ui_v2/index.js.map +0 -1
- package/lib/module/utils/geometry/Geometry.js.map +0 -1
- package/lib/module/utils/index.js +0 -4
- package/lib/module/utils/index.js.map +0 -1
- package/lib/module/utils/json/JsonSerializationTypes.js.map +0 -1
- package/lib/module/utils/utils.js +0 -22
- package/lib/module/utils/utils.js.map +0 -1
- package/lib/typescript/src/barcode/BarcodeConfigurationTypes.d.ts.map +0 -1
- package/lib/typescript/src/barcode/BarcodeDocumentTypes.d.ts +0 -50
- package/lib/typescript/src/barcode/BarcodeDocumentTypes.d.ts.map +0 -1
- package/lib/typescript/src/barcode/BarcodeScannerTypes.d.ts.map +0 -1
- package/lib/typescript/src/barcode/BarcodeTypes.d.ts.map +0 -1
- package/lib/typescript/src/barcode/index.d.ts.map +0 -1
- package/lib/typescript/src/base/barcodeSDKConfigurations.d.ts +0 -60
- package/lib/typescript/src/base/barcodeSDKConfigurations.d.ts.map +0 -1
- package/lib/typescript/src/base/barcodeSDKTypes.d.ts +0 -46
- package/lib/typescript/src/base/barcodeSDKTypes.d.ts.map +0 -1
- package/lib/typescript/src/base/index.d.ts +0 -3
- package/lib/typescript/src/base/index.d.ts.map +0 -1
- package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraView.d.ts.map +0 -1
- package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts.map +0 -1
- package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewTypes.d.ts.map +0 -1
- package/lib/typescript/src/component/barcode-camera-view/index.d.ts +0 -4
- package/lib/typescript/src/component/barcode-camera-view/index.d.ts.map +0 -1
- package/lib/typescript/src/component/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/documents/BarcodeDocumentModel.d.ts +0 -1458
- package/lib/typescript/src/documents/BarcodeDocumentModel.d.ts.map +0 -1
- package/lib/typescript/src/documents/CommonFieldType.d.ts +0 -61
- package/lib/typescript/src/documents/CommonFieldType.d.ts.map +0 -1
- package/lib/typescript/src/documents/GenericDocument.d.ts.map +0 -1
- package/lib/typescript/src/documents/index.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/ImageRefTypes.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/ImageTypes.d.ts +0 -15
- package/lib/typescript/src/imageRef/ImageTypes.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/ObjectPoolTypes.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/image.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/index.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/ArTrackingOverlayConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeInfoMapping.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeItemMapper.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeScannerConfiguration.d.ts +0 -114
- package/lib/typescript/src/ui_v2/barcode/BarcodeScannerConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeScannerScreenConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeScannerUiResult.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeTextLocalization.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeUseCase.d.ts +0 -8
- package/lib/typescript/src/ui_v2/barcode/BarcodeUseCase.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/FindAndPickScanningModeUseCase.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/MultipleScanningModeUseCase.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/SingleScanningModeUseCase.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/ActionBarConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/CameraConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/CameraPermission.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/Common.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/NavigationBarConfiguration.d.ts +0 -13
- package/lib/typescript/src/ui_v2/common/NavigationBarConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/ScanCompletionOverlay.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/ScanbotAlertDialog.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/TopBarConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/UserGuidanceConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/ViewFinderConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/index.d.ts.map +0 -1
- package/lib/typescript/src/utils/geometry/Geometry.d.ts.map +0 -1
- package/lib/typescript/src/utils/index.d.ts +0 -4
- package/lib/typescript/src/utils/index.d.ts.map +0 -1
- package/lib/typescript/src/utils/json/JsonSerializationTypes.d.ts.map +0 -1
- package/lib/typescript/src/utils/utils.d.ts +0 -17
- package/lib/typescript/src/utils/utils.d.ts.map +0 -1
- package/src/barcode/BarcodeDocumentTypes.ts +0 -120
- package/src/base/barcodeSDKConfigurations.ts +0 -70
- package/src/base/barcodeSDKTypes.ts +0 -44
- package/src/base/index.ts +0 -2
- package/src/component/barcode-camera-view/index.ts +0 -3
- package/src/imageRef/ImageTypes.ts +0 -23
- package/src/ui_v2/barcode/BarcodeScannerConfiguration.ts +0 -207
- package/src/utils/index.ts +0 -3
- package/src/utils/utils.ts +0 -42
- /package/lib/commonjs/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js +0 -0
- /package/lib/commonjs/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js +0 -0
- /package/lib/commonjs/{component → components}/spec/ScanbotBarcodeScannerViewNativeComponent.js +0 -0
- /package/lib/commonjs/{barcode → types/core/barcode}/index.js +0 -0
- /package/lib/commonjs/{documents → types/core/generic_document}/index.js +0 -0
- /package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeItemMapper.js +0 -0
- /package/lib/module/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js +0 -0
- /package/lib/module/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js +0 -0
- /package/lib/module/{component → components}/spec/ScanbotBarcodeScannerViewNativeComponent.js +0 -0
- /package/lib/module/{barcode → types/core/barcode}/index.js +0 -0
- /package/lib/module/{documents → types/core/generic_document}/index.js +0 -0
- /package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeItemMapper.js +0 -0
- /package/lib/typescript/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraView.d.ts +0 -0
- /package/lib/typescript/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewTypes.d.ts +0 -0
- /package/lib/typescript/src/{barcode → types/core/barcode}/index.d.ts +0 -0
- /package/lib/typescript/src/{documents → types/core/generic_document}/index.d.ts +0 -0
- /package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeItemMapper.d.ts +0 -0
- /package/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewTypes.ts +0 -0
- /package/src/{barcode → types/core/barcode}/index.ts +0 -0
- /package/src/{documents → types/core/generic_document}/index.ts +0 -0
- /package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeItemMapper.ts +0 -0
|
@@ -1,15 +1,75 @@
|
|
|
1
1
|
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
2
2
|
/// Generated from core/schemas/ImageRefTypes.yaml
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import { RefCountedObjectProfile } from '../
|
|
6
|
-
import {
|
|
7
|
-
import { DeepPartial
|
|
4
|
+
import { ToJsonConfiguration } from '../common/JsonSerializationTypes';
|
|
5
|
+
import { RefCountedObjectProfile } from '../utils/ObjectPoolTypes';
|
|
6
|
+
import type { Rectangle } from '../utils/utils';
|
|
7
|
+
import { DeepPartial } from '../utils/utils';
|
|
8
|
+
import { ImageOrigin, ImageRotation } from './ImageTypes';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
Color conversion to apply during image loading.
|
|
12
|
+
|
|
13
|
+
- `GRAY`:
|
|
14
|
+
Load image as grayscale.
|
|
15
|
+
- `COLOR`:
|
|
16
|
+
Load image as 3-channel BGR.
|
|
17
|
+
- `ANY_COLOR`:
|
|
18
|
+
Load image as 3-channel BGR if the source color space is color, otherwise as single-channel grayscale. Alpha channel is discarded.
|
|
19
|
+
- `UNCHANGED`:
|
|
20
|
+
Load image as-is, preserving the alpha channel if it exists.
|
|
21
|
+
*/
|
|
22
|
+
export type ColorConversion =
|
|
23
|
+
/**
|
|
24
|
+
Load image as grayscale.
|
|
25
|
+
*/
|
|
26
|
+
| 'GRAY'
|
|
27
|
+
/**
|
|
28
|
+
Load image as 3-channel BGR.
|
|
29
|
+
*/
|
|
30
|
+
| 'COLOR'
|
|
31
|
+
/**
|
|
32
|
+
Load image as 3-channel BGR if the source color space is color, otherwise as single-channel grayscale. Alpha channel is discarded.
|
|
33
|
+
*/
|
|
34
|
+
| 'ANY_COLOR'
|
|
35
|
+
/**
|
|
36
|
+
Load image as-is, preserving the alpha channel if it exists.
|
|
37
|
+
*/
|
|
38
|
+
| 'UNCHANGED';
|
|
39
|
+
|
|
40
|
+
/** @hidden */
|
|
41
|
+
export const ColorConversionValues: ReadonlyArray<ColorConversion> = [
|
|
42
|
+
'GRAY',
|
|
43
|
+
'COLOR',
|
|
44
|
+
'ANY_COLOR',
|
|
45
|
+
'UNCHANGED',
|
|
46
|
+
] as const;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
Canvas color to use when converting images with alpha channel to images without alpha channel.
|
|
50
|
+
|
|
51
|
+
- `WHITE`:
|
|
52
|
+
White canvas color.
|
|
53
|
+
- `BLACK`:
|
|
54
|
+
Black canvas color.
|
|
55
|
+
*/
|
|
56
|
+
export type CanvasColor =
|
|
57
|
+
/**
|
|
58
|
+
White canvas color.
|
|
59
|
+
*/
|
|
60
|
+
| 'WHITE'
|
|
61
|
+
/**
|
|
62
|
+
Black canvas color.
|
|
63
|
+
*/
|
|
64
|
+
| 'BLACK';
|
|
65
|
+
|
|
66
|
+
/** @hidden */
|
|
67
|
+
export const CanvasColorValues: ReadonlyArray<CanvasColor> = ['WHITE', 'BLACK'] as const;
|
|
8
68
|
|
|
9
69
|
/**
|
|
10
70
|
Image Info.
|
|
11
71
|
*/
|
|
12
|
-
export class ImageInfo
|
|
72
|
+
export class ImageInfo {
|
|
13
73
|
/**
|
|
14
74
|
Image height in pixels.
|
|
15
75
|
*/
|
|
@@ -25,7 +85,6 @@ export class ImageInfo extends PartiallyConstructible {
|
|
|
25
85
|
|
|
26
86
|
/** @param source {@displayType `DeepPartial<ImageInfo>`} */
|
|
27
87
|
public constructor(source: DeepPartial<ImageInfo> = {}) {
|
|
28
|
-
super();
|
|
29
88
|
if (source.height !== undefined) {
|
|
30
89
|
this.height = source.height;
|
|
31
90
|
} else {
|
|
@@ -64,9 +123,26 @@ Image Ref Path Load Mode.
|
|
|
64
123
|
- `LAZY_WITH_COPY`:
|
|
65
124
|
Image is loaded into memory the first time it's requested. Specified path is copied into internal directory and so isn't required to exist at the time of loading.
|
|
66
125
|
*/
|
|
67
|
-
export type PathLoadMode =
|
|
126
|
+
export type PathLoadMode =
|
|
127
|
+
/**
|
|
128
|
+
Image is immediately loaded into memory.
|
|
129
|
+
*/
|
|
130
|
+
| 'EAGER'
|
|
131
|
+
/**
|
|
132
|
+
Image is loaded into memory the first time it's requested. Specified path must exist at the time of loading.
|
|
133
|
+
*/
|
|
134
|
+
| 'LAZY'
|
|
135
|
+
/**
|
|
136
|
+
Image is loaded into memory the first time it's requested. Specified path is copied into internal directory and so isn't required to exist at the time of loading.
|
|
137
|
+
*/
|
|
138
|
+
| 'LAZY_WITH_COPY';
|
|
68
139
|
|
|
69
|
-
|
|
140
|
+
/** @hidden */
|
|
141
|
+
export const PathLoadModeValues: ReadonlyArray<PathLoadMode> = [
|
|
142
|
+
'EAGER',
|
|
143
|
+
'LAZY',
|
|
144
|
+
'LAZY_WITH_COPY',
|
|
145
|
+
] as const;
|
|
70
146
|
|
|
71
147
|
/**
|
|
72
148
|
Image Ref Buffer Load Mode.
|
|
@@ -76,9 +152,18 @@ Image Ref Buffer Load Mode.
|
|
|
76
152
|
- `LAZY`:
|
|
77
153
|
Image is decoded the first time it's requested.
|
|
78
154
|
*/
|
|
79
|
-
export type BufferLoadMode =
|
|
155
|
+
export type BufferLoadMode =
|
|
156
|
+
/**
|
|
157
|
+
Image is immediately decoded.
|
|
158
|
+
*/
|
|
159
|
+
| 'EAGER'
|
|
160
|
+
/**
|
|
161
|
+
Image is decoded the first time it's requested.
|
|
162
|
+
*/
|
|
163
|
+
| 'LAZY';
|
|
80
164
|
|
|
81
|
-
|
|
165
|
+
/** @hidden */
|
|
166
|
+
export const BufferLoadModeValues: ReadonlyArray<BufferLoadMode> = ['EAGER', 'LAZY'] as const;
|
|
82
167
|
|
|
83
168
|
/**
|
|
84
169
|
Image Encoding Format.
|
|
@@ -88,9 +173,18 @@ Image Encoding Format.
|
|
|
88
173
|
- `PNG`:
|
|
89
174
|
PNG encoding.
|
|
90
175
|
*/
|
|
91
|
-
export type EncodingFormat =
|
|
176
|
+
export type EncodingFormat =
|
|
177
|
+
/**
|
|
178
|
+
JPEG encoding.
|
|
179
|
+
*/
|
|
180
|
+
| 'JPEG'
|
|
181
|
+
/**
|
|
182
|
+
PNG encoding.
|
|
183
|
+
*/
|
|
184
|
+
| 'PNG';
|
|
92
185
|
|
|
93
|
-
|
|
186
|
+
/** @hidden */
|
|
187
|
+
export const EncodingFormatValues: ReadonlyArray<EncodingFormat> = ['JPEG', 'PNG'] as const;
|
|
94
188
|
|
|
95
189
|
/**
|
|
96
190
|
Encryption/Decryption mode to be used when an image is loaded/saved.
|
|
@@ -98,47 +192,90 @@ Encryption/Decryption mode to be used when an image is loaded/saved.
|
|
|
98
192
|
- `REQUIRED`:
|
|
99
193
|
Encryption/Decryption is used when loading/saving an image. A crypting provider must first be set using `ImageRef.setStorageCryptingProvider`. If no provider is set, the loading/saving operation will fail.
|
|
100
194
|
- `DISABLED`:
|
|
101
|
-
Encryption
|
|
102
|
-
- `
|
|
103
|
-
|
|
195
|
+
Encryption is not used when loading or saving images. Trying to load an encrypted image will fail.
|
|
196
|
+
- `AUTO`:
|
|
197
|
+
When saving, images are encrypted only if a crypting provider is set using `ImageRef.setStorageCryptingProvider`.
|
|
198
|
+
When loading, images will be decrypted if they're encrypted and a crypting provider is set, and loaded as-is otherwise.
|
|
104
199
|
*/
|
|
105
|
-
export type EncryptionMode =
|
|
200
|
+
export type EncryptionMode =
|
|
201
|
+
/**
|
|
202
|
+
Encryption/Decryption is used when loading/saving an image. A crypting provider must first be set using `ImageRef.setStorageCryptingProvider`. If no provider is set, the loading/saving operation will fail.
|
|
203
|
+
*/
|
|
204
|
+
| 'REQUIRED'
|
|
205
|
+
/**
|
|
206
|
+
Encryption is not used when loading or saving images. Trying to load an encrypted image will fail.
|
|
207
|
+
*/
|
|
208
|
+
| 'DISABLED'
|
|
209
|
+
/**
|
|
210
|
+
When saving, images are encrypted only if a crypting provider is set using `ImageRef.setStorageCryptingProvider`.
|
|
211
|
+
When loading, images will be decrypted if they're encrypted and a crypting provider is set, and loaded as-is otherwise.
|
|
212
|
+
*/
|
|
213
|
+
| 'AUTO';
|
|
106
214
|
|
|
107
|
-
|
|
215
|
+
/** @hidden */
|
|
216
|
+
export const EncryptionModeValues: ReadonlyArray<EncryptionMode> = [
|
|
217
|
+
'REQUIRED',
|
|
218
|
+
'DISABLED',
|
|
219
|
+
'AUTO',
|
|
220
|
+
] as const;
|
|
108
221
|
|
|
109
222
|
/**
|
|
110
223
|
Basic options for loading image.
|
|
111
224
|
*/
|
|
112
|
-
export class BasicImageLoadOptions
|
|
225
|
+
export class BasicImageLoadOptions {
|
|
113
226
|
/**
|
|
114
|
-
|
|
227
|
+
If the rect is not empty, the image will be cropped to this rect before processing.
|
|
115
228
|
*/
|
|
116
|
-
public
|
|
229
|
+
public cropRect: Rectangle = { x: 0, y: 0, width: 0, height: 0 };
|
|
230
|
+
/**
|
|
231
|
+
CanvasColor color to use when converting images with alpha channel to images without alpha channel.
|
|
232
|
+
|
|
233
|
+
Default is WHITE
|
|
234
|
+
*/
|
|
235
|
+
public canvasColor: CanvasColor = 'WHITE';
|
|
117
236
|
|
|
118
237
|
/** @param source {@displayType `DeepPartial<BasicImageLoadOptions>`} */
|
|
119
238
|
public constructor(source: DeepPartial<BasicImageLoadOptions> = {}) {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
height: source.roi.height,
|
|
239
|
+
if (source.cropRect !== undefined) {
|
|
240
|
+
this.cropRect = {
|
|
241
|
+
x: source.cropRect.x,
|
|
242
|
+
y: source.cropRect.y,
|
|
243
|
+
width: source.cropRect.width,
|
|
244
|
+
height: source.cropRect.height,
|
|
127
245
|
};
|
|
128
246
|
}
|
|
247
|
+
if (source.canvasColor !== undefined) {
|
|
248
|
+
this.canvasColor = source.canvasColor;
|
|
249
|
+
}
|
|
129
250
|
}
|
|
130
251
|
}
|
|
131
252
|
|
|
132
253
|
/**
|
|
133
254
|
Options for loading images that come from sensor.
|
|
134
255
|
*/
|
|
135
|
-
export class RawImageLoadOptions
|
|
256
|
+
export class RawImageLoadOptions {
|
|
257
|
+
/**
|
|
258
|
+
If the rect is not empty, the image will be cropped to this rect before processing.
|
|
259
|
+
*/
|
|
260
|
+
public cropRect: Rectangle = { x: 0, y: 0, width: 0, height: 0 };
|
|
136
261
|
/**
|
|
137
|
-
|
|
262
|
+
Location of the image origin in the image coordinate system.
|
|
263
|
+
During loading images are flipped such that after the flip their new origin is in their top-left corner.
|
|
264
|
+
For example, an image coming from the front camera might have its origin set to the top-right, which will flip it along its vertical axis to create a mirror effect.
|
|
265
|
+
|
|
266
|
+
The origin is interpreted net of the image orientation. The origin rotates together with the image. The origin value is interpreted and the resulting flip executed AFTER the image matrix has been reoriented to have a neutral orientation.
|
|
267
|
+
|
|
268
|
+
Default is TOP_LEFT
|
|
269
|
+
*/
|
|
270
|
+
public origin: ImageOrigin = 'TOP_LEFT';
|
|
271
|
+
/**
|
|
272
|
+
CanvasColor color to use when converting images with alpha channel to images without alpha channel.
|
|
273
|
+
|
|
274
|
+
Default is WHITE
|
|
138
275
|
*/
|
|
139
|
-
public
|
|
276
|
+
public canvasColor: CanvasColor = 'WHITE';
|
|
140
277
|
/**
|
|
141
|
-
Rotation that should be applied to the image to recover correct orientation.
|
|
278
|
+
Rotation that should be applied to the image to recover correct orientation. Is applied before cropping.
|
|
142
279
|
|
|
143
280
|
Default is NONE
|
|
144
281
|
*/
|
|
@@ -146,15 +283,20 @@ export class RawImageLoadOptions extends PartiallyConstructible {
|
|
|
146
283
|
|
|
147
284
|
/** @param source {@displayType `DeepPartial<RawImageLoadOptions>`} */
|
|
148
285
|
public constructor(source: DeepPartial<RawImageLoadOptions> = {}) {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
height: source.roi.height,
|
|
286
|
+
if (source.cropRect !== undefined) {
|
|
287
|
+
this.cropRect = {
|
|
288
|
+
x: source.cropRect.x,
|
|
289
|
+
y: source.cropRect.y,
|
|
290
|
+
width: source.cropRect.width,
|
|
291
|
+
height: source.cropRect.height,
|
|
156
292
|
};
|
|
157
293
|
}
|
|
294
|
+
if (source.origin !== undefined) {
|
|
295
|
+
this.origin = source.origin;
|
|
296
|
+
}
|
|
297
|
+
if (source.canvasColor !== undefined) {
|
|
298
|
+
this.canvasColor = source.canvasColor;
|
|
299
|
+
}
|
|
158
300
|
if (source.orientation !== undefined) {
|
|
159
301
|
this.orientation = source.orientation;
|
|
160
302
|
}
|
|
@@ -164,11 +306,23 @@ export class RawImageLoadOptions extends PartiallyConstructible {
|
|
|
164
306
|
/**
|
|
165
307
|
Options for loading image from path.
|
|
166
308
|
*/
|
|
167
|
-
export class PathImageLoadOptions
|
|
309
|
+
export class PathImageLoadOptions {
|
|
310
|
+
/**
|
|
311
|
+
If the rect is not empty, the image will be cropped to this rect before processing.
|
|
312
|
+
*/
|
|
313
|
+
public cropRect: Rectangle = { x: 0, y: 0, width: 0, height: 0 };
|
|
314
|
+
/**
|
|
315
|
+
Color conversion to apply during image loading.
|
|
316
|
+
|
|
317
|
+
Default is ANY_COLOR
|
|
318
|
+
*/
|
|
319
|
+
public colorConversion: ColorConversion = 'ANY_COLOR';
|
|
168
320
|
/**
|
|
169
|
-
|
|
321
|
+
CanvasColor color to use when converting images with alpha channel to images without alpha channel.
|
|
322
|
+
|
|
323
|
+
Default is WHITE
|
|
170
324
|
*/
|
|
171
|
-
public
|
|
325
|
+
public canvasColor: CanvasColor = 'WHITE';
|
|
172
326
|
/**
|
|
173
327
|
Load mode.
|
|
174
328
|
|
|
@@ -178,21 +332,26 @@ export class PathImageLoadOptions extends PartiallyConstructible {
|
|
|
178
332
|
/**
|
|
179
333
|
Encryption mode.
|
|
180
334
|
|
|
181
|
-
Default is
|
|
335
|
+
Default is AUTO
|
|
182
336
|
*/
|
|
183
|
-
public encryptionMode: EncryptionMode = '
|
|
337
|
+
public encryptionMode: EncryptionMode = 'AUTO';
|
|
184
338
|
|
|
185
339
|
/** @param source {@displayType `DeepPartial<PathImageLoadOptions>`} */
|
|
186
340
|
public constructor(source: DeepPartial<PathImageLoadOptions> = {}) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
height: source.roi.height,
|
|
341
|
+
if (source.cropRect !== undefined) {
|
|
342
|
+
this.cropRect = {
|
|
343
|
+
x: source.cropRect.x,
|
|
344
|
+
y: source.cropRect.y,
|
|
345
|
+
width: source.cropRect.width,
|
|
346
|
+
height: source.cropRect.height,
|
|
194
347
|
};
|
|
195
348
|
}
|
|
349
|
+
if (source.colorConversion !== undefined) {
|
|
350
|
+
this.colorConversion = source.colorConversion;
|
|
351
|
+
}
|
|
352
|
+
if (source.canvasColor !== undefined) {
|
|
353
|
+
this.canvasColor = source.canvasColor;
|
|
354
|
+
}
|
|
196
355
|
if (source.loadMode !== undefined) {
|
|
197
356
|
this.loadMode = source.loadMode;
|
|
198
357
|
}
|
|
@@ -205,11 +364,23 @@ export class PathImageLoadOptions extends PartiallyConstructible {
|
|
|
205
364
|
/**
|
|
206
365
|
Options for loading image from buffer.
|
|
207
366
|
*/
|
|
208
|
-
export class BufferImageLoadOptions
|
|
367
|
+
export class BufferImageLoadOptions {
|
|
209
368
|
/**
|
|
210
|
-
|
|
369
|
+
If the rect is not empty, the image will be cropped to this rect before processing.
|
|
211
370
|
*/
|
|
212
|
-
public
|
|
371
|
+
public cropRect: Rectangle = { x: 0, y: 0, width: 0, height: 0 };
|
|
372
|
+
/**
|
|
373
|
+
Color conversion to apply during image loading.
|
|
374
|
+
|
|
375
|
+
Default is ANY_COLOR
|
|
376
|
+
*/
|
|
377
|
+
public colorConversion: ColorConversion = 'ANY_COLOR';
|
|
378
|
+
/**
|
|
379
|
+
CanvasColor color to use when converting images with alpha channel to images without alpha channel.
|
|
380
|
+
|
|
381
|
+
Default is WHITE
|
|
382
|
+
*/
|
|
383
|
+
public canvasColor: CanvasColor = 'WHITE';
|
|
213
384
|
/**
|
|
214
385
|
Load mode.
|
|
215
386
|
|
|
@@ -219,15 +390,20 @@ export class BufferImageLoadOptions extends PartiallyConstructible {
|
|
|
219
390
|
|
|
220
391
|
/** @param source {@displayType `DeepPartial<BufferImageLoadOptions>`} */
|
|
221
392
|
public constructor(source: DeepPartial<BufferImageLoadOptions> = {}) {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
height: source.roi.height,
|
|
393
|
+
if (source.cropRect !== undefined) {
|
|
394
|
+
this.cropRect = {
|
|
395
|
+
x: source.cropRect.x,
|
|
396
|
+
y: source.cropRect.y,
|
|
397
|
+
width: source.cropRect.width,
|
|
398
|
+
height: source.cropRect.height,
|
|
229
399
|
};
|
|
230
400
|
}
|
|
401
|
+
if (source.colorConversion !== undefined) {
|
|
402
|
+
this.colorConversion = source.colorConversion;
|
|
403
|
+
}
|
|
404
|
+
if (source.canvasColor !== undefined) {
|
|
405
|
+
this.canvasColor = source.canvasColor;
|
|
406
|
+
}
|
|
231
407
|
if (source.loadMode !== undefined) {
|
|
232
408
|
this.loadMode = source.loadMode;
|
|
233
409
|
}
|
|
@@ -237,7 +413,7 @@ export class BufferImageLoadOptions extends PartiallyConstructible {
|
|
|
237
413
|
/**
|
|
238
414
|
Options for saving image to a path.
|
|
239
415
|
*/
|
|
240
|
-
export class SaveImageOptions
|
|
416
|
+
export class SaveImageOptions {
|
|
241
417
|
/**
|
|
242
418
|
Quality parameter is for jpeg only and is in range 0 to 100. If -1, then settings from hibernation are used.
|
|
243
419
|
In case when the Image Ref was created with a lazy load mode and originally has the same format as the requested to save,
|
|
@@ -250,13 +426,12 @@ export class SaveImageOptions extends PartiallyConstructible {
|
|
|
250
426
|
/**
|
|
251
427
|
Encryption mode.
|
|
252
428
|
|
|
253
|
-
Default is
|
|
429
|
+
Default is AUTO
|
|
254
430
|
*/
|
|
255
|
-
public encryptionMode: EncryptionMode = '
|
|
431
|
+
public encryptionMode: EncryptionMode = 'AUTO';
|
|
256
432
|
|
|
257
433
|
/** @param source {@displayType `DeepPartial<SaveImageOptions>`} */
|
|
258
434
|
public constructor(source: DeepPartial<SaveImageOptions> = {}) {
|
|
259
|
-
super();
|
|
260
435
|
if (source.quality !== undefined) {
|
|
261
436
|
this.quality = source.quality;
|
|
262
437
|
}
|
|
@@ -269,7 +444,7 @@ export class SaveImageOptions extends PartiallyConstructible {
|
|
|
269
444
|
/**
|
|
270
445
|
Options for encoding image.
|
|
271
446
|
*/
|
|
272
|
-
export class EncodeImageOptions
|
|
447
|
+
export class EncodeImageOptions {
|
|
273
448
|
/**
|
|
274
449
|
Quality parameter is for jpeg only and is in range 0 to 100. If -1, then settings from hibernation are used.
|
|
275
450
|
In case when the Image Ref was created with a lazy load mode and originally has the same format as the requested to save,
|
|
@@ -288,7 +463,6 @@ export class EncodeImageOptions extends PartiallyConstructible {
|
|
|
288
463
|
|
|
289
464
|
/** @param source {@displayType `DeepPartial<EncodeImageOptions>`} */
|
|
290
465
|
public constructor(source: DeepPartial<EncodeImageOptions> = {}) {
|
|
291
|
-
super();
|
|
292
466
|
if (source.quality !== undefined) {
|
|
293
467
|
this.quality = source.quality;
|
|
294
468
|
}
|
|
@@ -314,21 +488,46 @@ The type of source which originated the underlying image.
|
|
|
314
488
|
- `OTHER`:
|
|
315
489
|
ImageRef was created from another type, e.g. from custom loader.
|
|
316
490
|
*/
|
|
317
|
-
export type ImageSourceType =
|
|
491
|
+
export type ImageSourceType =
|
|
492
|
+
/**
|
|
493
|
+
ImageRef was created by a call to an SDK feature, such as a scanner, image processor, etc.
|
|
494
|
+
*/
|
|
495
|
+
| 'API'
|
|
496
|
+
/**
|
|
497
|
+
ImageRef was created from a platform image, e.g. Bitmap on Android, UIImage on iOS.
|
|
498
|
+
*/
|
|
499
|
+
| 'PLATFORM_IMAGE'
|
|
500
|
+
/**
|
|
501
|
+
ImageRef was created from data from the camera.
|
|
502
|
+
*/
|
|
503
|
+
| 'CAMERA'
|
|
504
|
+
/**
|
|
505
|
+
ImageRef was created from a file.
|
|
506
|
+
*/
|
|
507
|
+
| 'FILE'
|
|
508
|
+
/**
|
|
509
|
+
ImageRef was created from an encoded buffer.
|
|
510
|
+
*/
|
|
511
|
+
| 'BUFFER'
|
|
512
|
+
/**
|
|
513
|
+
ImageRef was created from another type, e.g. from custom loader.
|
|
514
|
+
*/
|
|
515
|
+
| 'OTHER';
|
|
318
516
|
|
|
319
|
-
|
|
517
|
+
/** @hidden */
|
|
518
|
+
export const ImageSourceTypeValues: ReadonlyArray<ImageSourceType> = [
|
|
320
519
|
'API',
|
|
321
520
|
'PLATFORM_IMAGE',
|
|
322
521
|
'CAMERA',
|
|
323
522
|
'FILE',
|
|
324
523
|
'BUFFER',
|
|
325
524
|
'OTHER',
|
|
326
|
-
];
|
|
525
|
+
] as const;
|
|
327
526
|
|
|
328
527
|
/**
|
|
329
528
|
Description of source from which the ImageRef was created.
|
|
330
529
|
*/
|
|
331
|
-
export class ImageSource
|
|
530
|
+
export class ImageSource {
|
|
332
531
|
/**
|
|
333
532
|
Source type from which the ImageRef was created.
|
|
334
533
|
*/
|
|
@@ -340,7 +539,6 @@ export class ImageSource extends PartiallyConstructible {
|
|
|
340
539
|
|
|
341
540
|
/** @param source {@displayType `DeepPartial<ImageSource>`} */
|
|
342
541
|
public constructor(source: DeepPartial<ImageSource> = {}) {
|
|
343
|
-
super();
|
|
344
542
|
if (source.type !== undefined) {
|
|
345
543
|
this.type = source.type;
|
|
346
544
|
} else {
|
|
@@ -366,7 +564,7 @@ export class ImageSource extends PartiallyConstructible {
|
|
|
366
564
|
/**
|
|
367
565
|
ImageRef profile part specific to image information.
|
|
368
566
|
*/
|
|
369
|
-
export class ImageProfile
|
|
567
|
+
export class ImageProfile {
|
|
370
568
|
/**
|
|
371
569
|
Memory consumption of a memory-backed bitmap. Zero, if the image is hibernating.
|
|
372
570
|
|
|
@@ -382,7 +580,6 @@ export class ImageProfile extends PartiallyConstructible {
|
|
|
382
580
|
|
|
383
581
|
/** @param source {@displayType `DeepPartial<ImageProfile>`} */
|
|
384
582
|
public constructor(source: DeepPartial<ImageProfile> = {}) {
|
|
385
|
-
super();
|
|
386
583
|
if (source.bitmapMemoryConsumption !== undefined) {
|
|
387
584
|
this.bitmapMemoryConsumption = source.bitmapMemoryConsumption;
|
|
388
585
|
}
|
|
@@ -404,7 +601,7 @@ export class ImageProfile extends PartiallyConstructible {
|
|
|
404
601
|
/**
|
|
405
602
|
ImageRef profile which provides detailed information about stored object.
|
|
406
603
|
*/
|
|
407
|
-
export class ImageRefProfile
|
|
604
|
+
export class ImageRefProfile {
|
|
408
605
|
/**
|
|
409
606
|
Information about the strong and serialized references to the image.
|
|
410
607
|
*/
|
|
@@ -420,7 +617,6 @@ export class ImageRefProfile extends PartiallyConstructible {
|
|
|
420
617
|
|
|
421
618
|
/** @param source {@displayType `DeepPartial<ImageRefProfile>`} */
|
|
422
619
|
public constructor(source: DeepPartial<ImageRefProfile> = {}) {
|
|
423
|
-
super();
|
|
424
620
|
if (source.refInfo !== undefined) {
|
|
425
621
|
this.refInfo = new RefCountedObjectProfile(source.refInfo);
|
|
426
622
|
} else {
|
|
@@ -452,7 +648,7 @@ export class ImageRefProfile extends PartiallyConstructible {
|
|
|
452
648
|
/**
|
|
453
649
|
Snapshot of all alive ImageRefs.
|
|
454
650
|
*/
|
|
455
|
-
export class ImageRefPoolSnapshot
|
|
651
|
+
export class ImageRefPoolSnapshot {
|
|
456
652
|
/**
|
|
457
653
|
Detailed profiles of all alive ImageRefs.
|
|
458
654
|
*/
|
|
@@ -466,9 +662,8 @@ export class ImageRefPoolSnapshot extends PartiallyConstructible {
|
|
|
466
662
|
|
|
467
663
|
/** @param source {@displayType `DeepPartial<ImageRefPoolSnapshot>`} */
|
|
468
664
|
public constructor(source: DeepPartial<ImageRefPoolSnapshot> = {}) {
|
|
469
|
-
super();
|
|
470
665
|
if (source.imageRefProfiles !== undefined) {
|
|
471
|
-
this.imageRefProfiles = source.imageRefProfiles.map((it:
|
|
666
|
+
this.imageRefProfiles = source.imageRefProfiles.map((it: DeepPartial<ImageRefProfile>) => {
|
|
472
667
|
return new ImageRefProfile(it);
|
|
473
668
|
});
|
|
474
669
|
} else {
|
|
@@ -494,7 +689,7 @@ export class ImageRefPoolSnapshot extends PartiallyConstructible {
|
|
|
494
689
|
/**
|
|
495
690
|
difference between two snapshots.
|
|
496
691
|
*/
|
|
497
|
-
export class ImageRefPoolSnapshotsDiff
|
|
692
|
+
export class ImageRefPoolSnapshotsDiff {
|
|
498
693
|
/**
|
|
499
694
|
Difference between total memory consumption in two snapshots.
|
|
500
695
|
|
|
@@ -516,26 +711,25 @@ export class ImageRefPoolSnapshotsDiff extends PartiallyConstructible {
|
|
|
516
711
|
|
|
517
712
|
/** @param source {@displayType `DeepPartial<ImageRefPoolSnapshotsDiff>`} */
|
|
518
713
|
public constructor(source: DeepPartial<ImageRefPoolSnapshotsDiff> = {}) {
|
|
519
|
-
super();
|
|
520
714
|
if (source.totalMemoryConsumptionDiff !== undefined) {
|
|
521
715
|
this.totalMemoryConsumptionDiff = source.totalMemoryConsumptionDiff;
|
|
522
716
|
}
|
|
523
717
|
if (source.removed !== undefined) {
|
|
524
|
-
this.removed = source.removed.map((it:
|
|
718
|
+
this.removed = source.removed.map((it: DeepPartial<string>) => {
|
|
525
719
|
return it;
|
|
526
720
|
});
|
|
527
721
|
} else {
|
|
528
722
|
throw new Error('removed must be present in constructor argument');
|
|
529
723
|
}
|
|
530
724
|
if (source.added !== undefined) {
|
|
531
|
-
this.added = source.added.map((it:
|
|
725
|
+
this.added = source.added.map((it: DeepPartial<string>) => {
|
|
532
726
|
return it;
|
|
533
727
|
});
|
|
534
728
|
} else {
|
|
535
729
|
throw new Error('added must be present in constructor argument');
|
|
536
730
|
}
|
|
537
731
|
if (source.modified !== undefined) {
|
|
538
|
-
this.modified = source.modified.map((it:
|
|
732
|
+
this.modified = source.modified.map((it: DeepPartial<string>) => {
|
|
539
733
|
return it;
|
|
540
734
|
});
|
|
541
735
|
} else {
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
2
|
+
/// Generated from core/schemas/ImageTypes.yaml
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
Image rotation.
|
|
6
|
+
|
|
7
|
+
- `NONE`:
|
|
8
|
+
No rotation.
|
|
9
|
+
- `CLOCKWISE_90`:
|
|
10
|
+
90 degrees clockwise rotation.
|
|
11
|
+
- `CLOCKWISE_180`:
|
|
12
|
+
180 degrees rotation.
|
|
13
|
+
- `COUNTERCLOCKWISE_90`:
|
|
14
|
+
90 degrees counterclockwise rotation.
|
|
15
|
+
*/
|
|
16
|
+
export type ImageRotation =
|
|
17
|
+
/**
|
|
18
|
+
No rotation.
|
|
19
|
+
*/
|
|
20
|
+
| 'NONE'
|
|
21
|
+
/**
|
|
22
|
+
90 degrees clockwise rotation.
|
|
23
|
+
*/
|
|
24
|
+
| 'CLOCKWISE_90'
|
|
25
|
+
/**
|
|
26
|
+
180 degrees rotation.
|
|
27
|
+
*/
|
|
28
|
+
| 'CLOCKWISE_180'
|
|
29
|
+
/**
|
|
30
|
+
90 degrees counterclockwise rotation.
|
|
31
|
+
*/
|
|
32
|
+
| 'COUNTERCLOCKWISE_90';
|
|
33
|
+
|
|
34
|
+
/** @hidden */
|
|
35
|
+
export const ImageRotationValues: ReadonlyArray<ImageRotation> = [
|
|
36
|
+
'NONE',
|
|
37
|
+
'CLOCKWISE_90',
|
|
38
|
+
'CLOCKWISE_180',
|
|
39
|
+
'COUNTERCLOCKWISE_90',
|
|
40
|
+
] as const;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
Location of the image origin in the image coordinate system.
|
|
44
|
+
|
|
45
|
+
- `TOP_LEFT`:
|
|
46
|
+
Origin is at the top left corner of the image.
|
|
47
|
+
- `TOP_RIGHT`:
|
|
48
|
+
Origin is at the top right corner of the image.
|
|
49
|
+
- `BOTTOM_LEFT`:
|
|
50
|
+
Origin is at the bottom left corner of the image.
|
|
51
|
+
- `BOTTOM_RIGHT`:
|
|
52
|
+
Origin is at the bottom right corner of the image.
|
|
53
|
+
*/
|
|
54
|
+
export type ImageOrigin =
|
|
55
|
+
/**
|
|
56
|
+
Origin is at the top left corner of the image.
|
|
57
|
+
*/
|
|
58
|
+
| 'TOP_LEFT'
|
|
59
|
+
/**
|
|
60
|
+
Origin is at the top right corner of the image.
|
|
61
|
+
*/
|
|
62
|
+
| 'TOP_RIGHT'
|
|
63
|
+
/**
|
|
64
|
+
Origin is at the bottom left corner of the image.
|
|
65
|
+
*/
|
|
66
|
+
| 'BOTTOM_LEFT'
|
|
67
|
+
/**
|
|
68
|
+
Origin is at the bottom right corner of the image.
|
|
69
|
+
*/
|
|
70
|
+
| 'BOTTOM_RIGHT';
|
|
71
|
+
|
|
72
|
+
/** @hidden */
|
|
73
|
+
export const ImageOriginValues: ReadonlyArray<ImageOrigin> = [
|
|
74
|
+
'TOP_LEFT',
|
|
75
|
+
'TOP_RIGHT',
|
|
76
|
+
'BOTTOM_LEFT',
|
|
77
|
+
'BOTTOM_RIGHT',
|
|
78
|
+
] as const;
|