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,13 +1,9 @@
|
|
|
1
|
-
import { NativeModules
|
|
2
|
-
import {
|
|
1
|
+
import { NativeModules } from 'react-native';
|
|
2
|
+
import { InvalidImageRefError } from '../../base/errors';
|
|
3
3
|
import { BufferImageLoadOptions, EncodeImageOptions, ImageInfo, ImageRefPoolSnapshot, PathImageLoadOptions, SaveImageOptions } from './ImageRefTypes';
|
|
4
|
-
const
|
|
5
|
-
ios: "- You have run 'pod install'\n",
|
|
6
|
-
default: ''
|
|
7
|
-
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
8
|
-
const ScanbotBarcodeSDKImpl = NativeModules.ScanbotBarcodeSdk ? NativeModules.ScanbotBarcodeSdk : new Proxy({}, {
|
|
4
|
+
const ScanbotBarcodeSDKModule = NativeModules.ScanbotBarcodeSdk ? NativeModules.ScanbotBarcodeSdk : new Proxy({}, {
|
|
9
5
|
get() {
|
|
10
|
-
throw new Error(
|
|
6
|
+
throw new Error();
|
|
11
7
|
}
|
|
12
8
|
});
|
|
13
9
|
class AutoReleasePool {
|
|
@@ -43,14 +39,13 @@ export async function autorelease(computation) {
|
|
|
43
39
|
releasePoolRef();
|
|
44
40
|
}
|
|
45
41
|
}
|
|
46
|
-
|
|
42
|
+
class AutoReleasable {
|
|
47
43
|
retained = false;
|
|
48
44
|
constructor(uniqueId) {
|
|
49
|
-
super();
|
|
50
45
|
if (uniqueId) {
|
|
51
46
|
if (AutoReleasePool.globalPull === null) {
|
|
52
47
|
const errorMessage = 'Initializing an object that contains a ScanbotImage instance as REFERENCE must be wrapped inside an autorelease pool. For example:' + '\n autorelease(()=>{' + '\n const barcodeItem = new BarcodeItem(source);' + '\n });';
|
|
53
|
-
throw new
|
|
48
|
+
throw new InvalidImageRefError(errorMessage);
|
|
54
49
|
}
|
|
55
50
|
AutoReleasePool.globalPull.addObject(this);
|
|
56
51
|
}
|
|
@@ -72,7 +67,7 @@ export class ImageRef extends AutoReleasable {
|
|
|
72
67
|
this.uniqueId = uniqueId;
|
|
73
68
|
this._buffer = buffer;
|
|
74
69
|
}
|
|
75
|
-
static
|
|
70
|
+
static from(source) {
|
|
76
71
|
if (source.buffer) {
|
|
77
72
|
return new ImageRef(undefined, source.buffer);
|
|
78
73
|
} else {
|
|
@@ -81,16 +76,18 @@ export class ImageRef extends AutoReleasable {
|
|
|
81
76
|
}
|
|
82
77
|
static deserialize(serializedRef) {
|
|
83
78
|
if (!serializedRef.uniqueId) {
|
|
84
|
-
throw new
|
|
79
|
+
throw new InvalidImageRefError('uniqueId must be present in serializedRef argument');
|
|
85
80
|
}
|
|
86
81
|
|
|
87
82
|
// The promise is intentionally not awaited here
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
ScanbotBarcodeSDKModule.imageRefDeserialize({
|
|
84
|
+
uniqueId: serializedRef.uniqueId
|
|
90
85
|
}).then(success => {
|
|
91
86
|
if (!success) {
|
|
92
87
|
console.error(`Unsuccessful deserialization of ImageRef with uniqueId ${serializedRef.uniqueId}`);
|
|
93
88
|
}
|
|
89
|
+
}).catch(error => {
|
|
90
|
+
console.error(`Error while deserializing ImageRef with uniqueId ${serializedRef.uniqueId}: ${error}`);
|
|
94
91
|
});
|
|
95
92
|
return new ImageRef(serializedRef.uniqueId, undefined);
|
|
96
93
|
}
|
|
@@ -113,12 +110,14 @@ export class ImageRef extends AutoReleasable {
|
|
|
113
110
|
this.throwErrorIfReleased();
|
|
114
111
|
|
|
115
112
|
// The promise is intentionally not awaited here
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
ScanbotBarcodeSDKModule.imageRefSerialize({
|
|
114
|
+
uniqueId: this.uniqueId
|
|
118
115
|
}).then(success => {
|
|
119
116
|
if (!success) {
|
|
120
117
|
console.error(`Unsuccessful serialization of ImageRef with uniqueId ${this.uniqueId}`);
|
|
121
118
|
}
|
|
119
|
+
}).catch(error => {
|
|
120
|
+
console.error(`Error while serializing ImageRef with uniqueId ${this.uniqueId}: ${error}`);
|
|
122
121
|
});
|
|
123
122
|
return {
|
|
124
123
|
uniqueId: this.uniqueId
|
|
@@ -127,11 +126,14 @@ export class ImageRef extends AutoReleasable {
|
|
|
127
126
|
}
|
|
128
127
|
|
|
129
128
|
/**
|
|
130
|
-
* Creates ImageRef with uniqueId from the
|
|
129
|
+
* Creates ImageRef with uniqueId from the file uri to an image.
|
|
131
130
|
*/
|
|
132
131
|
static async fromImageFileUri(uri, options = new PathImageLoadOptions()) {
|
|
133
132
|
try {
|
|
134
|
-
const serializedImageRefUniqueId = await
|
|
133
|
+
const serializedImageRefUniqueId = await ScanbotBarcodeSDKModule.imageRefFromImageFileUri({
|
|
134
|
+
uri,
|
|
135
|
+
options
|
|
136
|
+
});
|
|
135
137
|
return ImageRef.deserialize({
|
|
136
138
|
uniqueId: serializedImageRefUniqueId
|
|
137
139
|
});
|
|
@@ -146,25 +148,10 @@ export class ImageRef extends AutoReleasable {
|
|
|
146
148
|
*/
|
|
147
149
|
static async fromEncodedBuffer(buffer, options = new BufferImageLoadOptions()) {
|
|
148
150
|
try {
|
|
149
|
-
const serializedImageRefUniqueId = await
|
|
150
|
-
|
|
151
|
-
|
|
151
|
+
const serializedImageRefUniqueId = await ScanbotBarcodeSDKModule.imageRefFromEncodedBuffer({
|
|
152
|
+
buffer,
|
|
153
|
+
options
|
|
152
154
|
});
|
|
153
|
-
} catch (error) {
|
|
154
|
-
console.error(error);
|
|
155
|
-
return null;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Creates a deep copy of the image.
|
|
161
|
-
* If uniqueId is not set or the image is already released, an exception will be thrown.
|
|
162
|
-
*/
|
|
163
|
-
async clone() {
|
|
164
|
-
this.throwErrorIfUniqueIdIsMissing();
|
|
165
|
-
this.throwErrorIfReleased();
|
|
166
|
-
try {
|
|
167
|
-
const serializedImageRefUniqueId = await ScanbotBarcodeSDKImpl.imageRefClone(this.uniqueId);
|
|
168
155
|
return ImageRef.deserialize({
|
|
169
156
|
uniqueId: serializedImageRefUniqueId
|
|
170
157
|
});
|
|
@@ -182,7 +169,9 @@ export class ImageRef extends AutoReleasable {
|
|
|
182
169
|
this.throwErrorIfUniqueIdIsMissing();
|
|
183
170
|
this.throwErrorIfReleased();
|
|
184
171
|
try {
|
|
185
|
-
await
|
|
172
|
+
await ScanbotBarcodeSDKModule.imageRefHibernate({
|
|
173
|
+
uniqueId: this.uniqueId
|
|
174
|
+
});
|
|
186
175
|
} catch (error) {
|
|
187
176
|
console.error(error);
|
|
188
177
|
}
|
|
@@ -197,7 +186,9 @@ export class ImageRef extends AutoReleasable {
|
|
|
197
186
|
this.throwErrorIfUniqueIdIsMissing();
|
|
198
187
|
this.throwErrorIfReleased();
|
|
199
188
|
try {
|
|
200
|
-
await
|
|
189
|
+
await ScanbotBarcodeSDKModule.imageRefClear({
|
|
190
|
+
uniqueId: this.uniqueId
|
|
191
|
+
});
|
|
201
192
|
} catch (error) {
|
|
202
193
|
console.error(error);
|
|
203
194
|
}
|
|
@@ -211,7 +202,9 @@ export class ImageRef extends AutoReleasable {
|
|
|
211
202
|
this.throwErrorIfUniqueIdIsMissing();
|
|
212
203
|
this.throwErrorIfReleased();
|
|
213
204
|
try {
|
|
214
|
-
const imageInfo = await
|
|
205
|
+
const imageInfo = await ScanbotBarcodeSDKModule.imageRefInfo({
|
|
206
|
+
uniqueId: this.uniqueId
|
|
207
|
+
});
|
|
215
208
|
return new ImageInfo(imageInfo);
|
|
216
209
|
} catch (error) {
|
|
217
210
|
console.error(error);
|
|
@@ -227,7 +220,11 @@ export class ImageRef extends AutoReleasable {
|
|
|
227
220
|
this.throwErrorIfUniqueIdIsMissing();
|
|
228
221
|
this.throwErrorIfReleased();
|
|
229
222
|
try {
|
|
230
|
-
return await
|
|
223
|
+
return await ScanbotBarcodeSDKModule.imageRefSaveImage({
|
|
224
|
+
uniqueId: this.uniqueId,
|
|
225
|
+
path,
|
|
226
|
+
options
|
|
227
|
+
});
|
|
231
228
|
} catch (error) {
|
|
232
229
|
console.error(error);
|
|
233
230
|
return false;
|
|
@@ -244,7 +241,10 @@ export class ImageRef extends AutoReleasable {
|
|
|
244
241
|
this.throwErrorIfUniqueIdIsMissing();
|
|
245
242
|
this.throwErrorIfReleased();
|
|
246
243
|
try {
|
|
247
|
-
const imageAsBuffer = await
|
|
244
|
+
const imageAsBuffer = await ScanbotBarcodeSDKModule.imageRefEncodeImage({
|
|
245
|
+
uniqueId: this.uniqueId,
|
|
246
|
+
options: new EncodeImageOptions()
|
|
247
|
+
});
|
|
248
248
|
if (imageAsBuffer) {
|
|
249
249
|
this._buffer = imageAsBuffer;
|
|
250
250
|
}
|
|
@@ -260,14 +260,17 @@ export class ImageRef extends AutoReleasable {
|
|
|
260
260
|
async encodeImage(options) {
|
|
261
261
|
if (this._buffer) {
|
|
262
262
|
if (options) {
|
|
263
|
-
throw new
|
|
263
|
+
throw new InvalidImageRefError('EncodeImageOptions are not available when image is already encoded to base64');
|
|
264
264
|
}
|
|
265
265
|
return this._buffer;
|
|
266
266
|
} else {
|
|
267
267
|
this.throwErrorIfUniqueIdIsMissing();
|
|
268
268
|
this.throwErrorIfReleased();
|
|
269
269
|
try {
|
|
270
|
-
return await
|
|
270
|
+
return await ScanbotBarcodeSDKModule.imageRefEncodeImage({
|
|
271
|
+
uniqueId: this.uniqueId,
|
|
272
|
+
options: options ?? new EncodeImageOptions()
|
|
273
|
+
});
|
|
271
274
|
} catch (error) {
|
|
272
275
|
console.error(error);
|
|
273
276
|
return null;
|
|
@@ -283,7 +286,9 @@ export class ImageRef extends AutoReleasable {
|
|
|
283
286
|
this.throwErrorIfUniqueIdIsMissing();
|
|
284
287
|
if (!this.released) {
|
|
285
288
|
// The promise is intentionally not awaited here
|
|
286
|
-
|
|
289
|
+
ScanbotBarcodeSDKModule.imageRefRelease({
|
|
290
|
+
uniqueId: this.uniqueId
|
|
291
|
+
}).catch(error => {
|
|
287
292
|
console.error(`Error while releasing ImageRef with uniqueId ${this.uniqueId}: ${error}`);
|
|
288
293
|
});
|
|
289
294
|
this.released = true;
|
|
@@ -296,7 +301,7 @@ export class ImageRef extends AutoReleasable {
|
|
|
296
301
|
*/
|
|
297
302
|
static async makeSnapshot() {
|
|
298
303
|
try {
|
|
299
|
-
const snapshot = await
|
|
304
|
+
const snapshot = await ScanbotBarcodeSDKModule.makeSnapshot();
|
|
300
305
|
return new ImageRefPoolSnapshot(snapshot);
|
|
301
306
|
} catch (error) {
|
|
302
307
|
console.error(error);
|
|
@@ -309,16 +314,16 @@ export class ImageRef extends AutoReleasable {
|
|
|
309
314
|
*/
|
|
310
315
|
static releaseAll() {
|
|
311
316
|
// The promise is intentionally not awaited here
|
|
312
|
-
|
|
317
|
+
ScanbotBarcodeSDKModule.imageRefReleaseAll().catch(() => {});
|
|
313
318
|
}
|
|
314
319
|
throwErrorIfUniqueIdIsMissing() {
|
|
315
320
|
if (!this.uniqueId) {
|
|
316
|
-
throw new
|
|
321
|
+
throw new InvalidImageRefError('uniqueId is missing');
|
|
317
322
|
}
|
|
318
323
|
}
|
|
319
324
|
throwErrorIfReleased() {
|
|
320
325
|
if (this.released) {
|
|
321
|
-
throw new
|
|
326
|
+
throw new InvalidImageRefError(`ImageRef with uniqueId ${this.uniqueId} has been released`);
|
|
322
327
|
}
|
|
323
328
|
}
|
|
324
329
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NativeModules","InvalidImageRefError","BufferImageLoadOptions","EncodeImageOptions","ImageInfo","ImageRefPoolSnapshot","PathImageLoadOptions","SaveImageOptions","ScanbotBarcodeSDKModule","ScanbotBarcodeSdk","Proxy","get","Error","AutoReleasePool","globalPull","globalPullReferences","poolObjects","releaseAll","obj","isRetained","release","addObject","push","autorelease","computation","releasePoolRef","AutoReleasable","retained","constructor","uniqueId","errorMessage","retain","ImageRef","released","buffer","_buffer","from","source","undefined","deserialize","serializedRef","imageRefDeserialize","then","success","console","error","catch","serialize","imageSerializationMode","encodedImage","encodeImage","throwErrorIfUniqueIdIsMissing","throwErrorIfReleased","imageRefSerialize","fromImageFileUri","uri","options","serializedImageRefUniqueId","imageRefFromImageFileUri","fromEncodedBuffer","imageRefFromEncodedBuffer","hibernate","imageRefHibernate","clear","imageRefClear","info","imageInfo","imageRefInfo","saveImage","path","imageRefSaveImage","encodeInPlace","imageAsBuffer","imageRefEncodeImage","imageRefRelease","makeSnapshot","snapshot","imageRefReleaseAll"],"sourceRoot":"../../../../../src","sources":["types/core/image/image.ts"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;AAC5C,SAASC,oBAAoB,QAAQ,mBAAmB;AAGxD,SACEC,sBAAsB,EACtBC,kBAAkB,EAClBC,SAAS,EACTC,oBAAoB,EACpBC,oBAAoB,EACpBC,gBAAgB,QACX,iBAAiB;AAExB,MAAMC,uBAAuB,GAAGR,aAAa,CAACS,iBAAiB,GAC3DT,aAAa,CAACS,iBAAiB,GAC/B,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAAC,CAAC;EACnB;AACF,CACF,CAAC;AAEL,MAAMC,eAAe,CAAC;EACpB,OAAOC,UAAU,GAA2B,IAAI;EAChD,OAAOC,oBAAoB,GAAW,CAAC;EAC/BC,WAAW,GAAqB,EAAE;EAE1CC,UAAUA,CAAA,EAAG;IACX,KAAK,MAAMC,GAAG,IAAI,IAAI,CAACF,WAAW,EAAE;MAClC,IAAI,CAACE,GAAG,CAACC,UAAU,CAAC,CAAC,EAAE;QACrBD,GAAG,CAACE,OAAO,CAAC,CAAC;MACf;IACF;EACF;EAEAC,SAASA,CAACH,GAAmB,EAAE;IAC7B,IAAI,CAACF,WAAW,CAACM,IAAI,CAACJ,GAAG,CAAC;EAC5B;AACF;AAEA,OAAO,eAAeK,WAAWA,CAC/BC,WAA6C,EAC3B;EAClB,IAAIX,eAAe,CAACC,UAAU,KAAK,IAAI,EAAE;IACvCD,eAAe,CAACC,UAAU,GAAG,IAAID,eAAe,CAAC,CAAC;EACpD;EAEAA,eAAe,CAACE,oBAAoB,EAAE;EAEtC,MAAMU,cAAc,GAAGA,CAAA,KAAM;IAC3BZ,eAAe,CA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7F;EACF;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["types/core/image/index.ts"],"mappings":"AAAA,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './barcode';
|
|
2
|
+
export * from './camera';
|
|
3
|
+
export * from './common';
|
|
4
|
+
export * from './generic_document';
|
|
5
|
+
export * from './geometry';
|
|
6
|
+
export * from './image';
|
|
7
|
+
export * from './licensing';
|
|
8
|
+
export * from './ui_v2';
|
|
9
|
+
export * from './utils';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["types/core/index.ts"],"mappings":"AAAA,cAAc,WAAW;AACzB,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,oBAAoB;AAClC,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,aAAa;AAC3B,cAAc,SAAS;AACvB,cAAc,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
2
|
+
/// Generated from core/schemas/LicensingTypes.yaml
|
|
3
|
+
|
|
4
|
+
import { ToJsonConfiguration } from '../common/JsonSerializationTypes';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
Status of the license plate scanner.
|
|
8
|
+
|
|
9
|
+
- `OKAY`:
|
|
10
|
+
License is valid and accepted.
|
|
11
|
+
- `TRIAL`:
|
|
12
|
+
No license set yet. The SDK is in trial mode.
|
|
13
|
+
- `OKAY_EXPIRING_SOON`:
|
|
14
|
+
License is valid but will expire soon. Make sure to update your license before it expires to ensure uninterrupted function.
|
|
15
|
+
- `FAILURE_NOT_SET`:
|
|
16
|
+
No license set. On platforms that support trial mode, it means that the SDK's trial mode is over.
|
|
17
|
+
- `FAILURE_CORRUPTED`:
|
|
18
|
+
No license active. The set license was unreadable or has an invalid format.
|
|
19
|
+
- `FAILURE_WRONG_OS`:
|
|
20
|
+
No license active. The set license does not cover the current operating system.
|
|
21
|
+
- `FAILURE_APP_ID_MISMATCH`:
|
|
22
|
+
No license active. The set license does not cover the current app's bundle identifier.
|
|
23
|
+
- `FAILURE_EXPIRED`:
|
|
24
|
+
No license active. The set license is valid but it has expired.
|
|
25
|
+
- `FAILURE_SERVER`:
|
|
26
|
+
No license active. The online license check failed.
|
|
27
|
+
- `FAILURE_VERSION`:
|
|
28
|
+
No license active. The set license does not cover the current SDK version.
|
|
29
|
+
- `FAILURE_INACTIVE`:
|
|
30
|
+
No license active. The set license is not yet active.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/** @hidden */
|
|
34
|
+
export const LicenseStatusValues = ['OKAY', 'TRIAL', 'OKAY_EXPIRING_SOON', 'FAILURE_NOT_SET', 'FAILURE_CORRUPTED', 'FAILURE_WRONG_OS', 'FAILURE_APP_ID_MISMATCH', 'FAILURE_EXPIRED', 'FAILURE_SERVER', 'FAILURE_VERSION', 'FAILURE_INACTIVE'];
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
Description of error that occurred during device deregistration.
|
|
38
|
+
*/
|
|
39
|
+
export class DeviceDeregistrationError {
|
|
40
|
+
/**
|
|
41
|
+
Sequential number of the device registration. Starts with 0. Each time a call to initializeLicense with a new license is made, the device ID.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
Error message describing the error.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/** @param source {@displayType `DeepPartial<DeviceDeregistrationError>`} */
|
|
49
|
+
constructor(source = {}) {
|
|
50
|
+
if (source.deviceId !== undefined) {
|
|
51
|
+
this.deviceId = source.deviceId;
|
|
52
|
+
} else {
|
|
53
|
+
throw new Error('deviceId must be present in constructor argument');
|
|
54
|
+
}
|
|
55
|
+
if (source.errorMessage !== undefined) {
|
|
56
|
+
this.errorMessage = source.errorMessage;
|
|
57
|
+
} else {
|
|
58
|
+
throw new Error('errorMessage must be present in constructor argument');
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
serialize(config = new ToJsonConfiguration()) {
|
|
62
|
+
return {
|
|
63
|
+
deviceId: this.deviceId,
|
|
64
|
+
errorMessage: this.errorMessage
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
Information about the SDK license.
|
|
71
|
+
*/
|
|
72
|
+
export class LicenseInfo {
|
|
73
|
+
/**
|
|
74
|
+
License status.
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
True if the license status corresponds to a valid license.
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
Message describing the license status.
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
Expiration timestamp of the license or trial period in seconds since the UNIX epoch.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
Expiration date of the license or trial period in ISO 8601 date-time format.
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
Additional error message in case of a license error.
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
True if an online license check is in progress.
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
The currently active license. May be different from the license used to initialize
|
|
103
|
+
the SDK if the online license check has completed and the server has sent
|
|
104
|
+
an updated license.
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
Number of devices the license is valid for, if the license is floating.
|
|
109
|
+
*/
|
|
110
|
+
devices = null;
|
|
111
|
+
/**
|
|
112
|
+
Time in milliseconds until the next online license check will be performed. -1 if no online license check is scheduled.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
List of errors that occurred during device deregistration. If for some device deregistration completed successfully, it will not be listed here. For each device at most one entry will be present.
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
/** @param source {@displayType `DeepPartial<LicenseInfo>`} */
|
|
120
|
+
constructor(source = {}) {
|
|
121
|
+
if (source.status !== undefined) {
|
|
122
|
+
this.status = source.status;
|
|
123
|
+
} else {
|
|
124
|
+
throw new Error('status must be present in constructor argument');
|
|
125
|
+
}
|
|
126
|
+
if (source.isValid !== undefined) {
|
|
127
|
+
this.isValid = source.isValid;
|
|
128
|
+
} else {
|
|
129
|
+
throw new Error('isValid must be present in constructor argument');
|
|
130
|
+
}
|
|
131
|
+
if (source.licenseStatusMessage !== undefined) {
|
|
132
|
+
this.licenseStatusMessage = source.licenseStatusMessage;
|
|
133
|
+
} else {
|
|
134
|
+
throw new Error('licenseStatusMessage must be present in constructor argument');
|
|
135
|
+
}
|
|
136
|
+
if (source.expirationTimestamp !== undefined) {
|
|
137
|
+
this.expirationTimestamp = source.expirationTimestamp;
|
|
138
|
+
} else {
|
|
139
|
+
throw new Error('expirationTimestamp must be present in constructor argument');
|
|
140
|
+
}
|
|
141
|
+
if (source.expirationDateString !== undefined) {
|
|
142
|
+
this.expirationDateString = source.expirationDateString;
|
|
143
|
+
} else {
|
|
144
|
+
throw new Error('expirationDateString must be present in constructor argument');
|
|
145
|
+
}
|
|
146
|
+
if (source.errorMessage !== undefined) {
|
|
147
|
+
this.errorMessage = source.errorMessage;
|
|
148
|
+
} else {
|
|
149
|
+
throw new Error('errorMessage must be present in constructor argument');
|
|
150
|
+
}
|
|
151
|
+
if (source.onlineLicenseCheckInProgress !== undefined) {
|
|
152
|
+
this.onlineLicenseCheckInProgress = source.onlineLicenseCheckInProgress;
|
|
153
|
+
} else {
|
|
154
|
+
throw new Error('onlineLicenseCheckInProgress must be present in constructor argument');
|
|
155
|
+
}
|
|
156
|
+
if (source.license !== undefined) {
|
|
157
|
+
this.license = source.license;
|
|
158
|
+
} else {
|
|
159
|
+
throw new Error('license must be present in constructor argument');
|
|
160
|
+
}
|
|
161
|
+
if (source.devices !== undefined) {
|
|
162
|
+
this.devices = source.devices != null ? source.devices : null;
|
|
163
|
+
}
|
|
164
|
+
if (source.nextOnlineLicenseCheckInMs !== undefined) {
|
|
165
|
+
this.nextOnlineLicenseCheckInMs = source.nextOnlineLicenseCheckInMs;
|
|
166
|
+
} else {
|
|
167
|
+
throw new Error('nextOnlineLicenseCheckInMs must be present in constructor argument');
|
|
168
|
+
}
|
|
169
|
+
if (source.deviceDeregistationErrors !== undefined) {
|
|
170
|
+
this.deviceDeregistationErrors = source.deviceDeregistationErrors.map(it => {
|
|
171
|
+
return new DeviceDeregistrationError(it);
|
|
172
|
+
});
|
|
173
|
+
} else {
|
|
174
|
+
throw new Error('deviceDeregistationErrors must be present in constructor argument');
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
serialize(config = new ToJsonConfiguration()) {
|
|
178
|
+
return {
|
|
179
|
+
status: this.status,
|
|
180
|
+
isValid: this.isValid,
|
|
181
|
+
licenseStatusMessage: this.licenseStatusMessage,
|
|
182
|
+
expirationTimestamp: this.expirationTimestamp,
|
|
183
|
+
expirationDateString: this.expirationDateString,
|
|
184
|
+
errorMessage: this.errorMessage,
|
|
185
|
+
onlineLicenseCheckInProgress: this.onlineLicenseCheckInProgress,
|
|
186
|
+
license: this.license,
|
|
187
|
+
devices: this.devices != null ? this.devices : null,
|
|
188
|
+
nextOnlineLicenseCheckInMs: this.nextOnlineLicenseCheckInMs,
|
|
189
|
+
deviceDeregistationErrors: this.deviceDeregistationErrors.map(it => {
|
|
190
|
+
return it.serialize(config);
|
|
191
|
+
})
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
License features.
|
|
198
|
+
|
|
199
|
+
- `BARCODE_SCANNER`:
|
|
200
|
+
Barcode scanner.
|
|
201
|
+
- `CHECK_SCANNER`:
|
|
202
|
+
Check scanner.
|
|
203
|
+
- `CREDIT_CARD_SCANNER`:
|
|
204
|
+
Credit card scanner.
|
|
205
|
+
- `IMAGE_PROCESSING`:
|
|
206
|
+
Image processing.
|
|
207
|
+
- `DOCUMENT_SCANNER`:
|
|
208
|
+
Document scanner.
|
|
209
|
+
- `LICENSE_PLATE_SCANNER`:
|
|
210
|
+
License plate scanner.
|
|
211
|
+
- `MEDICAL_CERTIFICATE_SCANNER`:
|
|
212
|
+
Medical certificate scanner.
|
|
213
|
+
- `MRZ_SCANNER`:
|
|
214
|
+
MRZ scanner.
|
|
215
|
+
- `OCR`:
|
|
216
|
+
OCR.
|
|
217
|
+
- `TEXT_PATTERN_SCANNER`:
|
|
218
|
+
Text pattern scanner.
|
|
219
|
+
- `PDF_CREATION`:
|
|
220
|
+
PDF creation.
|
|
221
|
+
- `ID_CARD_SCANNER`:
|
|
222
|
+
ID card scanner.
|
|
223
|
+
- `DRIVER_LICENSE_SCANNER`:
|
|
224
|
+
Driver license scanner.
|
|
225
|
+
- `EHIC_SCANNER`:
|
|
226
|
+
EHIC scanner.
|
|
227
|
+
- `DOCUMENT_CLASSIFICATION`:
|
|
228
|
+
Document classification.
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
/** @hidden */
|
|
232
|
+
export const FeatureValues = ['BARCODE_SCANNER', 'CHECK_SCANNER', 'CREDIT_CARD_SCANNER', 'IMAGE_PROCESSING', 'DOCUMENT_SCANNER', 'LICENSE_PLATE_SCANNER', 'MEDICAL_CERTIFICATE_SCANNER', 'MRZ_SCANNER', 'OCR', 'TEXT_PATTERN_SCANNER', 'PDF_CREATION', 'ID_CARD_SCANNER', 'DRIVER_LICENSE_SCANNER', 'EHIC_SCANNER', 'DOCUMENT_CLASSIFICATION'];
|
|
233
|
+
//# sourceMappingURL=LicensingTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ToJsonConfiguration","LicenseStatusValues","DeviceDeregistrationError","constructor","source","deviceId","undefined","Error","errorMessage","serialize","config","LicenseInfo","devices","status","isValid","licenseStatusMessage","expirationTimestamp","expirationDateString","onlineLicenseCheckInProgress","license","nextOnlineLicenseCheckInMs","deviceDeregistationErrors","map","it","FeatureValues"],"sourceRoot":"../../../../../src","sources":["types/core/licensing/LicensingTypes.ts"],"mappings":"AAAA;AACA;;AAEA,SAASA,mBAAmB,QAAQ,kCAAkC;;AAGtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA+CA;AACA,OAAO,MAAMC,mBAAiD,GAAG,CAC/D,MAAM,EACN,OAAO,EACP,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,CACV;;AAEV;AACA;AACA;AACA,OAAO,MAAMC,yBAAyB,CAAC;EACrC;AACF;AACA;;EAEE;AACF;AACA;;EAGE;EACOC,WAAWA,CAACC,MAA8C,GAAG,CAAC,CAAC,EAAE;IACtE,IAAIA,MAAM,CAACC,QAAQ,KAAKC,SAAS,EAAE;MACjC,IAAI,CAACD,QAAQ,GAAGD,MAAM,CAACC,QAAQ;IACjC,CAAC,MAAM;MACL,MAAM,IAAIE,KAAK,CAAC,kDAAkD,CAAC;IACrE;IACA,IAAIH,MAAM,CAACI,YAAY,KAAKF,SAAS,EAAE;MACrC,IAAI,CAACE,YAAY,GAAGJ,MAAM,CAACI,YAAY;IACzC,CAAC,MAAM;MACL,MAAM,IAAID,KAAK,CAAC,sDAAsD,CAAC;IACzE;EACF;EAEOE,SAASA,CACdC,MAA2B,GAAG,IAAIV,mBAAmB,CAAC,CAAC,EACf;IACxC,OAAO;MACLK,QAAQ,EAAE,IAAI,CAACA,QAAQ;MACvBG,YAAY,EAAE,IAAI,CAACA;IACrB,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,OAAO,EAAE,IAAI,CAACA,OAAO;MACrBC,oBAAoB,EAAE,IAAI,CAACA,oBAAoB;MAC/CC,mBAAmB,EAAE,IAAI,CAACA,mBAAmB;MAC7CC,oBAAoB,EAAE,IAAI,CAACA,oBAAoB;MAC/CT,YAAY,EAAE,IAAI,CAACA,YAAY;MAC/BU,4BAA4B,EAAE,IAAI,CAACA,4BAA4B;MAC/DC,OAAO,EAAE,IAAI,CAACA,OAAO;MACrBP,OAAO,EAAE,IAAI,CAACA,OAAO,IAAI,IAAI,GAAG,IAAI,CAACA,OAAO,GAAG,IAAI;MACnDQ,0BAA0B,EAAE,IAAI,CAACA,0BAA0B;MAC3DC,yBAAyB,EAAE,IAAI,CAACA,yBAAyB,CAACC,GAAG,CAAEC,EAAO,IAAK;QACzE,OAAOA,EAAE,CAACd,SAAS,CAACC,MAAM,CAAC;MAC7B,CAAC;IACH,CAAC;EACH;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA+DA;AACA,OAAO,MAAMc,aAAqC,GAAG,CACnD,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,6BAA6B,EAC7B,aAAa,EACb,KAAK,EACL,sBAAsB,EACtB,cAAc,EACd,iBAAiB,EACjB,wBAAwB,EACxB,cAAc,EACd,yBAAyB,CACjB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["types/core/licensing/index.ts"],"mappings":"AAAA,cAAc,kBAAkB","ignoreList":[]}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
2
2
|
/// Generated from rtu-ui-v2/schemas/barcode/ArTrackingOverlayConfiguration.yaml
|
|
3
3
|
|
|
4
|
-
import { BackgroundStyle, BadgeStyle, PolygonStyle, StyledText } from '
|
|
5
|
-
import { PartiallyConstructible } from '../../utils/utils';
|
|
4
|
+
import { BackgroundStyle, BadgeStyle, PolygonStyle, StyledText } from '../common/Common';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
Configuration of the overlay polygon displayed on top of a barcode in the camera preview.
|
|
9
8
|
*/
|
|
10
|
-
export class ArOverlayPolygonConfiguration
|
|
9
|
+
export class ArOverlayPolygonConfiguration {
|
|
11
10
|
/**
|
|
12
11
|
Control the visibility of the overlay polygon.
|
|
13
12
|
|
|
@@ -35,7 +34,6 @@ export class ArOverlayPolygonConfiguration extends PartiallyConstructible {
|
|
|
35
34
|
|
|
36
35
|
/** @param source {@displayType `DeepPartial<ArOverlayPolygonConfiguration>`} */
|
|
37
36
|
constructor(source = {}) {
|
|
38
|
-
super();
|
|
39
37
|
if (source.visible !== undefined) {
|
|
40
38
|
this.visible = source.visible;
|
|
41
39
|
}
|
|
@@ -61,12 +59,13 @@ Where to display the barcode info box in the camera preview.
|
|
|
61
59
|
Display the barcode info box above the overlay polygon.
|
|
62
60
|
*/
|
|
63
61
|
|
|
62
|
+
/** @hidden */
|
|
64
63
|
export const BarcodeItemInfoPositionValues = ['DISABLED', 'STACKED', 'BELOW', 'ABOVE'];
|
|
65
64
|
|
|
66
65
|
/**
|
|
67
66
|
Configuration of the barcode info box displayed in the camera preview.
|
|
68
67
|
*/
|
|
69
|
-
export class BarcodeItemConfiguration
|
|
68
|
+
export class BarcodeItemConfiguration {
|
|
70
69
|
/**
|
|
71
70
|
Control the visibility of the barcode image in the info box.
|
|
72
71
|
|
|
@@ -122,7 +121,6 @@ export class BarcodeItemConfiguration extends PartiallyConstructible {
|
|
|
122
121
|
|
|
123
122
|
/** @param source {@displayType `DeepPartial<BarcodeItemConfiguration>`} */
|
|
124
123
|
constructor(source = {}) {
|
|
125
|
-
super();
|
|
126
124
|
if (source.imageVisible !== undefined) {
|
|
127
125
|
this.imageVisible = source.imageVisible;
|
|
128
126
|
}
|
|
@@ -150,7 +148,7 @@ export class BarcodeItemConfiguration extends PartiallyConstructible {
|
|
|
150
148
|
/**
|
|
151
149
|
Configuration of the AR overlay displayed on top of barcodes in the camera preview.
|
|
152
150
|
*/
|
|
153
|
-
export class ArOverlayGeneralConfiguration
|
|
151
|
+
export class ArOverlayGeneralConfiguration {
|
|
154
152
|
/**
|
|
155
153
|
Control the visibility of the user guidance.
|
|
156
154
|
|
|
@@ -221,7 +219,6 @@ export class ArOverlayGeneralConfiguration extends PartiallyConstructible {
|
|
|
221
219
|
|
|
222
220
|
/** @param source {@displayType `DeepPartial<ArOverlayGeneralConfiguration>`} */
|
|
223
221
|
constructor(source = {}) {
|
|
224
|
-
super();
|
|
225
222
|
if (source.visible !== undefined) {
|
|
226
223
|
this.visible = source.visible;
|
|
227
224
|
}
|
|
@@ -246,7 +243,7 @@ export class ArOverlayGeneralConfiguration extends PartiallyConstructible {
|
|
|
246
243
|
/**
|
|
247
244
|
Configuration of the overlay polygon displayed on top of a barcode in the camera preview.
|
|
248
245
|
*/
|
|
249
|
-
export class FindAndPickArOverlayPolygonConfiguration
|
|
246
|
+
export class FindAndPickArOverlayPolygonConfiguration {
|
|
250
247
|
/**
|
|
251
248
|
Control the visibility of the overlay polygon.
|
|
252
249
|
|
|
@@ -283,7 +280,6 @@ export class FindAndPickArOverlayPolygonConfiguration extends PartiallyConstruct
|
|
|
283
280
|
|
|
284
281
|
/** @param source {@displayType `DeepPartial<FindAndPickArOverlayPolygonConfiguration>`} */
|
|
285
282
|
constructor(source = {}) {
|
|
286
|
-
super();
|
|
287
283
|
if (source.visible !== undefined) {
|
|
288
284
|
this.visible = source.visible;
|
|
289
285
|
}
|
|
@@ -302,7 +298,7 @@ export class FindAndPickArOverlayPolygonConfiguration extends PartiallyConstruct
|
|
|
302
298
|
/**
|
|
303
299
|
Configuration of the round badge on find and pick ar layer.
|
|
304
300
|
*/
|
|
305
|
-
export class FindAndPickBadgeConfiguration
|
|
301
|
+
export class FindAndPickBadgeConfiguration {
|
|
306
302
|
/**
|
|
307
303
|
Appearance of the badge when a barcode is partially scanned.
|
|
308
304
|
*/
|
|
@@ -342,7 +338,6 @@ export class FindAndPickBadgeConfiguration extends PartiallyConstructible {
|
|
|
342
338
|
|
|
343
339
|
/** @param source {@displayType `DeepPartial<FindAndPickBadgeConfiguration>`} */
|
|
344
340
|
constructor(source = {}) {
|
|
345
|
-
super();
|
|
346
341
|
if (source.partiallyScanned !== undefined) {
|
|
347
342
|
this.partiallyScanned = new BadgeStyle(source.partiallyScanned);
|
|
348
343
|
}
|
|
@@ -358,7 +353,7 @@ export class FindAndPickBadgeConfiguration extends PartiallyConstructible {
|
|
|
358
353
|
/**
|
|
359
354
|
Configuration of the AR overlay.
|
|
360
355
|
*/
|
|
361
|
-
export class ArOverlayFindAndPickConfiguration
|
|
356
|
+
export class ArOverlayFindAndPickConfiguration {
|
|
362
357
|
/**
|
|
363
358
|
Control the visibility of the user guidance.
|
|
364
359
|
|
|
@@ -382,7 +377,6 @@ export class ArOverlayFindAndPickConfiguration extends PartiallyConstructible {
|
|
|
382
377
|
|
|
383
378
|
/** @param source {@displayType `DeepPartial<ArOverlayFindAndPickConfiguration>`} */
|
|
384
379
|
constructor(source = {}) {
|
|
385
|
-
super();
|
|
386
380
|
if (source.visible !== undefined) {
|
|
387
381
|
this.visible = source.visible;
|
|
388
382
|
}
|