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
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
2
|
+
/// Generated from core/schemas/BarcodeDocumentTypes.yaml
|
|
3
|
+
|
|
4
|
+
import { ToJsonConfiguration } from '../common/JsonSerializationTypes';
|
|
5
|
+
import { GenericDocument } from '../generic_document/GenericDocument';
|
|
6
|
+
import { DeepPartial } from '../utils/utils';
|
|
7
|
+
import { BarcodeFormat } from './BarcodeTypes';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
Type of barcode document format used.
|
|
11
|
+
|
|
12
|
+
- `AAMVA`:
|
|
13
|
+
American Association of Motor Vehicle Administrators barcode document.
|
|
14
|
+
- `BOARDING_PASS`:
|
|
15
|
+
Boarding pass barcode document.
|
|
16
|
+
- `DE_MEDICAL_PLAN`:
|
|
17
|
+
German medication plan barcode document.
|
|
18
|
+
- `MEDICAL_CERTIFICATE`:
|
|
19
|
+
German medical certificate barcode document.
|
|
20
|
+
- `ID_CARD_PDF_417`:
|
|
21
|
+
ID card barcode document.
|
|
22
|
+
- `SEPA`:
|
|
23
|
+
SEPA barcode (aka GiroCode) document.
|
|
24
|
+
- `SWISS_QR`:
|
|
25
|
+
Swiss QR barcode document.
|
|
26
|
+
- `VCARD`:
|
|
27
|
+
VCard barcode document.
|
|
28
|
+
- `GS1`:
|
|
29
|
+
GS1 barcode document.
|
|
30
|
+
- `HIBC`:
|
|
31
|
+
Health industry barcode document.
|
|
32
|
+
- `BRITISH_COLUMBIA_DRIVER_LICENSE`:
|
|
33
|
+
British Columbia driver license barcode document.
|
|
34
|
+
*/
|
|
35
|
+
export type BarcodeDocumentFormat =
|
|
36
|
+
/**
|
|
37
|
+
American Association of Motor Vehicle Administrators barcode document.
|
|
38
|
+
*/
|
|
39
|
+
| 'AAMVA'
|
|
40
|
+
/**
|
|
41
|
+
Boarding pass barcode document.
|
|
42
|
+
*/
|
|
43
|
+
| 'BOARDING_PASS'
|
|
44
|
+
/**
|
|
45
|
+
German medication plan barcode document.
|
|
46
|
+
*/
|
|
47
|
+
| 'DE_MEDICAL_PLAN'
|
|
48
|
+
/**
|
|
49
|
+
German medical certificate barcode document.
|
|
50
|
+
*/
|
|
51
|
+
| 'MEDICAL_CERTIFICATE'
|
|
52
|
+
/**
|
|
53
|
+
ID card barcode document.
|
|
54
|
+
*/
|
|
55
|
+
| 'ID_CARD_PDF_417'
|
|
56
|
+
/**
|
|
57
|
+
SEPA barcode (aka GiroCode) document.
|
|
58
|
+
*/
|
|
59
|
+
| 'SEPA'
|
|
60
|
+
/**
|
|
61
|
+
Swiss QR barcode document.
|
|
62
|
+
*/
|
|
63
|
+
| 'SWISS_QR'
|
|
64
|
+
/**
|
|
65
|
+
VCard barcode document.
|
|
66
|
+
*/
|
|
67
|
+
| 'VCARD'
|
|
68
|
+
/**
|
|
69
|
+
GS1 barcode document.
|
|
70
|
+
*/
|
|
71
|
+
| 'GS1'
|
|
72
|
+
/**
|
|
73
|
+
Health industry barcode document.
|
|
74
|
+
*/
|
|
75
|
+
| 'HIBC'
|
|
76
|
+
/**
|
|
77
|
+
British Columbia driver license barcode document.
|
|
78
|
+
*/
|
|
79
|
+
| 'BRITISH_COLUMBIA_DRIVER_LICENSE';
|
|
80
|
+
|
|
81
|
+
/** @hidden */
|
|
82
|
+
export const BarcodeDocumentFormatValues: ReadonlyArray<BarcodeDocumentFormat> = [
|
|
83
|
+
'AAMVA',
|
|
84
|
+
'BOARDING_PASS',
|
|
85
|
+
'DE_MEDICAL_PLAN',
|
|
86
|
+
'MEDICAL_CERTIFICATE',
|
|
87
|
+
'ID_CARD_PDF_417',
|
|
88
|
+
'SEPA',
|
|
89
|
+
'SWISS_QR',
|
|
90
|
+
'VCARD',
|
|
91
|
+
'GS1',
|
|
92
|
+
'HIBC',
|
|
93
|
+
'BRITISH_COLUMBIA_DRIVER_LICENSE',
|
|
94
|
+
] as const;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
Barcode document formats.
|
|
98
|
+
*/
|
|
99
|
+
export class BarcodeDocumentFormats {
|
|
100
|
+
/** @param source {@displayType `DeepPartial<BarcodeDocumentFormats>`} */
|
|
101
|
+
public constructor(source: DeepPartial<BarcodeDocumentFormats> = {}) {}
|
|
102
|
+
|
|
103
|
+
public serialize(
|
|
104
|
+
config: ToJsonConfiguration = new ToJsonConfiguration()
|
|
105
|
+
): DeepPartial<BarcodeDocumentFormats> {
|
|
106
|
+
return {};
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export namespace BarcodeDocumentFormats {
|
|
111
|
+
/**
|
|
112
|
+
All barcode document formats.
|
|
113
|
+
*/
|
|
114
|
+
export const all: BarcodeDocumentFormat[] = [
|
|
115
|
+
'AAMVA',
|
|
116
|
+
'BOARDING_PASS',
|
|
117
|
+
'DE_MEDICAL_PLAN',
|
|
118
|
+
'MEDICAL_CERTIFICATE',
|
|
119
|
+
'ID_CARD_PDF_417',
|
|
120
|
+
'SEPA',
|
|
121
|
+
'SWISS_QR',
|
|
122
|
+
'VCARD',
|
|
123
|
+
'GS1',
|
|
124
|
+
'HIBC',
|
|
125
|
+
'BRITISH_COLUMBIA_DRIVER_LICENSE',
|
|
126
|
+
];
|
|
127
|
+
/**
|
|
128
|
+
Barcode types that are used to encode documents.
|
|
129
|
+
*/
|
|
130
|
+
export const documentBarcodeFormats: { [key in BarcodeDocumentFormat]: BarcodeFormat[] } = {
|
|
131
|
+
AAMVA: ['PDF_417'],
|
|
132
|
+
ID_CARD_PDF_417: ['PDF_417'],
|
|
133
|
+
SEPA: ['QR_CODE'],
|
|
134
|
+
MEDICAL_CERTIFICATE: ['PDF_417'],
|
|
135
|
+
DE_MEDICAL_PLAN: ['DATA_MATRIX'],
|
|
136
|
+
BOARDING_PASS: ['PDF_417', 'AZTEC', 'QR_CODE'],
|
|
137
|
+
VCARD: ['QR_CODE', 'DATA_MATRIX'],
|
|
138
|
+
SWISS_QR: ['QR_CODE'],
|
|
139
|
+
GS1: [
|
|
140
|
+
'CODE_128',
|
|
141
|
+
'AZTEC',
|
|
142
|
+
'DATA_MATRIX',
|
|
143
|
+
'DATABAR',
|
|
144
|
+
'DATABAR_EXPANDED',
|
|
145
|
+
'DATABAR_LIMITED',
|
|
146
|
+
'EAN_13',
|
|
147
|
+
'EAN_8',
|
|
148
|
+
'GS1_COMPOSITE',
|
|
149
|
+
'ITF',
|
|
150
|
+
'MICRO_PDF_417',
|
|
151
|
+
'PDF_417',
|
|
152
|
+
'QR_CODE',
|
|
153
|
+
'UPC_A',
|
|
154
|
+
'UPC_E',
|
|
155
|
+
],
|
|
156
|
+
HIBC: ['CODE_39', 'CODE_128', 'AZTEC', 'DATA_MATRIX', 'MICRO_PDF_417', 'PDF_417', 'QR_CODE'],
|
|
157
|
+
BRITISH_COLUMBIA_DRIVER_LICENSE: ['PDF_417'],
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
The result of barcode document parsing.
|
|
163
|
+
*/
|
|
164
|
+
export class BarcodeDocumentParserResult {
|
|
165
|
+
/**
|
|
166
|
+
True if any document was parsed.
|
|
167
|
+
*/
|
|
168
|
+
public readonly success: boolean;
|
|
169
|
+
/**
|
|
170
|
+
In case of success, the parsed document.
|
|
171
|
+
*/
|
|
172
|
+
public readonly parsedDocument: GenericDocument | null;
|
|
173
|
+
|
|
174
|
+
/** @param source {@displayType `DeepPartial<BarcodeDocumentParserResult>`} */
|
|
175
|
+
public constructor(source: DeepPartial<BarcodeDocumentParserResult> = {}) {
|
|
176
|
+
if (source.success !== undefined) {
|
|
177
|
+
this.success = source.success;
|
|
178
|
+
} else {
|
|
179
|
+
throw new Error('success must be present in constructor argument');
|
|
180
|
+
}
|
|
181
|
+
if (source.parsedDocument !== undefined) {
|
|
182
|
+
this.parsedDocument =
|
|
183
|
+
source.parsedDocument != null ? new GenericDocument(source.parsedDocument) : null;
|
|
184
|
+
} else {
|
|
185
|
+
throw new Error('parsedDocument must be present in constructor argument');
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
public async serialize(
|
|
190
|
+
config: ToJsonConfiguration = new ToJsonConfiguration()
|
|
191
|
+
): Promise<DeepPartial<BarcodeDocumentParserResult>> {
|
|
192
|
+
return {
|
|
193
|
+
success: this.success,
|
|
194
|
+
parsedDocument:
|
|
195
|
+
this.parsedDocument != null ? await this.parsedDocument.serialize(config) : null,
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
private _released: Boolean = false;
|
|
200
|
+
|
|
201
|
+
public release() {
|
|
202
|
+
if (this._released) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
{
|
|
206
|
+
if (this.parsedDocument != null) {
|
|
207
|
+
this.parsedDocument.release();
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
this._released = true;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
public async encodeImages(): Promise<void> {
|
|
214
|
+
if (this.parsedDocument != null) {
|
|
215
|
+
await this.parsedDocument.encodeImages();
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
|
|
2
2
|
/// Generated from core/schemas/BarcodeScannerTypes.yaml
|
|
3
3
|
|
|
4
|
+
import { ProcessingMode } from '../common/CommonTypes';
|
|
5
|
+
import { ToJsonConfiguration } from '../common/JsonSerializationTypes';
|
|
6
|
+
import { GenericDocument } from '../generic_document/GenericDocument';
|
|
7
|
+
import { ImageRef } from '../image/image';
|
|
8
|
+
import type { Point } from '../utils/utils';
|
|
9
|
+
import { DeepPartial } from '../utils/utils';
|
|
4
10
|
import {
|
|
5
11
|
BarcodeFormatCommonConfiguration,
|
|
6
12
|
BarcodeFormatConfigurationBase,
|
|
7
|
-
} from '
|
|
8
|
-
import { BarcodeDocumentFormat } from '
|
|
9
|
-
import { BarcodeFormat, RangeEncoding, StructuredAppendInfo } from '
|
|
10
|
-
import { GenericDocument } from '../documents/GenericDocument';
|
|
11
|
-
import { ImageRef } from '../imageRef/image';
|
|
12
|
-
import { ToJsonConfiguration } from '../utils/json/JsonSerializationTypes';
|
|
13
|
-
import { DeepPartial, PartiallyConstructible, Point } from '../utils/utils';
|
|
13
|
+
} from './BarcodeConfigurationTypes';
|
|
14
|
+
import { BarcodeDocumentFormat } from './BarcodeDocumentTypes';
|
|
15
|
+
import { BarcodeFormat, RangeEncoding, StructuredAppendInfo } from './BarcodeTypes';
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
A single barcode found in the input image. Barcodes with the same content but different locations in the image are considered separate barcodes.
|
|
17
19
|
*/
|
|
18
|
-
export class BarcodeItem
|
|
20
|
+
export class BarcodeItem {
|
|
21
|
+
/**
|
|
22
|
+
Barcode format.
|
|
23
|
+
|
|
24
|
+
Default is NONE
|
|
25
|
+
*/
|
|
26
|
+
public readonly format: BarcodeFormat = 'NONE';
|
|
19
27
|
/**
|
|
20
28
|
Text contained in the barcode. Binary data is returned in the rawBytes field only.
|
|
21
29
|
*/
|
|
@@ -38,12 +46,6 @@ export class BarcodeItem extends PartiallyConstructible {
|
|
|
38
46
|
If this barcode is part of a structured append sequence, this field contains information about the sequence.
|
|
39
47
|
*/
|
|
40
48
|
public readonly structuredAppendInfo: StructuredAppendInfo | null;
|
|
41
|
-
/**
|
|
42
|
-
Barcode format.
|
|
43
|
-
|
|
44
|
-
Default is NONE
|
|
45
|
-
*/
|
|
46
|
-
public readonly format: BarcodeFormat = 'NONE';
|
|
47
49
|
/**
|
|
48
50
|
The four corners of the barcode in the input image, in clockwise order starting from the top left, in image coordinates.
|
|
49
51
|
*/
|
|
@@ -116,7 +118,9 @@ export class BarcodeItem extends PartiallyConstructible {
|
|
|
116
118
|
|
|
117
119
|
/** @param source {@displayType `DeepPartial<BarcodeItem>`} */
|
|
118
120
|
public constructor(source: DeepPartial<BarcodeItem> = {}) {
|
|
119
|
-
|
|
121
|
+
if (source.format !== undefined) {
|
|
122
|
+
this.format = source.format;
|
|
123
|
+
}
|
|
120
124
|
if (source.text !== undefined) {
|
|
121
125
|
this.text = source.text;
|
|
122
126
|
} else {
|
|
@@ -128,7 +132,7 @@ export class BarcodeItem extends PartiallyConstructible {
|
|
|
128
132
|
throw new Error('rawBytes must be present in constructor argument');
|
|
129
133
|
}
|
|
130
134
|
if (source.rawBytesEncodings !== undefined) {
|
|
131
|
-
this.rawBytesEncodings = source.rawBytesEncodings.map((it:
|
|
135
|
+
this.rawBytesEncodings = source.rawBytesEncodings.map((it: DeepPartial<RangeEncoding>) => {
|
|
132
136
|
return new RangeEncoding(it);
|
|
133
137
|
});
|
|
134
138
|
} else {
|
|
@@ -142,32 +146,29 @@ export class BarcodeItem extends PartiallyConstructible {
|
|
|
142
146
|
} else {
|
|
143
147
|
throw new Error('structuredAppendInfo must be present in constructor argument');
|
|
144
148
|
}
|
|
145
|
-
if (source.format !== undefined) {
|
|
146
|
-
this.format = source.format;
|
|
147
|
-
}
|
|
148
149
|
if (source.quad !== undefined) {
|
|
149
|
-
this.quad = source.quad.map((it:
|
|
150
|
+
this.quad = source.quad.map((it: DeepPartial<Point>) => {
|
|
150
151
|
return { x: it.x, y: it.y };
|
|
151
152
|
});
|
|
152
153
|
} else {
|
|
153
154
|
throw new Error('quad must be present in constructor argument');
|
|
154
155
|
}
|
|
155
156
|
if (source.quadNormalized !== undefined) {
|
|
156
|
-
this.quadNormalized = source.quadNormalized.map((it:
|
|
157
|
+
this.quadNormalized = source.quadNormalized.map((it: DeepPartial<Point>) => {
|
|
157
158
|
return { x: it.x, y: it.y };
|
|
158
159
|
});
|
|
159
160
|
} else {
|
|
160
161
|
throw new Error('quadNormalized must be present in constructor argument');
|
|
161
162
|
}
|
|
162
163
|
if (source.extendedQuad !== undefined) {
|
|
163
|
-
this.extendedQuad = source.extendedQuad.map((it:
|
|
164
|
+
this.extendedQuad = source.extendedQuad.map((it: DeepPartial<Point>) => {
|
|
164
165
|
return { x: it.x, y: it.y };
|
|
165
166
|
});
|
|
166
167
|
} else {
|
|
167
168
|
throw new Error('extendedQuad must be present in constructor argument');
|
|
168
169
|
}
|
|
169
170
|
if (source.extendedQuadNormalized !== undefined) {
|
|
170
|
-
this.extendedQuadNormalized = source.extendedQuadNormalized.map((it:
|
|
171
|
+
this.extendedQuadNormalized = source.extendedQuadNormalized.map((it: DeepPartial<Point>) => {
|
|
171
172
|
return { x: it.x, y: it.y };
|
|
172
173
|
});
|
|
173
174
|
} else {
|
|
@@ -177,7 +178,7 @@ export class BarcodeItem extends PartiallyConstructible {
|
|
|
177
178
|
this.isUpsideDown = source.isUpsideDown;
|
|
178
179
|
}
|
|
179
180
|
if (source.sourceImage !== undefined) {
|
|
180
|
-
this.sourceImage = source.sourceImage != null ? ImageRef.
|
|
181
|
+
this.sourceImage = source.sourceImage != null ? ImageRef.from(source.sourceImage) : null;
|
|
181
182
|
}
|
|
182
183
|
if (source.upcEanExtension !== undefined) {
|
|
183
184
|
this.upcEanExtension = source.upcEanExtension;
|
|
@@ -211,6 +212,7 @@ export class BarcodeItem extends PartiallyConstructible {
|
|
|
211
212
|
config: ToJsonConfiguration = new ToJsonConfiguration()
|
|
212
213
|
): Promise<DeepPartial<BarcodeItem>> {
|
|
213
214
|
return {
|
|
215
|
+
format: this.format,
|
|
214
216
|
text: this.text,
|
|
215
217
|
rawBytes: this.rawBytes,
|
|
216
218
|
rawBytesEncodings: this.rawBytesEncodings.map((it: any) => {
|
|
@@ -218,7 +220,6 @@ export class BarcodeItem extends PartiallyConstructible {
|
|
|
218
220
|
}),
|
|
219
221
|
structuredAppendInfo:
|
|
220
222
|
this.structuredAppendInfo != null ? this.structuredAppendInfo.serialize(config) : null,
|
|
221
|
-
format: this.format,
|
|
222
223
|
quad: this.quad.map((it: any) => {
|
|
223
224
|
return it;
|
|
224
225
|
}),
|
|
@@ -290,21 +291,44 @@ The engine mode for barcode scanning.
|
|
|
290
291
|
Similar to NEXT_GEN_LOW_POWER, but optimized for scanning from far distances.
|
|
291
292
|
- `NEXT_GEN_FAR_DISTANCE`:
|
|
292
293
|
Similar to NEXT_GEN, but optimized for scanning from far distances.
|
|
294
|
+
- `NEXT_GEN_MAX_DISTANCE`:
|
|
295
|
+
Similar to NEXT_GEN_FAR_DISTANCE, but optimized for scanning from far distances on very high power devices.
|
|
293
296
|
*/
|
|
294
297
|
export type BarcodeScannerEngineMode =
|
|
298
|
+
/**
|
|
299
|
+
Legacy mode. Very fast, significantly less accurate. Doesn't support all barcode types.
|
|
300
|
+
*/
|
|
295
301
|
| 'LEGACY'
|
|
302
|
+
/**
|
|
303
|
+
A faster version of the main engine mode, for use with low-power devices.
|
|
304
|
+
*/
|
|
296
305
|
| 'NEXT_GEN_LOW_POWER'
|
|
306
|
+
/**
|
|
307
|
+
Main engine mode for high-power devices. Supports all barcodes types.
|
|
308
|
+
*/
|
|
297
309
|
| 'NEXT_GEN'
|
|
310
|
+
/**
|
|
311
|
+
Similar to NEXT_GEN_LOW_POWER, but optimized for scanning from far distances.
|
|
312
|
+
*/
|
|
298
313
|
| 'NEXT_GEN_LOW_POWER_FAR_DISTANCE'
|
|
299
|
-
|
|
314
|
+
/**
|
|
315
|
+
Similar to NEXT_GEN, but optimized for scanning from far distances.
|
|
316
|
+
*/
|
|
317
|
+
| 'NEXT_GEN_FAR_DISTANCE'
|
|
318
|
+
/**
|
|
319
|
+
Similar to NEXT_GEN_FAR_DISTANCE, but optimized for scanning from far distances on very high power devices.
|
|
320
|
+
*/
|
|
321
|
+
| 'NEXT_GEN_MAX_DISTANCE';
|
|
300
322
|
|
|
301
|
-
|
|
323
|
+
/** @hidden */
|
|
324
|
+
export const BarcodeScannerEngineModeValues: ReadonlyArray<BarcodeScannerEngineMode> = [
|
|
302
325
|
'LEGACY',
|
|
303
326
|
'NEXT_GEN_LOW_POWER',
|
|
304
327
|
'NEXT_GEN',
|
|
305
328
|
'NEXT_GEN_LOW_POWER_FAR_DISTANCE',
|
|
306
329
|
'NEXT_GEN_FAR_DISTANCE',
|
|
307
|
-
|
|
330
|
+
'NEXT_GEN_MAX_DISTANCE',
|
|
331
|
+
] as const;
|
|
308
332
|
|
|
309
333
|
/**
|
|
310
334
|
The method how to display barcodes from previous frames.
|
|
@@ -314,17 +338,26 @@ The method how to display barcodes from previous frames.
|
|
|
314
338
|
- `INTERPOLATE_BY_CAMERA`:
|
|
315
339
|
The quad of barcode is interpolated by the camera movement. This option is recommended when the camera is moving, but the scanned object is not.
|
|
316
340
|
*/
|
|
317
|
-
export type BarcodeAccumulationMethod =
|
|
341
|
+
export type BarcodeAccumulationMethod =
|
|
342
|
+
/**
|
|
343
|
+
The quad of a barcode is simply given as the last quad when it was detected.
|
|
344
|
+
*/
|
|
345
|
+
| 'LAST_VISIBLE'
|
|
346
|
+
/**
|
|
347
|
+
The quad of barcode is interpolated by the camera movement. This option is recommended when the camera is moving, but the scanned object is not.
|
|
348
|
+
*/
|
|
349
|
+
| 'INTERPOLATE_BY_CAMERA';
|
|
318
350
|
|
|
319
|
-
|
|
351
|
+
/** @hidden */
|
|
352
|
+
export const BarcodeAccumulationMethodValues: ReadonlyArray<BarcodeAccumulationMethod> = [
|
|
320
353
|
'LAST_VISIBLE',
|
|
321
354
|
'INTERPOLATE_BY_CAMERA',
|
|
322
|
-
];
|
|
355
|
+
] as const;
|
|
323
356
|
|
|
324
357
|
/**
|
|
325
358
|
Configuration for how to accumulate results.
|
|
326
359
|
*/
|
|
327
|
-
export class BarcodeAccumulationConfiguration
|
|
360
|
+
export class BarcodeAccumulationConfiguration {
|
|
328
361
|
/**
|
|
329
362
|
The time in milliseconds to accumulate barcodes across multiple frames.
|
|
330
363
|
|
|
@@ -348,7 +381,6 @@ export class BarcodeAccumulationConfiguration extends PartiallyConstructible {
|
|
|
348
381
|
|
|
349
382
|
/** @param source {@displayType `DeepPartial<BarcodeAccumulationConfiguration>`} */
|
|
350
383
|
public constructor(source: DeepPartial<BarcodeAccumulationConfiguration> = {}) {
|
|
351
|
-
super();
|
|
352
384
|
if (source.accumulationTime !== undefined) {
|
|
353
385
|
this.accumulationTime = source.accumulationTime;
|
|
354
386
|
}
|
|
@@ -364,7 +396,7 @@ export class BarcodeAccumulationConfiguration extends PartiallyConstructible {
|
|
|
364
396
|
/**
|
|
365
397
|
Configuration for the barcode scanner.
|
|
366
398
|
*/
|
|
367
|
-
export class BarcodeScannerConfiguration
|
|
399
|
+
export class BarcodeScannerConfiguration {
|
|
368
400
|
/**
|
|
369
401
|
Options for barcode decoding.
|
|
370
402
|
*/
|
|
@@ -389,6 +421,7 @@ export class BarcodeScannerConfiguration extends PartiallyConstructible {
|
|
|
389
421
|
'VCARD',
|
|
390
422
|
'GS1',
|
|
391
423
|
'HIBC',
|
|
424
|
+
'BRITISH_COLUMBIA_DRIVER_LICENSE',
|
|
392
425
|
];
|
|
393
426
|
/**
|
|
394
427
|
If true and extractedDocumentFormats is not empty, then barcodes that don't decode to one of the extracted document formats will be ignored.
|
|
@@ -420,19 +453,31 @@ export class BarcodeScannerConfiguration extends PartiallyConstructible {
|
|
|
420
453
|
Default is false
|
|
421
454
|
*/
|
|
422
455
|
public optimizedForOverlays: boolean = false;
|
|
456
|
+
/**
|
|
457
|
+
Scanners typically can produce better results from a single image if they are allowed to spend a longer time analyzing it.
|
|
458
|
+
|
|
459
|
+
On the other hand, scanners can produce even better results if they can analyze multiple images of the same subject and cross-check and combine the results.
|
|
460
|
+
The processing mode tells the scanner whether to optimize for single or multiple images of a subject.
|
|
461
|
+
|
|
462
|
+
Default is AUTO
|
|
463
|
+
*/
|
|
464
|
+
public processingMode: ProcessingMode = 'AUTO';
|
|
423
465
|
|
|
424
466
|
/** @param source {@displayType `DeepPartial<BarcodeScannerConfiguration>`} */
|
|
425
467
|
public constructor(source: DeepPartial<BarcodeScannerConfiguration> = {}) {
|
|
426
|
-
super();
|
|
427
468
|
if (source.barcodeFormatConfigurations !== undefined) {
|
|
428
|
-
this.barcodeFormatConfigurations = source.barcodeFormatConfigurations.map(
|
|
429
|
-
|
|
430
|
-
|
|
469
|
+
this.barcodeFormatConfigurations = source.barcodeFormatConfigurations.map(
|
|
470
|
+
(it: DeepPartial<BarcodeFormatConfigurationBase>) => {
|
|
471
|
+
return BarcodeFormatConfigurationBase.from(it);
|
|
472
|
+
}
|
|
473
|
+
);
|
|
431
474
|
}
|
|
432
475
|
if (source.extractedDocumentFormats !== undefined) {
|
|
433
|
-
this.extractedDocumentFormats = source.extractedDocumentFormats.map(
|
|
434
|
-
|
|
435
|
-
|
|
476
|
+
this.extractedDocumentFormats = source.extractedDocumentFormats.map(
|
|
477
|
+
(it: DeepPartial<BarcodeDocumentFormat>) => {
|
|
478
|
+
return it;
|
|
479
|
+
}
|
|
480
|
+
);
|
|
436
481
|
}
|
|
437
482
|
if (source.onlyAcceptDocuments !== undefined) {
|
|
438
483
|
this.onlyAcceptDocuments = source.onlyAcceptDocuments;
|
|
@@ -449,13 +494,16 @@ export class BarcodeScannerConfiguration extends PartiallyConstructible {
|
|
|
449
494
|
if (source.optimizedForOverlays !== undefined) {
|
|
450
495
|
this.optimizedForOverlays = source.optimizedForOverlays;
|
|
451
496
|
}
|
|
497
|
+
if (source.processingMode !== undefined) {
|
|
498
|
+
this.processingMode = source.processingMode;
|
|
499
|
+
}
|
|
452
500
|
}
|
|
453
501
|
}
|
|
454
502
|
|
|
455
503
|
/**
|
|
456
504
|
The result of barcode scanning.
|
|
457
505
|
*/
|
|
458
|
-
export class BarcodeScannerResult
|
|
506
|
+
export class BarcodeScannerResult {
|
|
459
507
|
/**
|
|
460
508
|
List of found barcodes.
|
|
461
509
|
*/
|
|
@@ -467,9 +515,8 @@ export class BarcodeScannerResult extends PartiallyConstructible {
|
|
|
467
515
|
|
|
468
516
|
/** @param source {@displayType `DeepPartial<BarcodeScannerResult>`} */
|
|
469
517
|
public constructor(source: DeepPartial<BarcodeScannerResult> = {}) {
|
|
470
|
-
super();
|
|
471
518
|
if (source.barcodes !== undefined) {
|
|
472
|
-
this.barcodes = source.barcodes.map((it:
|
|
519
|
+
this.barcodes = source.barcodes.map((it: DeepPartial<BarcodeItem>) => {
|
|
473
520
|
return new BarcodeItem(it);
|
|
474
521
|
});
|
|
475
522
|
} else {
|