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
|
@@ -3,18 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.ImageRef =
|
|
6
|
+
exports.ImageRef = void 0;
|
|
7
7
|
exports.autorelease = autorelease;
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var
|
|
9
|
+
var _errors = require("../../base/errors");
|
|
10
10
|
var _ImageRefTypes = require("./ImageRefTypes");
|
|
11
|
-
const
|
|
12
|
-
ios: "- You have run 'pod install'\n",
|
|
13
|
-
default: ''
|
|
14
|
-
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
15
|
-
const ScanbotBarcodeSDKImpl = _reactNative.NativeModules.ScanbotBarcodeSdk ? _reactNative.NativeModules.ScanbotBarcodeSdk : new Proxy({}, {
|
|
11
|
+
const ScanbotBarcodeSDKModule = _reactNative.NativeModules.ScanbotBarcodeSdk ? _reactNative.NativeModules.ScanbotBarcodeSdk : new Proxy({}, {
|
|
16
12
|
get() {
|
|
17
|
-
throw new Error(
|
|
13
|
+
throw new Error();
|
|
18
14
|
}
|
|
19
15
|
});
|
|
20
16
|
class AutoReleasePool {
|
|
@@ -50,14 +46,13 @@ async function autorelease(computation) {
|
|
|
50
46
|
releasePoolRef();
|
|
51
47
|
}
|
|
52
48
|
}
|
|
53
|
-
class AutoReleasable
|
|
49
|
+
class AutoReleasable {
|
|
54
50
|
retained = false;
|
|
55
51
|
constructor(uniqueId) {
|
|
56
|
-
super();
|
|
57
52
|
if (uniqueId) {
|
|
58
53
|
if (AutoReleasePool.globalPull === null) {
|
|
59
54
|
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 });';
|
|
60
|
-
throw new
|
|
55
|
+
throw new _errors.InvalidImageRefError(errorMessage);
|
|
61
56
|
}
|
|
62
57
|
AutoReleasePool.globalPull.addObject(this);
|
|
63
58
|
}
|
|
@@ -69,7 +64,6 @@ class AutoReleasable extends _utils.PartiallyConstructible {
|
|
|
69
64
|
this.retained = true;
|
|
70
65
|
}
|
|
71
66
|
}
|
|
72
|
-
exports.AutoReleasable = AutoReleasable;
|
|
73
67
|
class ImageRef extends AutoReleasable {
|
|
74
68
|
released = false;
|
|
75
69
|
get buffer() {
|
|
@@ -80,7 +74,7 @@ class ImageRef extends AutoReleasable {
|
|
|
80
74
|
this.uniqueId = uniqueId;
|
|
81
75
|
this._buffer = buffer;
|
|
82
76
|
}
|
|
83
|
-
static
|
|
77
|
+
static from(source) {
|
|
84
78
|
if (source.buffer) {
|
|
85
79
|
return new ImageRef(undefined, source.buffer);
|
|
86
80
|
} else {
|
|
@@ -89,16 +83,18 @@ class ImageRef extends AutoReleasable {
|
|
|
89
83
|
}
|
|
90
84
|
static deserialize(serializedRef) {
|
|
91
85
|
if (!serializedRef.uniqueId) {
|
|
92
|
-
throw new
|
|
86
|
+
throw new _errors.InvalidImageRefError('uniqueId must be present in serializedRef argument');
|
|
93
87
|
}
|
|
94
88
|
|
|
95
89
|
// The promise is intentionally not awaited here
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
ScanbotBarcodeSDKModule.imageRefDeserialize({
|
|
91
|
+
uniqueId: serializedRef.uniqueId
|
|
98
92
|
}).then(success => {
|
|
99
93
|
if (!success) {
|
|
100
94
|
console.error(`Unsuccessful deserialization of ImageRef with uniqueId ${serializedRef.uniqueId}`);
|
|
101
95
|
}
|
|
96
|
+
}).catch(error => {
|
|
97
|
+
console.error(`Error while deserializing ImageRef with uniqueId ${serializedRef.uniqueId}: ${error}`);
|
|
102
98
|
});
|
|
103
99
|
return new ImageRef(serializedRef.uniqueId, undefined);
|
|
104
100
|
}
|
|
@@ -121,12 +117,14 @@ class ImageRef extends AutoReleasable {
|
|
|
121
117
|
this.throwErrorIfReleased();
|
|
122
118
|
|
|
123
119
|
// The promise is intentionally not awaited here
|
|
124
|
-
|
|
125
|
-
|
|
120
|
+
ScanbotBarcodeSDKModule.imageRefSerialize({
|
|
121
|
+
uniqueId: this.uniqueId
|
|
126
122
|
}).then(success => {
|
|
127
123
|
if (!success) {
|
|
128
124
|
console.error(`Unsuccessful serialization of ImageRef with uniqueId ${this.uniqueId}`);
|
|
129
125
|
}
|
|
126
|
+
}).catch(error => {
|
|
127
|
+
console.error(`Error while serializing ImageRef with uniqueId ${this.uniqueId}: ${error}`);
|
|
130
128
|
});
|
|
131
129
|
return {
|
|
132
130
|
uniqueId: this.uniqueId
|
|
@@ -135,11 +133,14 @@ class ImageRef extends AutoReleasable {
|
|
|
135
133
|
}
|
|
136
134
|
|
|
137
135
|
/**
|
|
138
|
-
* Creates ImageRef with uniqueId from the
|
|
136
|
+
* Creates ImageRef with uniqueId from the file uri to an image.
|
|
139
137
|
*/
|
|
140
138
|
static async fromImageFileUri(uri, options = new _ImageRefTypes.PathImageLoadOptions()) {
|
|
141
139
|
try {
|
|
142
|
-
const serializedImageRefUniqueId = await
|
|
140
|
+
const serializedImageRefUniqueId = await ScanbotBarcodeSDKModule.imageRefFromImageFileUri({
|
|
141
|
+
uri,
|
|
142
|
+
options
|
|
143
|
+
});
|
|
143
144
|
return ImageRef.deserialize({
|
|
144
145
|
uniqueId: serializedImageRefUniqueId
|
|
145
146
|
});
|
|
@@ -154,25 +155,10 @@ class ImageRef extends AutoReleasable {
|
|
|
154
155
|
*/
|
|
155
156
|
static async fromEncodedBuffer(buffer, options = new _ImageRefTypes.BufferImageLoadOptions()) {
|
|
156
157
|
try {
|
|
157
|
-
const serializedImageRefUniqueId = await
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
const serializedImageRefUniqueId = await ScanbotBarcodeSDKModule.imageRefFromEncodedBuffer({
|
|
159
|
+
buffer,
|
|
160
|
+
options
|
|
160
161
|
});
|
|
161
|
-
} catch (error) {
|
|
162
|
-
console.error(error);
|
|
163
|
-
return null;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Creates a deep copy of the image.
|
|
169
|
-
* If uniqueId is not set or the image is already released, an exception will be thrown.
|
|
170
|
-
*/
|
|
171
|
-
async clone() {
|
|
172
|
-
this.throwErrorIfUniqueIdIsMissing();
|
|
173
|
-
this.throwErrorIfReleased();
|
|
174
|
-
try {
|
|
175
|
-
const serializedImageRefUniqueId = await ScanbotBarcodeSDKImpl.imageRefClone(this.uniqueId);
|
|
176
162
|
return ImageRef.deserialize({
|
|
177
163
|
uniqueId: serializedImageRefUniqueId
|
|
178
164
|
});
|
|
@@ -190,7 +176,9 @@ class ImageRef extends AutoReleasable {
|
|
|
190
176
|
this.throwErrorIfUniqueIdIsMissing();
|
|
191
177
|
this.throwErrorIfReleased();
|
|
192
178
|
try {
|
|
193
|
-
await
|
|
179
|
+
await ScanbotBarcodeSDKModule.imageRefHibernate({
|
|
180
|
+
uniqueId: this.uniqueId
|
|
181
|
+
});
|
|
194
182
|
} catch (error) {
|
|
195
183
|
console.error(error);
|
|
196
184
|
}
|
|
@@ -205,7 +193,9 @@ class ImageRef extends AutoReleasable {
|
|
|
205
193
|
this.throwErrorIfUniqueIdIsMissing();
|
|
206
194
|
this.throwErrorIfReleased();
|
|
207
195
|
try {
|
|
208
|
-
await
|
|
196
|
+
await ScanbotBarcodeSDKModule.imageRefClear({
|
|
197
|
+
uniqueId: this.uniqueId
|
|
198
|
+
});
|
|
209
199
|
} catch (error) {
|
|
210
200
|
console.error(error);
|
|
211
201
|
}
|
|
@@ -219,7 +209,9 @@ class ImageRef extends AutoReleasable {
|
|
|
219
209
|
this.throwErrorIfUniqueIdIsMissing();
|
|
220
210
|
this.throwErrorIfReleased();
|
|
221
211
|
try {
|
|
222
|
-
const imageInfo = await
|
|
212
|
+
const imageInfo = await ScanbotBarcodeSDKModule.imageRefInfo({
|
|
213
|
+
uniqueId: this.uniqueId
|
|
214
|
+
});
|
|
223
215
|
return new _ImageRefTypes.ImageInfo(imageInfo);
|
|
224
216
|
} catch (error) {
|
|
225
217
|
console.error(error);
|
|
@@ -235,7 +227,11 @@ class ImageRef extends AutoReleasable {
|
|
|
235
227
|
this.throwErrorIfUniqueIdIsMissing();
|
|
236
228
|
this.throwErrorIfReleased();
|
|
237
229
|
try {
|
|
238
|
-
return await
|
|
230
|
+
return await ScanbotBarcodeSDKModule.imageRefSaveImage({
|
|
231
|
+
uniqueId: this.uniqueId,
|
|
232
|
+
path,
|
|
233
|
+
options
|
|
234
|
+
});
|
|
239
235
|
} catch (error) {
|
|
240
236
|
console.error(error);
|
|
241
237
|
return false;
|
|
@@ -252,7 +248,10 @@ class ImageRef extends AutoReleasable {
|
|
|
252
248
|
this.throwErrorIfUniqueIdIsMissing();
|
|
253
249
|
this.throwErrorIfReleased();
|
|
254
250
|
try {
|
|
255
|
-
const imageAsBuffer = await
|
|
251
|
+
const imageAsBuffer = await ScanbotBarcodeSDKModule.imageRefEncodeImage({
|
|
252
|
+
uniqueId: this.uniqueId,
|
|
253
|
+
options: new _ImageRefTypes.EncodeImageOptions()
|
|
254
|
+
});
|
|
256
255
|
if (imageAsBuffer) {
|
|
257
256
|
this._buffer = imageAsBuffer;
|
|
258
257
|
}
|
|
@@ -268,14 +267,17 @@ class ImageRef extends AutoReleasable {
|
|
|
268
267
|
async encodeImage(options) {
|
|
269
268
|
if (this._buffer) {
|
|
270
269
|
if (options) {
|
|
271
|
-
throw new
|
|
270
|
+
throw new _errors.InvalidImageRefError('EncodeImageOptions are not available when image is already encoded to base64');
|
|
272
271
|
}
|
|
273
272
|
return this._buffer;
|
|
274
273
|
} else {
|
|
275
274
|
this.throwErrorIfUniqueIdIsMissing();
|
|
276
275
|
this.throwErrorIfReleased();
|
|
277
276
|
try {
|
|
278
|
-
return await
|
|
277
|
+
return await ScanbotBarcodeSDKModule.imageRefEncodeImage({
|
|
278
|
+
uniqueId: this.uniqueId,
|
|
279
|
+
options: options ?? new _ImageRefTypes.EncodeImageOptions()
|
|
280
|
+
});
|
|
279
281
|
} catch (error) {
|
|
280
282
|
console.error(error);
|
|
281
283
|
return null;
|
|
@@ -291,7 +293,9 @@ class ImageRef extends AutoReleasable {
|
|
|
291
293
|
this.throwErrorIfUniqueIdIsMissing();
|
|
292
294
|
if (!this.released) {
|
|
293
295
|
// The promise is intentionally not awaited here
|
|
294
|
-
|
|
296
|
+
ScanbotBarcodeSDKModule.imageRefRelease({
|
|
297
|
+
uniqueId: this.uniqueId
|
|
298
|
+
}).catch(error => {
|
|
295
299
|
console.error(`Error while releasing ImageRef with uniqueId ${this.uniqueId}: ${error}`);
|
|
296
300
|
});
|
|
297
301
|
this.released = true;
|
|
@@ -304,7 +308,7 @@ class ImageRef extends AutoReleasable {
|
|
|
304
308
|
*/
|
|
305
309
|
static async makeSnapshot() {
|
|
306
310
|
try {
|
|
307
|
-
const snapshot = await
|
|
311
|
+
const snapshot = await ScanbotBarcodeSDKModule.makeSnapshot();
|
|
308
312
|
return new _ImageRefTypes.ImageRefPoolSnapshot(snapshot);
|
|
309
313
|
} catch (error) {
|
|
310
314
|
console.error(error);
|
|
@@ -317,16 +321,16 @@ class ImageRef extends AutoReleasable {
|
|
|
317
321
|
*/
|
|
318
322
|
static releaseAll() {
|
|
319
323
|
// The promise is intentionally not awaited here
|
|
320
|
-
|
|
324
|
+
ScanbotBarcodeSDKModule.imageRefReleaseAll().catch(() => {});
|
|
321
325
|
}
|
|
322
326
|
throwErrorIfUniqueIdIsMissing() {
|
|
323
327
|
if (!this.uniqueId) {
|
|
324
|
-
throw new
|
|
328
|
+
throw new _errors.InvalidImageRefError('uniqueId is missing');
|
|
325
329
|
}
|
|
326
330
|
}
|
|
327
331
|
throwErrorIfReleased() {
|
|
328
332
|
if (this.released) {
|
|
329
|
-
throw new
|
|
333
|
+
throw new _errors.InvalidImageRefError(`ImageRef with uniqueId ${this.uniqueId} has been released`);
|
|
330
334
|
}
|
|
331
335
|
}
|
|
332
336
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_errors","_ImageRefTypes","ScanbotBarcodeSDKModule","NativeModules","ScanbotBarcodeSdk","Proxy","get","Error","AutoReleasePool","globalPull","globalPullReferences","poolObjects","releaseAll","obj","isRetained","release","addObject","push","autorelease","computation","releasePoolRef","AutoReleasable","retained","constructor","uniqueId","errorMessage","InvalidImageRefError","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","PathImageLoadOptions","serializedImageRefUniqueId","imageRefFromImageFileUri","fromEncodedBuffer","BufferImageLoadOptions","imageRefFromEncodedBuffer","hibernate","imageRefHibernate","clear","imageRefClear","info","imageInfo","imageRefInfo","ImageInfo","saveImage","path","SaveImageOptions","imageRefSaveImage","encodeInPlace","imageAsBuffer","imageRefEncodeImage","EncodeImageOptions","imageRefRelease","makeSnapshot","snapshot","ImageRefPoolSnapshot","imageRefReleaseAll","exports"],"sourceRoot":"../../../../../src","sources":["types/core/image/image.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAGA,IAAAE,cAAA,GAAAF,OAAA;AASA,MAAMG,uBAAuB,GAAGC,0BAAa,CAACC,iBAAiB,GAC3DD,0BAAa,CAACC,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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KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;EAC9D;EAEQK,6BAA6BA,CAAA,EAAS;IAC5C,IAAI,CAAC,IAAI,CAACvB,QAAQ,EAAE;MAClB,MAAM,IAAIE,4BAAoB,CAAC,qBAAqB,CAAC;IACvD;EACF;EAEQsB,oBAAoBA,CAAA,EAAS;IACnC,IAAI,IAAI,CAACnB,QAAQ,EAAE;MACjB,MAAM,IAAIH,4BAAoB,CAAC,0BAA0B,IAAI,CAACF,QAAQ,oBAAoB,CAAC;IAC7F;EACF;AACF;AAACwD,OAAA,CAAApD,QAAA,GAAAA,QAAA","ignoreList":[]}
|
|
@@ -25,17 +25,6 @@ Object.keys(_ImageTypes).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
-
var _ObjectPoolTypes = require("./ObjectPoolTypes");
|
|
29
|
-
Object.keys(_ObjectPoolTypes).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _ObjectPoolTypes[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _ObjectPoolTypes[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
28
|
var _image = require("./image");
|
|
40
29
|
Object.keys(_image).forEach(function (key) {
|
|
41
30
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_ImageRefTypes","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_ImageTypes","_image"],"sourceRoot":"../../../../../src","sources":["types/core/image/index.ts"],"mappings":";;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,cAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,cAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,cAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,WAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,WAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,WAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,WAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,MAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,MAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,MAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,MAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _barcode = require("./barcode");
|
|
7
|
+
Object.keys(_barcode).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _barcode[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _barcode[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _camera = require("./camera");
|
|
18
|
+
Object.keys(_camera).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _camera[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _camera[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _common = require("./common");
|
|
29
|
+
Object.keys(_common).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _common[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _common[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _generic_document = require("./generic_document");
|
|
40
|
+
Object.keys(_generic_document).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _generic_document[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _generic_document[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
var _geometry = require("./geometry");
|
|
51
|
+
Object.keys(_geometry).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _geometry[key]) return;
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _geometry[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
var _image = require("./image");
|
|
62
|
+
Object.keys(_image).forEach(function (key) {
|
|
63
|
+
if (key === "default" || key === "__esModule") return;
|
|
64
|
+
if (key in exports && exports[key] === _image[key]) return;
|
|
65
|
+
Object.defineProperty(exports, key, {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () {
|
|
68
|
+
return _image[key];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
var _licensing = require("./licensing");
|
|
73
|
+
Object.keys(_licensing).forEach(function (key) {
|
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
|
75
|
+
if (key in exports && exports[key] === _licensing[key]) return;
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return _licensing[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
var _ui_v = require("./ui_v2");
|
|
84
|
+
Object.keys(_ui_v).forEach(function (key) {
|
|
85
|
+
if (key === "default" || key === "__esModule") return;
|
|
86
|
+
if (key in exports && exports[key] === _ui_v[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () {
|
|
90
|
+
return _ui_v[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
var _utils = require("./utils");
|
|
95
|
+
Object.keys(_utils).forEach(function (key) {
|
|
96
|
+
if (key === "default" || key === "__esModule") return;
|
|
97
|
+
if (key in exports && exports[key] === _utils[key]) return;
|
|
98
|
+
Object.defineProperty(exports, key, {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function () {
|
|
101
|
+
return _utils[key];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_barcode","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_camera","_common","_generic_document","_geometry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MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAM,UAAA,CAAAV,GAAA;IAAA;EAAA;AAAA;AACA,IAAAW,KAAA,GAAAf,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAa,KAAA,EAAAZ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAW,KAAA,CAAAX,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAO,KAAA,CAAAX,GAAA;IAAA;EAAA;AAAA;AACA,IAAAY,MAAA,GAAAhB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAc,MAAA,EAAAb,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAY,MAAA,CAAAZ,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAQ,MAAA,CAAAZ,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.LicenseStatusValues = exports.LicenseInfo = exports.FeatureValues = exports.DeviceDeregistrationError = void 0;
|
|
7
|
+
var _JsonSerializationTypes = require("../common/JsonSerializationTypes");
|
|
8
|
+
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
9
|
+
/// Generated from core/schemas/LicensingTypes.yaml
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
Status of the license plate scanner.
|
|
13
|
+
|
|
14
|
+
- `OKAY`:
|
|
15
|
+
License is valid and accepted.
|
|
16
|
+
- `TRIAL`:
|
|
17
|
+
No license set yet. The SDK is in trial mode.
|
|
18
|
+
- `OKAY_EXPIRING_SOON`:
|
|
19
|
+
License is valid but will expire soon. Make sure to update your license before it expires to ensure uninterrupted function.
|
|
20
|
+
- `FAILURE_NOT_SET`:
|
|
21
|
+
No license set. On platforms that support trial mode, it means that the SDK's trial mode is over.
|
|
22
|
+
- `FAILURE_CORRUPTED`:
|
|
23
|
+
No license active. The set license was unreadable or has an invalid format.
|
|
24
|
+
- `FAILURE_WRONG_OS`:
|
|
25
|
+
No license active. The set license does not cover the current operating system.
|
|
26
|
+
- `FAILURE_APP_ID_MISMATCH`:
|
|
27
|
+
No license active. The set license does not cover the current app's bundle identifier.
|
|
28
|
+
- `FAILURE_EXPIRED`:
|
|
29
|
+
No license active. The set license is valid but it has expired.
|
|
30
|
+
- `FAILURE_SERVER`:
|
|
31
|
+
No license active. The online license check failed.
|
|
32
|
+
- `FAILURE_VERSION`:
|
|
33
|
+
No license active. The set license does not cover the current SDK version.
|
|
34
|
+
- `FAILURE_INACTIVE`:
|
|
35
|
+
No license active. The set license is not yet active.
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/** @hidden */
|
|
39
|
+
const LicenseStatusValues = exports.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'];
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
Description of error that occurred during device deregistration.
|
|
43
|
+
*/
|
|
44
|
+
class DeviceDeregistrationError {
|
|
45
|
+
/**
|
|
46
|
+
Sequential number of the device registration. Starts with 0. Each time a call to initializeLicense with a new license is made, the device ID.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
Error message describing the error.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/** @param source {@displayType `DeepPartial<DeviceDeregistrationError>`} */
|
|
54
|
+
constructor(source = {}) {
|
|
55
|
+
if (source.deviceId !== undefined) {
|
|
56
|
+
this.deviceId = source.deviceId;
|
|
57
|
+
} else {
|
|
58
|
+
throw new Error('deviceId must be present in constructor argument');
|
|
59
|
+
}
|
|
60
|
+
if (source.errorMessage !== undefined) {
|
|
61
|
+
this.errorMessage = source.errorMessage;
|
|
62
|
+
} else {
|
|
63
|
+
throw new Error('errorMessage must be present in constructor argument');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
serialize(config = new _JsonSerializationTypes.ToJsonConfiguration()) {
|
|
67
|
+
return {
|
|
68
|
+
deviceId: this.deviceId,
|
|
69
|
+
errorMessage: this.errorMessage
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
Information about the SDK license.
|
|
76
|
+
*/
|
|
77
|
+
exports.DeviceDeregistrationError = DeviceDeregistrationError;
|
|
78
|
+
class LicenseInfo {
|
|
79
|
+
/**
|
|
80
|
+
License status.
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
True if the license status corresponds to a valid license.
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
Message describing the license status.
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
Expiration timestamp of the license or trial period in seconds since the UNIX epoch.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
Expiration date of the license or trial period in ISO 8601 date-time format.
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
Additional error message in case of a license error.
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
True if an online license check is in progress.
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
The currently active license. May be different from the license used to initialize
|
|
109
|
+
the SDK if the online license check has completed and the server has sent
|
|
110
|
+
an updated license.
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
Number of devices the license is valid for, if the license is floating.
|
|
115
|
+
*/
|
|
116
|
+
devices = null;
|
|
117
|
+
/**
|
|
118
|
+
Time in milliseconds until the next online license check will be performed. -1 if no online license check is scheduled.
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
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.
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
/** @param source {@displayType `DeepPartial<LicenseInfo>`} */
|
|
126
|
+
constructor(source = {}) {
|
|
127
|
+
if (source.status !== undefined) {
|
|
128
|
+
this.status = source.status;
|
|
129
|
+
} else {
|
|
130
|
+
throw new Error('status must be present in constructor argument');
|
|
131
|
+
}
|
|
132
|
+
if (source.isValid !== undefined) {
|
|
133
|
+
this.isValid = source.isValid;
|
|
134
|
+
} else {
|
|
135
|
+
throw new Error('isValid must be present in constructor argument');
|
|
136
|
+
}
|
|
137
|
+
if (source.licenseStatusMessage !== undefined) {
|
|
138
|
+
this.licenseStatusMessage = source.licenseStatusMessage;
|
|
139
|
+
} else {
|
|
140
|
+
throw new Error('licenseStatusMessage must be present in constructor argument');
|
|
141
|
+
}
|
|
142
|
+
if (source.expirationTimestamp !== undefined) {
|
|
143
|
+
this.expirationTimestamp = source.expirationTimestamp;
|
|
144
|
+
} else {
|
|
145
|
+
throw new Error('expirationTimestamp must be present in constructor argument');
|
|
146
|
+
}
|
|
147
|
+
if (source.expirationDateString !== undefined) {
|
|
148
|
+
this.expirationDateString = source.expirationDateString;
|
|
149
|
+
} else {
|
|
150
|
+
throw new Error('expirationDateString must be present in constructor argument');
|
|
151
|
+
}
|
|
152
|
+
if (source.errorMessage !== undefined) {
|
|
153
|
+
this.errorMessage = source.errorMessage;
|
|
154
|
+
} else {
|
|
155
|
+
throw new Error('errorMessage must be present in constructor argument');
|
|
156
|
+
}
|
|
157
|
+
if (source.onlineLicenseCheckInProgress !== undefined) {
|
|
158
|
+
this.onlineLicenseCheckInProgress = source.onlineLicenseCheckInProgress;
|
|
159
|
+
} else {
|
|
160
|
+
throw new Error('onlineLicenseCheckInProgress must be present in constructor argument');
|
|
161
|
+
}
|
|
162
|
+
if (source.license !== undefined) {
|
|
163
|
+
this.license = source.license;
|
|
164
|
+
} else {
|
|
165
|
+
throw new Error('license must be present in constructor argument');
|
|
166
|
+
}
|
|
167
|
+
if (source.devices !== undefined) {
|
|
168
|
+
this.devices = source.devices != null ? source.devices : null;
|
|
169
|
+
}
|
|
170
|
+
if (source.nextOnlineLicenseCheckInMs !== undefined) {
|
|
171
|
+
this.nextOnlineLicenseCheckInMs = source.nextOnlineLicenseCheckInMs;
|
|
172
|
+
} else {
|
|
173
|
+
throw new Error('nextOnlineLicenseCheckInMs must be present in constructor argument');
|
|
174
|
+
}
|
|
175
|
+
if (source.deviceDeregistationErrors !== undefined) {
|
|
176
|
+
this.deviceDeregistationErrors = source.deviceDeregistationErrors.map(it => {
|
|
177
|
+
return new DeviceDeregistrationError(it);
|
|
178
|
+
});
|
|
179
|
+
} else {
|
|
180
|
+
throw new Error('deviceDeregistationErrors must be present in constructor argument');
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
serialize(config = new _JsonSerializationTypes.ToJsonConfiguration()) {
|
|
184
|
+
return {
|
|
185
|
+
status: this.status,
|
|
186
|
+
isValid: this.isValid,
|
|
187
|
+
licenseStatusMessage: this.licenseStatusMessage,
|
|
188
|
+
expirationTimestamp: this.expirationTimestamp,
|
|
189
|
+
expirationDateString: this.expirationDateString,
|
|
190
|
+
errorMessage: this.errorMessage,
|
|
191
|
+
onlineLicenseCheckInProgress: this.onlineLicenseCheckInProgress,
|
|
192
|
+
license: this.license,
|
|
193
|
+
devices: this.devices != null ? this.devices : null,
|
|
194
|
+
nextOnlineLicenseCheckInMs: this.nextOnlineLicenseCheckInMs,
|
|
195
|
+
deviceDeregistationErrors: this.deviceDeregistationErrors.map(it => {
|
|
196
|
+
return it.serialize(config);
|
|
197
|
+
})
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
License features.
|
|
204
|
+
|
|
205
|
+
- `BARCODE_SCANNER`:
|
|
206
|
+
Barcode scanner.
|
|
207
|
+
- `CHECK_SCANNER`:
|
|
208
|
+
Check scanner.
|
|
209
|
+
- `CREDIT_CARD_SCANNER`:
|
|
210
|
+
Credit card scanner.
|
|
211
|
+
- `IMAGE_PROCESSING`:
|
|
212
|
+
Image processing.
|
|
213
|
+
- `DOCUMENT_SCANNER`:
|
|
214
|
+
Document scanner.
|
|
215
|
+
- `LICENSE_PLATE_SCANNER`:
|
|
216
|
+
License plate scanner.
|
|
217
|
+
- `MEDICAL_CERTIFICATE_SCANNER`:
|
|
218
|
+
Medical certificate scanner.
|
|
219
|
+
- `MRZ_SCANNER`:
|
|
220
|
+
MRZ scanner.
|
|
221
|
+
- `OCR`:
|
|
222
|
+
OCR.
|
|
223
|
+
- `TEXT_PATTERN_SCANNER`:
|
|
224
|
+
Text pattern scanner.
|
|
225
|
+
- `PDF_CREATION`:
|
|
226
|
+
PDF creation.
|
|
227
|
+
- `ID_CARD_SCANNER`:
|
|
228
|
+
ID card scanner.
|
|
229
|
+
- `DRIVER_LICENSE_SCANNER`:
|
|
230
|
+
Driver license scanner.
|
|
231
|
+
- `EHIC_SCANNER`:
|
|
232
|
+
EHIC scanner.
|
|
233
|
+
- `DOCUMENT_CLASSIFICATION`:
|
|
234
|
+
Document classification.
|
|
235
|
+
*/
|
|
236
|
+
exports.LicenseInfo = LicenseInfo;
|
|
237
|
+
/** @hidden */
|
|
238
|
+
const FeatureValues = exports.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'];
|
|
239
|
+
//# sourceMappingURL=LicensingTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_JsonSerializationTypes","require","LicenseStatusValues","exports","DeviceDeregistrationError","constructor","source","deviceId","undefined","Error","errorMessage","serialize","config","ToJsonConfiguration","LicenseInfo","devices","status","isValid","licenseStatusMessage","expirationTimestamp","expirationDateString","onlineLicenseCheckInProgress","license","nextOnlineLicenseCheckInMs","deviceDeregistationErrors","map","it","FeatureValues"],"sourceRoot":"../../../../../src","sources":["types/core/licensing/LicensingTypes.ts"],"mappings":";;;;;;AAGA,IAAAA,uBAAA,GAAAC,OAAA;AAHA;AACA;;AAKA;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;AACO,MAAMC,mBAAiD,GAAAC,OAAA,CAAAD,mBAAA,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;AACO,MAAME,yBAAyB,CAAC;EACrC;AACF;AACA;;EAEE;AACF;AACA;;EAGE;EACOC,WAAWA,CAACC,MAA8C,GAAG,CAAC,CAAC,EAAE;IACtE,IAAIA,MAAM,CAACC,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