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,6 +1,7 @@
|
|
|
1
|
-
import { NativeModules
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { NativeModules } from 'react-native';
|
|
2
|
+
import { InvalidImageRefError } from '../../base/errors';
|
|
3
|
+
import { ImageSerializationMode } from '../common/JsonSerializationTypes';
|
|
4
|
+
import { DeepPartial } from '../utils/utils';
|
|
4
5
|
import {
|
|
5
6
|
BufferImageLoadOptions,
|
|
6
7
|
EncodeImageOptions,
|
|
@@ -10,19 +11,13 @@ import {
|
|
|
10
11
|
SaveImageOptions,
|
|
11
12
|
} from './ImageRefTypes';
|
|
12
13
|
|
|
13
|
-
const
|
|
14
|
-
`The package 'react-native-scanbot-barcode-scanner-sdk' doesn't seem to be linked. Make sure: \n\n` +
|
|
15
|
-
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
|
|
16
|
-
'- You rebuilt the app after installing the package\n' +
|
|
17
|
-
'- You are not using Expo Go\n';
|
|
18
|
-
|
|
19
|
-
const ScanbotBarcodeSDKImpl = NativeModules.ScanbotBarcodeSdk
|
|
14
|
+
const ScanbotBarcodeSDKModule = NativeModules.ScanbotBarcodeSdk
|
|
20
15
|
? NativeModules.ScanbotBarcodeSdk
|
|
21
16
|
: new Proxy(
|
|
22
17
|
{},
|
|
23
18
|
{
|
|
24
19
|
get() {
|
|
25
|
-
throw new Error(
|
|
20
|
+
throw new Error();
|
|
26
21
|
},
|
|
27
22
|
}
|
|
28
23
|
);
|
|
@@ -69,12 +64,10 @@ export async function autorelease<TReturn>(
|
|
|
69
64
|
}
|
|
70
65
|
}
|
|
71
66
|
|
|
72
|
-
|
|
67
|
+
abstract class AutoReleasable {
|
|
73
68
|
private retained: boolean = false;
|
|
74
69
|
|
|
75
70
|
protected constructor(uniqueId?: string) {
|
|
76
|
-
super();
|
|
77
|
-
|
|
78
71
|
if (uniqueId) {
|
|
79
72
|
if (AutoReleasePool.globalPull === null) {
|
|
80
73
|
const errorMessage =
|
|
@@ -83,7 +76,7 @@ export abstract class AutoReleasable extends PartiallyConstructible {
|
|
|
83
76
|
'\n const barcodeItem = new BarcodeItem(source);' +
|
|
84
77
|
'\n });';
|
|
85
78
|
|
|
86
|
-
throw new
|
|
79
|
+
throw new InvalidImageRefError(errorMessage);
|
|
87
80
|
}
|
|
88
81
|
|
|
89
82
|
AutoReleasePool.globalPull.addObject(this);
|
|
@@ -118,7 +111,7 @@ export class ImageRef extends AutoReleasable {
|
|
|
118
111
|
this._buffer = buffer;
|
|
119
112
|
}
|
|
120
113
|
|
|
121
|
-
public static
|
|
114
|
+
public static from(source: DeepPartial<ImageRef>): ImageRef {
|
|
122
115
|
if (source.buffer) {
|
|
123
116
|
return new ImageRef(undefined, source.buffer);
|
|
124
117
|
} else {
|
|
@@ -128,22 +121,18 @@ export class ImageRef extends AutoReleasable {
|
|
|
128
121
|
|
|
129
122
|
public static deserialize(serializedRef: DeepPartial<ImageRef>): ImageRef {
|
|
130
123
|
if (!serializedRef.uniqueId) {
|
|
131
|
-
throw new
|
|
124
|
+
throw new InvalidImageRefError('uniqueId must be present in serializedRef argument');
|
|
132
125
|
}
|
|
133
126
|
|
|
134
127
|
// The promise is intentionally not awaited here
|
|
135
|
-
|
|
136
|
-
.catch((error: any) => {
|
|
137
|
-
console.error(
|
|
138
|
-
`Error while deserializing ImageRef with uniqueId ${serializedRef.uniqueId}: ${error}`
|
|
139
|
-
);
|
|
140
|
-
})
|
|
128
|
+
ScanbotBarcodeSDKModule.imageRefDeserialize({ uniqueId: serializedRef.uniqueId })
|
|
141
129
|
.then((success: boolean) => {
|
|
142
130
|
if (!success) {
|
|
143
|
-
console.error(
|
|
144
|
-
`Unsuccessful deserialization of ImageRef with uniqueId ${serializedRef.uniqueId}`
|
|
145
|
-
);
|
|
131
|
+
console.error(`Unsuccessful deserialization of ImageRef with uniqueId ${serializedRef.uniqueId}`);
|
|
146
132
|
}
|
|
133
|
+
})
|
|
134
|
+
.catch((error: any) => {
|
|
135
|
+
console.error(`Error while deserializing ImageRef with uniqueId ${serializedRef.uniqueId}: ${error}`);
|
|
147
136
|
});
|
|
148
137
|
|
|
149
138
|
return new ImageRef(serializedRef.uniqueId, undefined);
|
|
@@ -168,16 +157,14 @@ export class ImageRef extends AutoReleasable {
|
|
|
168
157
|
this.throwErrorIfReleased();
|
|
169
158
|
|
|
170
159
|
// The promise is intentionally not awaited here
|
|
171
|
-
|
|
172
|
-
.catch((error: any) => {
|
|
173
|
-
console.error(
|
|
174
|
-
`Error while serializing ImageRef with uniqueId ${this.uniqueId}: ${error}`
|
|
175
|
-
);
|
|
176
|
-
})
|
|
160
|
+
ScanbotBarcodeSDKModule.imageRefSerialize({ uniqueId: this.uniqueId })
|
|
177
161
|
.then((success: boolean) => {
|
|
178
162
|
if (!success) {
|
|
179
163
|
console.error(`Unsuccessful serialization of ImageRef with uniqueId ${this.uniqueId}`);
|
|
180
164
|
}
|
|
165
|
+
})
|
|
166
|
+
.catch((error: any) => {
|
|
167
|
+
console.error(`Error while serializing ImageRef with uniqueId ${this.uniqueId}: ${error}`);
|
|
181
168
|
});
|
|
182
169
|
|
|
183
170
|
return { uniqueId: this.uniqueId };
|
|
@@ -185,7 +172,7 @@ export class ImageRef extends AutoReleasable {
|
|
|
185
172
|
}
|
|
186
173
|
|
|
187
174
|
/**
|
|
188
|
-
* Creates ImageRef with uniqueId from the
|
|
175
|
+
* Creates ImageRef with uniqueId from the file uri to an image.
|
|
189
176
|
*/
|
|
190
177
|
public static async fromImageFileUri(
|
|
191
178
|
uri: string,
|
|
@@ -193,7 +180,7 @@ export class ImageRef extends AutoReleasable {
|
|
|
193
180
|
): Promise<ImageRef | null> {
|
|
194
181
|
try {
|
|
195
182
|
const serializedImageRefUniqueId: string =
|
|
196
|
-
await
|
|
183
|
+
await ScanbotBarcodeSDKModule.imageRefFromImageFileUri({ uri, options });
|
|
197
184
|
|
|
198
185
|
return ImageRef.deserialize({ uniqueId: serializedImageRefUniqueId });
|
|
199
186
|
} catch (error: any) {
|
|
@@ -212,28 +199,7 @@ export class ImageRef extends AutoReleasable {
|
|
|
212
199
|
): Promise<ImageRef | null> {
|
|
213
200
|
try {
|
|
214
201
|
const serializedImageRefUniqueId: string =
|
|
215
|
-
await
|
|
216
|
-
|
|
217
|
-
return ImageRef.deserialize({ uniqueId: serializedImageRefUniqueId });
|
|
218
|
-
} catch (error: any) {
|
|
219
|
-
console.error(error);
|
|
220
|
-
|
|
221
|
-
return null;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Creates a deep copy of the image.
|
|
227
|
-
* If uniqueId is not set or the image is already released, an exception will be thrown.
|
|
228
|
-
*/
|
|
229
|
-
public async clone(): Promise<ImageRef | null> {
|
|
230
|
-
this.throwErrorIfUniqueIdIsMissing();
|
|
231
|
-
this.throwErrorIfReleased();
|
|
232
|
-
|
|
233
|
-
try {
|
|
234
|
-
const serializedImageRefUniqueId: string = await ScanbotBarcodeSDKImpl.imageRefClone(
|
|
235
|
-
this.uniqueId
|
|
236
|
-
);
|
|
202
|
+
await ScanbotBarcodeSDKModule.imageRefFromEncodedBuffer({ buffer, options });
|
|
237
203
|
|
|
238
204
|
return ImageRef.deserialize({ uniqueId: serializedImageRefUniqueId });
|
|
239
205
|
} catch (error: any) {
|
|
@@ -252,7 +218,7 @@ export class ImageRef extends AutoReleasable {
|
|
|
252
218
|
this.throwErrorIfReleased();
|
|
253
219
|
|
|
254
220
|
try {
|
|
255
|
-
await
|
|
221
|
+
await ScanbotBarcodeSDKModule.imageRefHibernate({ uniqueId: this.uniqueId });
|
|
256
222
|
} catch (error: any) {
|
|
257
223
|
console.error(error);
|
|
258
224
|
}
|
|
@@ -268,7 +234,7 @@ export class ImageRef extends AutoReleasable {
|
|
|
268
234
|
this.throwErrorIfReleased();
|
|
269
235
|
|
|
270
236
|
try {
|
|
271
|
-
await
|
|
237
|
+
await ScanbotBarcodeSDKModule.imageRefClear({ uniqueId: this.uniqueId });
|
|
272
238
|
} catch (error: any) {
|
|
273
239
|
console.error(error);
|
|
274
240
|
}
|
|
@@ -283,7 +249,7 @@ export class ImageRef extends AutoReleasable {
|
|
|
283
249
|
this.throwErrorIfReleased();
|
|
284
250
|
|
|
285
251
|
try {
|
|
286
|
-
const imageInfo = await
|
|
252
|
+
const imageInfo = await ScanbotBarcodeSDKModule.imageRefInfo({ uniqueId: this.uniqueId });
|
|
287
253
|
|
|
288
254
|
return new ImageInfo(imageInfo);
|
|
289
255
|
} catch (error: any) {
|
|
@@ -305,7 +271,11 @@ export class ImageRef extends AutoReleasable {
|
|
|
305
271
|
this.throwErrorIfReleased();
|
|
306
272
|
|
|
307
273
|
try {
|
|
308
|
-
return await
|
|
274
|
+
return await ScanbotBarcodeSDKModule.imageRefSaveImage({
|
|
275
|
+
uniqueId: this.uniqueId,
|
|
276
|
+
path,
|
|
277
|
+
options,
|
|
278
|
+
});
|
|
309
279
|
} catch (error: any) {
|
|
310
280
|
console.error(error);
|
|
311
281
|
|
|
@@ -324,10 +294,10 @@ export class ImageRef extends AutoReleasable {
|
|
|
324
294
|
this.throwErrorIfReleased();
|
|
325
295
|
|
|
326
296
|
try {
|
|
327
|
-
const imageAsBuffer = await
|
|
328
|
-
this.uniqueId,
|
|
329
|
-
new EncodeImageOptions()
|
|
330
|
-
);
|
|
297
|
+
const imageAsBuffer = await ScanbotBarcodeSDKModule.imageRefEncodeImage({
|
|
298
|
+
uniqueId: this.uniqueId,
|
|
299
|
+
options: new EncodeImageOptions(),
|
|
300
|
+
});
|
|
331
301
|
|
|
332
302
|
if (imageAsBuffer) {
|
|
333
303
|
this._buffer = imageAsBuffer;
|
|
@@ -344,9 +314,7 @@ export class ImageRef extends AutoReleasable {
|
|
|
344
314
|
public async encodeImage(options?: EncodeImageOptions): Promise<string | null> {
|
|
345
315
|
if (this._buffer) {
|
|
346
316
|
if (options) {
|
|
347
|
-
throw new
|
|
348
|
-
'EncodeImageOptions are not available when image is already encoded to base64'
|
|
349
|
-
);
|
|
317
|
+
throw new InvalidImageRefError('EncodeImageOptions are not available when image is already encoded to base64');
|
|
350
318
|
}
|
|
351
319
|
|
|
352
320
|
return this._buffer;
|
|
@@ -355,10 +323,10 @@ export class ImageRef extends AutoReleasable {
|
|
|
355
323
|
this.throwErrorIfReleased();
|
|
356
324
|
|
|
357
325
|
try {
|
|
358
|
-
return await
|
|
359
|
-
this.uniqueId,
|
|
360
|
-
options ?? new EncodeImageOptions()
|
|
361
|
-
);
|
|
326
|
+
return await ScanbotBarcodeSDKModule.imageRefEncodeImage({
|
|
327
|
+
uniqueId: this.uniqueId,
|
|
328
|
+
options: options ?? new EncodeImageOptions(),
|
|
329
|
+
});
|
|
362
330
|
} catch (error: any) {
|
|
363
331
|
console.error(error);
|
|
364
332
|
|
|
@@ -376,7 +344,7 @@ export class ImageRef extends AutoReleasable {
|
|
|
376
344
|
|
|
377
345
|
if (!this.released) {
|
|
378
346
|
// The promise is intentionally not awaited here
|
|
379
|
-
|
|
347
|
+
ScanbotBarcodeSDKModule.imageRefRelease({ uniqueId: this.uniqueId }).catch((error: any) => {
|
|
380
348
|
console.error(`Error while releasing ImageRef with uniqueId ${this.uniqueId}: ${error}`);
|
|
381
349
|
});
|
|
382
350
|
|
|
@@ -390,7 +358,7 @@ export class ImageRef extends AutoReleasable {
|
|
|
390
358
|
*/
|
|
391
359
|
public static async makeSnapshot(): Promise<ImageRefPoolSnapshot | null> {
|
|
392
360
|
try {
|
|
393
|
-
const snapshot = await
|
|
361
|
+
const snapshot = await ScanbotBarcodeSDKModule.makeSnapshot();
|
|
394
362
|
|
|
395
363
|
return new ImageRefPoolSnapshot(snapshot);
|
|
396
364
|
} catch (error: any) {
|
|
@@ -405,18 +373,18 @@ export class ImageRef extends AutoReleasable {
|
|
|
405
373
|
*/
|
|
406
374
|
public static releaseAll() {
|
|
407
375
|
// The promise is intentionally not awaited here
|
|
408
|
-
|
|
376
|
+
ScanbotBarcodeSDKModule.imageRefReleaseAll().catch(() => {});
|
|
409
377
|
}
|
|
410
378
|
|
|
411
379
|
private throwErrorIfUniqueIdIsMissing(): void {
|
|
412
380
|
if (!this.uniqueId) {
|
|
413
|
-
throw new
|
|
381
|
+
throw new InvalidImageRefError('uniqueId is missing');
|
|
414
382
|
}
|
|
415
383
|
}
|
|
416
384
|
|
|
417
385
|
private throwErrorIfReleased(): void {
|
|
418
386
|
if (this.released) {
|
|
419
|
-
throw new
|
|
387
|
+
throw new InvalidImageRefError(`ImageRef with uniqueId ${this.uniqueId} has been released`);
|
|
420
388
|
}
|
|
421
389
|
}
|
|
422
390
|
}
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
2
|
+
/// Generated from core/schemas/LicensingTypes.yaml
|
|
3
|
+
|
|
4
|
+
import { ToJsonConfiguration } from '../common/JsonSerializationTypes';
|
|
5
|
+
import { DeepPartial } from '../utils/utils';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
Status of the license plate scanner.
|
|
9
|
+
|
|
10
|
+
- `OKAY`:
|
|
11
|
+
License is valid and accepted.
|
|
12
|
+
- `TRIAL`:
|
|
13
|
+
No license set yet. The SDK is in trial mode.
|
|
14
|
+
- `OKAY_EXPIRING_SOON`:
|
|
15
|
+
License is valid but will expire soon. Make sure to update your license before it expires to ensure uninterrupted function.
|
|
16
|
+
- `FAILURE_NOT_SET`:
|
|
17
|
+
No license set. On platforms that support trial mode, it means that the SDK's trial mode is over.
|
|
18
|
+
- `FAILURE_CORRUPTED`:
|
|
19
|
+
No license active. The set license was unreadable or has an invalid format.
|
|
20
|
+
- `FAILURE_WRONG_OS`:
|
|
21
|
+
No license active. The set license does not cover the current operating system.
|
|
22
|
+
- `FAILURE_APP_ID_MISMATCH`:
|
|
23
|
+
No license active. The set license does not cover the current app's bundle identifier.
|
|
24
|
+
- `FAILURE_EXPIRED`:
|
|
25
|
+
No license active. The set license is valid but it has expired.
|
|
26
|
+
- `FAILURE_SERVER`:
|
|
27
|
+
No license active. The online license check failed.
|
|
28
|
+
- `FAILURE_VERSION`:
|
|
29
|
+
No license active. The set license does not cover the current SDK version.
|
|
30
|
+
- `FAILURE_INACTIVE`:
|
|
31
|
+
No license active. The set license is not yet active.
|
|
32
|
+
*/
|
|
33
|
+
export type LicenseStatus =
|
|
34
|
+
/**
|
|
35
|
+
License is valid and accepted.
|
|
36
|
+
*/
|
|
37
|
+
| 'OKAY'
|
|
38
|
+
/**
|
|
39
|
+
No license set yet. The SDK is in trial mode.
|
|
40
|
+
*/
|
|
41
|
+
| 'TRIAL'
|
|
42
|
+
/**
|
|
43
|
+
License is valid but will expire soon. Make sure to update your license before it expires to ensure uninterrupted function.
|
|
44
|
+
*/
|
|
45
|
+
| 'OKAY_EXPIRING_SOON'
|
|
46
|
+
/**
|
|
47
|
+
No license set. On platforms that support trial mode, it means that the SDK's trial mode is over.
|
|
48
|
+
*/
|
|
49
|
+
| 'FAILURE_NOT_SET'
|
|
50
|
+
/**
|
|
51
|
+
No license active. The set license was unreadable or has an invalid format.
|
|
52
|
+
*/
|
|
53
|
+
| 'FAILURE_CORRUPTED'
|
|
54
|
+
/**
|
|
55
|
+
No license active. The set license does not cover the current operating system.
|
|
56
|
+
*/
|
|
57
|
+
| 'FAILURE_WRONG_OS'
|
|
58
|
+
/**
|
|
59
|
+
No license active. The set license does not cover the current app's bundle identifier.
|
|
60
|
+
*/
|
|
61
|
+
| 'FAILURE_APP_ID_MISMATCH'
|
|
62
|
+
/**
|
|
63
|
+
No license active. The set license is valid but it has expired.
|
|
64
|
+
*/
|
|
65
|
+
| 'FAILURE_EXPIRED'
|
|
66
|
+
/**
|
|
67
|
+
No license active. The online license check failed.
|
|
68
|
+
*/
|
|
69
|
+
| 'FAILURE_SERVER'
|
|
70
|
+
/**
|
|
71
|
+
No license active. The set license does not cover the current SDK version.
|
|
72
|
+
*/
|
|
73
|
+
| 'FAILURE_VERSION'
|
|
74
|
+
/**
|
|
75
|
+
No license active. The set license is not yet active.
|
|
76
|
+
*/
|
|
77
|
+
| 'FAILURE_INACTIVE';
|
|
78
|
+
|
|
79
|
+
/** @hidden */
|
|
80
|
+
export const LicenseStatusValues: ReadonlyArray<LicenseStatus> = [
|
|
81
|
+
'OKAY',
|
|
82
|
+
'TRIAL',
|
|
83
|
+
'OKAY_EXPIRING_SOON',
|
|
84
|
+
'FAILURE_NOT_SET',
|
|
85
|
+
'FAILURE_CORRUPTED',
|
|
86
|
+
'FAILURE_WRONG_OS',
|
|
87
|
+
'FAILURE_APP_ID_MISMATCH',
|
|
88
|
+
'FAILURE_EXPIRED',
|
|
89
|
+
'FAILURE_SERVER',
|
|
90
|
+
'FAILURE_VERSION',
|
|
91
|
+
'FAILURE_INACTIVE',
|
|
92
|
+
] as const;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
Description of error that occurred during device deregistration.
|
|
96
|
+
*/
|
|
97
|
+
export class DeviceDeregistrationError {
|
|
98
|
+
/**
|
|
99
|
+
Sequential number of the device registration. Starts with 0. Each time a call to initializeLicense with a new license is made, the device ID.
|
|
100
|
+
*/
|
|
101
|
+
public readonly deviceId: number;
|
|
102
|
+
/**
|
|
103
|
+
Error message describing the error.
|
|
104
|
+
*/
|
|
105
|
+
public readonly errorMessage: string;
|
|
106
|
+
|
|
107
|
+
/** @param source {@displayType `DeepPartial<DeviceDeregistrationError>`} */
|
|
108
|
+
public constructor(source: DeepPartial<DeviceDeregistrationError> = {}) {
|
|
109
|
+
if (source.deviceId !== undefined) {
|
|
110
|
+
this.deviceId = source.deviceId;
|
|
111
|
+
} else {
|
|
112
|
+
throw new Error('deviceId must be present in constructor argument');
|
|
113
|
+
}
|
|
114
|
+
if (source.errorMessage !== undefined) {
|
|
115
|
+
this.errorMessage = source.errorMessage;
|
|
116
|
+
} else {
|
|
117
|
+
throw new Error('errorMessage must be present in constructor argument');
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
public serialize(
|
|
122
|
+
config: ToJsonConfiguration = new ToJsonConfiguration()
|
|
123
|
+
): DeepPartial<DeviceDeregistrationError> {
|
|
124
|
+
return {
|
|
125
|
+
deviceId: this.deviceId,
|
|
126
|
+
errorMessage: this.errorMessage,
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
Information about the SDK license.
|
|
133
|
+
*/
|
|
134
|
+
export class LicenseInfo {
|
|
135
|
+
/**
|
|
136
|
+
License status.
|
|
137
|
+
*/
|
|
138
|
+
public readonly status: LicenseStatus;
|
|
139
|
+
/**
|
|
140
|
+
True if the license status corresponds to a valid license.
|
|
141
|
+
*/
|
|
142
|
+
public readonly isValid: boolean;
|
|
143
|
+
/**
|
|
144
|
+
Message describing the license status.
|
|
145
|
+
*/
|
|
146
|
+
public readonly licenseStatusMessage: string;
|
|
147
|
+
/**
|
|
148
|
+
Expiration timestamp of the license or trial period in seconds since the UNIX epoch.
|
|
149
|
+
*/
|
|
150
|
+
public readonly expirationTimestamp: number;
|
|
151
|
+
/**
|
|
152
|
+
Expiration date of the license or trial period in ISO 8601 date-time format.
|
|
153
|
+
*/
|
|
154
|
+
public readonly expirationDateString: string;
|
|
155
|
+
/**
|
|
156
|
+
Additional error message in case of a license error.
|
|
157
|
+
*/
|
|
158
|
+
public readonly errorMessage: string;
|
|
159
|
+
/**
|
|
160
|
+
True if an online license check is in progress.
|
|
161
|
+
*/
|
|
162
|
+
public readonly onlineLicenseCheckInProgress: boolean;
|
|
163
|
+
/**
|
|
164
|
+
The currently active license. May be different from the license used to initialize
|
|
165
|
+
the SDK if the online license check has completed and the server has sent
|
|
166
|
+
an updated license.
|
|
167
|
+
*/
|
|
168
|
+
public readonly license: string;
|
|
169
|
+
/**
|
|
170
|
+
Number of devices the license is valid for, if the license is floating.
|
|
171
|
+
*/
|
|
172
|
+
public readonly devices: number | null = null;
|
|
173
|
+
/**
|
|
174
|
+
Time in milliseconds until the next online license check will be performed. -1 if no online license check is scheduled.
|
|
175
|
+
*/
|
|
176
|
+
public readonly nextOnlineLicenseCheckInMs: number;
|
|
177
|
+
/**
|
|
178
|
+
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.
|
|
179
|
+
*/
|
|
180
|
+
public readonly deviceDeregistationErrors: DeviceDeregistrationError[];
|
|
181
|
+
|
|
182
|
+
/** @param source {@displayType `DeepPartial<LicenseInfo>`} */
|
|
183
|
+
public constructor(source: DeepPartial<LicenseInfo> = {}) {
|
|
184
|
+
if (source.status !== undefined) {
|
|
185
|
+
this.status = source.status;
|
|
186
|
+
} else {
|
|
187
|
+
throw new Error('status must be present in constructor argument');
|
|
188
|
+
}
|
|
189
|
+
if (source.isValid !== undefined) {
|
|
190
|
+
this.isValid = source.isValid;
|
|
191
|
+
} else {
|
|
192
|
+
throw new Error('isValid must be present in constructor argument');
|
|
193
|
+
}
|
|
194
|
+
if (source.licenseStatusMessage !== undefined) {
|
|
195
|
+
this.licenseStatusMessage = source.licenseStatusMessage;
|
|
196
|
+
} else {
|
|
197
|
+
throw new Error('licenseStatusMessage must be present in constructor argument');
|
|
198
|
+
}
|
|
199
|
+
if (source.expirationTimestamp !== undefined) {
|
|
200
|
+
this.expirationTimestamp = source.expirationTimestamp;
|
|
201
|
+
} else {
|
|
202
|
+
throw new Error('expirationTimestamp must be present in constructor argument');
|
|
203
|
+
}
|
|
204
|
+
if (source.expirationDateString !== undefined) {
|
|
205
|
+
this.expirationDateString = source.expirationDateString;
|
|
206
|
+
} else {
|
|
207
|
+
throw new Error('expirationDateString must be present in constructor argument');
|
|
208
|
+
}
|
|
209
|
+
if (source.errorMessage !== undefined) {
|
|
210
|
+
this.errorMessage = source.errorMessage;
|
|
211
|
+
} else {
|
|
212
|
+
throw new Error('errorMessage must be present in constructor argument');
|
|
213
|
+
}
|
|
214
|
+
if (source.onlineLicenseCheckInProgress !== undefined) {
|
|
215
|
+
this.onlineLicenseCheckInProgress = source.onlineLicenseCheckInProgress;
|
|
216
|
+
} else {
|
|
217
|
+
throw new Error('onlineLicenseCheckInProgress must be present in constructor argument');
|
|
218
|
+
}
|
|
219
|
+
if (source.license !== undefined) {
|
|
220
|
+
this.license = source.license;
|
|
221
|
+
} else {
|
|
222
|
+
throw new Error('license must be present in constructor argument');
|
|
223
|
+
}
|
|
224
|
+
if (source.devices !== undefined) {
|
|
225
|
+
this.devices = source.devices != null ? source.devices : null;
|
|
226
|
+
}
|
|
227
|
+
if (source.nextOnlineLicenseCheckInMs !== undefined) {
|
|
228
|
+
this.nextOnlineLicenseCheckInMs = source.nextOnlineLicenseCheckInMs;
|
|
229
|
+
} else {
|
|
230
|
+
throw new Error('nextOnlineLicenseCheckInMs must be present in constructor argument');
|
|
231
|
+
}
|
|
232
|
+
if (source.deviceDeregistationErrors !== undefined) {
|
|
233
|
+
this.deviceDeregistationErrors = source.deviceDeregistationErrors.map(
|
|
234
|
+
(it: DeepPartial<DeviceDeregistrationError>) => {
|
|
235
|
+
return new DeviceDeregistrationError(it);
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
} else {
|
|
239
|
+
throw new Error('deviceDeregistationErrors must be present in constructor argument');
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
public serialize(
|
|
244
|
+
config: ToJsonConfiguration = new ToJsonConfiguration()
|
|
245
|
+
): DeepPartial<LicenseInfo> {
|
|
246
|
+
return {
|
|
247
|
+
status: this.status,
|
|
248
|
+
isValid: this.isValid,
|
|
249
|
+
licenseStatusMessage: this.licenseStatusMessage,
|
|
250
|
+
expirationTimestamp: this.expirationTimestamp,
|
|
251
|
+
expirationDateString: this.expirationDateString,
|
|
252
|
+
errorMessage: this.errorMessage,
|
|
253
|
+
onlineLicenseCheckInProgress: this.onlineLicenseCheckInProgress,
|
|
254
|
+
license: this.license,
|
|
255
|
+
devices: this.devices != null ? this.devices : null,
|
|
256
|
+
nextOnlineLicenseCheckInMs: this.nextOnlineLicenseCheckInMs,
|
|
257
|
+
deviceDeregistationErrors: this.deviceDeregistationErrors.map((it: any) => {
|
|
258
|
+
return it.serialize(config);
|
|
259
|
+
}),
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
License features.
|
|
266
|
+
|
|
267
|
+
- `BARCODE_SCANNER`:
|
|
268
|
+
Barcode scanner.
|
|
269
|
+
- `CHECK_SCANNER`:
|
|
270
|
+
Check scanner.
|
|
271
|
+
- `CREDIT_CARD_SCANNER`:
|
|
272
|
+
Credit card scanner.
|
|
273
|
+
- `IMAGE_PROCESSING`:
|
|
274
|
+
Image processing.
|
|
275
|
+
- `DOCUMENT_SCANNER`:
|
|
276
|
+
Document scanner.
|
|
277
|
+
- `LICENSE_PLATE_SCANNER`:
|
|
278
|
+
License plate scanner.
|
|
279
|
+
- `MEDICAL_CERTIFICATE_SCANNER`:
|
|
280
|
+
Medical certificate scanner.
|
|
281
|
+
- `MRZ_SCANNER`:
|
|
282
|
+
MRZ scanner.
|
|
283
|
+
- `OCR`:
|
|
284
|
+
OCR.
|
|
285
|
+
- `TEXT_PATTERN_SCANNER`:
|
|
286
|
+
Text pattern scanner.
|
|
287
|
+
- `PDF_CREATION`:
|
|
288
|
+
PDF creation.
|
|
289
|
+
- `ID_CARD_SCANNER`:
|
|
290
|
+
ID card scanner.
|
|
291
|
+
- `DRIVER_LICENSE_SCANNER`:
|
|
292
|
+
Driver license scanner.
|
|
293
|
+
- `EHIC_SCANNER`:
|
|
294
|
+
EHIC scanner.
|
|
295
|
+
- `DOCUMENT_CLASSIFICATION`:
|
|
296
|
+
Document classification.
|
|
297
|
+
*/
|
|
298
|
+
export type Feature =
|
|
299
|
+
/**
|
|
300
|
+
Barcode scanner.
|
|
301
|
+
*/
|
|
302
|
+
| 'BARCODE_SCANNER'
|
|
303
|
+
/**
|
|
304
|
+
Check scanner.
|
|
305
|
+
*/
|
|
306
|
+
| 'CHECK_SCANNER'
|
|
307
|
+
/**
|
|
308
|
+
Credit card scanner.
|
|
309
|
+
*/
|
|
310
|
+
| 'CREDIT_CARD_SCANNER'
|
|
311
|
+
/**
|
|
312
|
+
Image processing.
|
|
313
|
+
*/
|
|
314
|
+
| 'IMAGE_PROCESSING'
|
|
315
|
+
/**
|
|
316
|
+
Document scanner.
|
|
317
|
+
*/
|
|
318
|
+
| 'DOCUMENT_SCANNER'
|
|
319
|
+
/**
|
|
320
|
+
License plate scanner.
|
|
321
|
+
*/
|
|
322
|
+
| 'LICENSE_PLATE_SCANNER'
|
|
323
|
+
/**
|
|
324
|
+
Medical certificate scanner.
|
|
325
|
+
*/
|
|
326
|
+
| 'MEDICAL_CERTIFICATE_SCANNER'
|
|
327
|
+
/**
|
|
328
|
+
MRZ scanner.
|
|
329
|
+
*/
|
|
330
|
+
| 'MRZ_SCANNER'
|
|
331
|
+
/**
|
|
332
|
+
OCR.
|
|
333
|
+
*/
|
|
334
|
+
| 'OCR'
|
|
335
|
+
/**
|
|
336
|
+
Text pattern scanner.
|
|
337
|
+
*/
|
|
338
|
+
| 'TEXT_PATTERN_SCANNER'
|
|
339
|
+
/**
|
|
340
|
+
PDF creation.
|
|
341
|
+
*/
|
|
342
|
+
| 'PDF_CREATION'
|
|
343
|
+
/**
|
|
344
|
+
ID card scanner.
|
|
345
|
+
*/
|
|
346
|
+
| 'ID_CARD_SCANNER'
|
|
347
|
+
/**
|
|
348
|
+
Driver license scanner.
|
|
349
|
+
*/
|
|
350
|
+
| 'DRIVER_LICENSE_SCANNER'
|
|
351
|
+
/**
|
|
352
|
+
EHIC scanner.
|
|
353
|
+
*/
|
|
354
|
+
| 'EHIC_SCANNER'
|
|
355
|
+
/**
|
|
356
|
+
Document classification.
|
|
357
|
+
*/
|
|
358
|
+
| 'DOCUMENT_CLASSIFICATION';
|
|
359
|
+
|
|
360
|
+
/** @hidden */
|
|
361
|
+
export const FeatureValues: ReadonlyArray<Feature> = [
|
|
362
|
+
'BARCODE_SCANNER',
|
|
363
|
+
'CHECK_SCANNER',
|
|
364
|
+
'CREDIT_CARD_SCANNER',
|
|
365
|
+
'IMAGE_PROCESSING',
|
|
366
|
+
'DOCUMENT_SCANNER',
|
|
367
|
+
'LICENSE_PLATE_SCANNER',
|
|
368
|
+
'MEDICAL_CERTIFICATE_SCANNER',
|
|
369
|
+
'MRZ_SCANNER',
|
|
370
|
+
'OCR',
|
|
371
|
+
'TEXT_PATTERN_SCANNER',
|
|
372
|
+
'PDF_CREATION',
|
|
373
|
+
'ID_CARD_SCANNER',
|
|
374
|
+
'DRIVER_LICENSE_SCANNER',
|
|
375
|
+
'EHIC_SCANNER',
|
|
376
|
+
'DOCUMENT_CLASSIFICATION',
|
|
377
|
+
] as const;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LicensingTypes';
|