scanbot-web-sdk 6.0.0-dev.6 → 7.0.0-dev.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/@types/barcode-scanner-view.d.ts +1 -1
- package/@types/core/bridge/compiled/{BarcodeConfigs.d.ts → BarcodeConfigurationTypes.d.ts} +558 -173
- package/@types/core/bridge/compiled/BarcodeDocumentTypes.d.ts +14 -13
- package/@types/core/bridge/compiled/BarcodeScannerTypes.d.ts +25 -14
- package/@types/core/bridge/compiled/BarcodeTypes.d.ts +58 -56
- package/@types/core/bridge/compiled/CheckScannerTypes.d.ts +67 -0
- package/@types/core/bridge/compiled/CommonFieldType.d.ts +29 -28
- package/@types/core/bridge/compiled/CreditCardTypes.d.ts +35 -33
- package/@types/core/bridge/compiled/DocumentDataExtractorConfigurationTypes.d.ts +148 -0
- package/@types/core/bridge/compiled/DocumentDataExtractorTypes.d.ts +90 -0
- package/@types/core/bridge/compiled/DocumentQualityAnalyzerTypes.d.ts +28 -23
- package/@types/core/bridge/compiled/{DocumentDetectorTypes.d.ts → DocumentScannerTypes.d.ts} +49 -47
- package/@types/core/bridge/compiled/{EhicTypes.d.ts → EuropeanHealthInsuranceCardTypes.d.ts} +51 -108
- package/@types/core/bridge/compiled/FrameAccumulationTypes.d.ts +37 -14
- package/@types/core/bridge/compiled/GenericDocument.d.ts +17 -17
- package/@types/core/bridge/compiled/Geometry.d.ts +2 -2
- package/@types/core/bridge/compiled/ImageTypes.d.ts +1 -0
- package/@types/core/bridge/compiled/LicensePlateScannerTypes.d.ts +20 -19
- package/@types/core/bridge/compiled/MedicalCertificateTypes.d.ts +108 -105
- package/@types/core/bridge/compiled/MrzTypes.d.ts +73 -0
- package/@types/core/bridge/compiled/ParametricFilters.d.ts +4 -3
- package/@types/core/bridge/compiled/{PdfConfig.d.ts → PdfConfigurationTypes.d.ts} +48 -45
- package/@types/core/bridge/compiled/{GenericTextLineScannerTypes.d.ts → TextPatternScannerTypes.d.ts} +23 -22
- package/@types/core/bridge/compiled/TiffTypes.d.ts +48 -50
- package/@types/core/bridge/worker-bridge.d.ts +488 -364
- package/@types/core/worker/ScanbotSDK.Core.d.ts +21 -21
- package/@types/core-types.d.ts +10 -12
- package/@types/cropping-view.d.ts +8 -4
- package/@types/document-data-extractor-view.d.ts +22 -0
- package/@types/document-scanner-view.d.ts +16 -7
- package/@types/index.d.ts +36 -23
- package/@types/interfaces/i-cropping-view-handle.d.ts +2 -0
- package/@types/interfaces/i-document-data-extractor-scanner-handle.d.ts +3 -0
- package/@types/interfaces/{i-text-data-scanner-handle.d.ts → i-text-pattern-scanner-handle.d.ts} +1 -1
- package/@types/model/configuration/barcode-scanner-configuration.d.ts +1 -0
- package/@types/model/configuration/cropping-view-configuration.d.ts +1 -0
- package/@types/model/configuration/document-data-extractor-configuration.d.ts +9 -0
- package/@types/model/configuration/document-scanner-configuration.d.ts +8 -4
- package/@types/model/configuration/initialization-options.d.ts +1 -2
- package/@types/model/configuration/mrz-scanner-configuration.d.ts +4 -4
- package/@types/model/configuration/selection-overlay-configuration.d.ts +5 -0
- package/@types/model/configuration/text-pattern-scanner-configuration.d.ts +9 -0
- package/@types/model/configuration/view-finder-scanner-configuration.d.ts +2 -1
- package/@types/model/configuration/vin-scanner-configuration.d.ts +3 -3
- package/@types/scanbot-sdk.d.ts +269 -205
- package/@types/scanner-view.d.ts +2 -0
- package/@types/service/document-data-extractor.d.ts +13 -0
- package/@types/service/ocr-engine.d.ts +3 -3
- package/@types/service/pdf-generator.d.ts +6 -1
- package/@types/service/simple-mrz-recognizer.d.ts +4 -4
- package/@types/service/storage/indexed-db/sb-indexed-db.d.ts +60 -0
- package/@types/service/storage/local/sb-local-storage.d.ts +11 -0
- package/@types/service/storage/sb-storage.d.ts +33 -0
- package/@types/service/storage/utils/create-worker-vite.d.ts +1 -0
- package/@types/service/storage/utils/create-worker.d.ts +1 -0
- package/@types/service/storage/utils/sb-storage-error.d.ts +5 -0
- package/@types/service/storage/utils/sb-storage-utils.d.ts +10 -0
- package/@types/service/text-pattern-scanner.d.ts +14 -0
- package/@types/service/tiff-generator.d.ts +7 -4
- package/@types/{text-data-scanner-view.d.ts → text-pattern-scanner-view.d.ts} +9 -9
- package/@types/ui2/{controllers → barcode/controllers}/barcode-scanner-controller.d.ts +1 -1
- package/@types/ui2/{controllers → barcode/controllers}/multiple-scanning-mode-controller.d.ts +1 -1
- package/@types/ui2/{controllers → barcode/controllers}/single-scanning-mode-controller.d.ts +1 -1
- package/@types/ui2/{model → barcode/model}/counted-barcodes.d.ts +2 -2
- package/@types/ui2/{utils → barcode/utils}/barcode-mapper/expected-barcode-mapper.d.ts +2 -2
- package/@types/ui2/{utils → barcode/utils}/barcode-mapper/i-barcode-mapper.d.ts +2 -2
- package/@types/ui2/{utils → barcode/utils}/barcode-mapper/user-barcode-mapper.d.ts +1 -1
- package/@types/ui2/{utils → barcode/utils}/camera-config.d.ts +2 -2
- package/@types/ui2/{utils → barcode/utils}/styled-badge.d.ts +3 -1
- package/@types/ui2/{utils → barcode/utils}/styled-box.d.ts +1 -1
- package/@types/ui2/barcode/utils/styled-button.d.ts +14 -0
- package/@types/ui2/{utils → barcode/utils}/useScanningViewSize.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/action-button/action-button-container.d.ts +3 -3
- package/@types/ui2/{views → barcode/views}/action-button/action-button.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/ar/ar-badge.d.ts +2 -2
- package/@types/ui2/{views → barcode/views}/ar/ar-overlay-barcode-info.d.ts +2 -2
- package/@types/ui2/{views → barcode/views}/ar/vertical-positions.d.ts +2 -2
- package/@types/ui2/{views → barcode/views}/barcode-info/barcode-info.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/barcode-scanner.d.ts +8 -8
- package/@types/ui2/{views → barcode/views}/camera-permission-denied.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/dialog/barcode-info-dialog.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/dialog/barcode-mapping-error-dialog.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/dialog/base/confirmation-dialog.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/dialog/base/styled-dialog.d.ts +1 -0
- package/@types/ui2/{views → barcode/views}/dialog/count-edit-dialog.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/dialog/find-and-pick-submit-dialog.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/barcode-result-drawer.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/barcode-result-sidebar.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/counting-button.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/hooks/use-drag-listener.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-drawer-empty-state.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-list-item.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-list.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/subviews/drawer-header-content.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/drawer/subviews/swipe-underlay.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/form/dialog-button.d.ts +4 -1
- package/@types/ui2/{views → barcode/views}/navigation-bar.d.ts +1 -1
- package/@types/ui2/{views → barcode/views}/styled-text.d.ts +2 -1
- package/@types/ui2/configuration/DocumentQualityAnalyzerTypes.d.ts +1 -0
- package/@types/ui2/configuration/DocumentScannerTypes.d.ts +1 -0
- package/@types/ui2/configuration/Geometry.d.ts +1 -1
- package/@types/ui2/configuration/ParametricFilters.d.ts +1 -0
- package/@types/ui2/configuration/{ActionBarConfiguration.d.ts → barcode/ActionBarConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/{ArTrackingOverlayConfiguration.d.ts → barcode/ArTrackingOverlayConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/{BarcodeInfoMapping.d.ts → barcode/BarcodeInfoMapping.d.ts} +1 -1
- package/@types/ui2/configuration/{BarcodeRecognizerConfiguration.d.ts → barcode/BarcodeRecognizerConfiguration.d.ts} +3 -3
- package/@types/ui2/configuration/{BarcodeScannerConfiguration.d.ts → barcode/BarcodeScannerConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/barcode/BarcodeScannerTypes.d.ts +2 -0
- package/@types/ui2/configuration/{BarcodeScannerUIResult.d.ts → barcode/BarcodeScannerUIResult.d.ts} +1 -1
- package/@types/ui2/configuration/{BarcodeTextLocalization.d.ts → barcode/BarcodeTextLocalization.d.ts} +1 -1
- package/@types/ui2/configuration/barcode/BarcodeTypes.d.ts +1 -0
- package/@types/ui2/configuration/{CameraConfiguration.d.ts → barcode/CameraConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/{CameraPermission.d.ts → barcode/CameraPermission.d.ts} +1 -1
- package/@types/ui2/configuration/{Common.d.ts → barcode/Common.d.ts} +1 -1
- package/@types/ui2/configuration/barcode/CommonFieldType.d.ts +1 -0
- package/@types/ui2/configuration/{FindAndPickScanningModeUseCase.d.ts → barcode/FindAndPickScanningModeUseCase.d.ts} +1 -1
- package/@types/ui2/configuration/barcode/GenericDocument.d.ts +1 -0
- package/@types/ui2/configuration/barcode/Geometry.d.ts +1 -0
- package/@types/ui2/configuration/{MultipleScanningModeUseCase.d.ts → barcode/MultipleScanningModeUseCase.d.ts} +1 -1
- package/@types/ui2/configuration/{ScanbotAlertDialog.d.ts → barcode/ScanbotAlertDialog.d.ts} +1 -1
- package/@types/ui2/configuration/{SingleScanningModeUseCase.d.ts → barcode/SingleScanningModeUseCase.d.ts} +1 -1
- package/@types/ui2/configuration/{TopBarConfiguration.d.ts → barcode/TopBarConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/{UserGuidanceConfiguration.d.ts → barcode/UserGuidanceConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/{ViewFinderConfiguration.d.ts → barcode/ViewFinderConfiguration.d.ts} +1 -1
- package/@types/ui2/configuration/common/ActionBarConfiguration.d.ts +42 -0
- package/@types/ui2/configuration/common/CameraConfiguration.d.ts +60 -0
- package/@types/ui2/configuration/common/CameraPermission.d.ts +62 -0
- package/@types/ui2/configuration/common/Common.d.ts +467 -0
- package/@types/ui2/configuration/common/NavigationBarConfiguration.d.ts +11 -0
- package/@types/ui2/configuration/common/ScanbotAlertDialog.d.ts +74 -0
- package/@types/ui2/configuration/common/TopBarConfiguration.d.ts +55 -0
- package/@types/ui2/configuration/common/UserGuidanceConfiguration.d.ts +64 -0
- package/@types/ui2/configuration/common/ViewFinderConfiguration.d.ts +93 -0
- package/@types/ui2/configuration/document/AcknowledgementScreenConfiguration.d.ts +125 -0
- package/@types/ui2/configuration/document/CameraScreenConfiguration.d.ts +659 -0
- package/@types/ui2/configuration/document/CroppingConfiguration.d.ts +1 -0
- package/@types/ui2/configuration/document/CroppingResult.d.ts +1 -0
- package/@types/ui2/configuration/document/CroppingScreenConfiguration.d.ts +141 -0
- package/@types/ui2/configuration/document/CroppingTextLocalization.d.ts +1 -0
- package/@types/ui2/configuration/document/DocumentScannerCameraConfiguration.d.ts +60 -0
- package/@types/ui2/configuration/document/DocumentScannerGuidanceVisibility.d.ts +11 -0
- package/@types/ui2/configuration/document/DocumentScannerOutputSettings.d.ts +38 -0
- package/@types/ui2/configuration/document/DocumentScannerScreens.d.ts +26 -0
- package/@types/ui2/configuration/document/DocumentScannerTextLocalization.d.ts +608 -0
- package/@types/ui2/configuration/document/DocumentScannerUIResult.d.ts +5 -0
- package/@types/ui2/configuration/document/DocumentScannerUserGuidance.d.ts +99 -0
- package/@types/ui2/configuration/document/DocumentScanningFlow.d.ts +91 -0
- package/@types/ui2/configuration/document/IntroductionScreenConfiguration.d.ts +188 -0
- package/@types/ui2/configuration/document/ReorderPagesScreenConfiguration.d.ts +1 -0
- package/@types/ui2/configuration/document/ReviewScreenConfiguration.d.ts +372 -0
- package/@types/ui2/configuration/native/DocumentData.d.ts +37 -0
- package/@types/ui2/configuration/native/PageData.d.ts +58 -0
- package/@types/ui2/configuration/native/PageImageSource.d.ts +13 -0
- package/@types/ui2/configuration/utils.d.ts +8 -0
- package/@types/ui2/configuration.d.ts +46 -21
- package/@types/ui2/document/assets/auto-capture-disabled-icon.d.ts +4 -0
- package/@types/ui2/document/assets/auto-capture-icon.d.ts +4 -0
- package/@types/ui2/document/assets/captured-circle-icon.d.ts +5 -0
- package/@types/ui2/document/assets/delete-icon.d.ts +4 -0
- package/@types/ui2/document/assets/file-add-icon.d.ts +4 -0
- package/@types/ui2/document/assets/image-error-icon.d.ts +5 -0
- package/@types/ui2/document/assets/image-retake.d.ts +4 -0
- package/@types/ui2/document/assets/loading-spinner-icon.d.ts +2 -0
- package/@types/ui2/document/assets/shutter-button-auto-icon.d.ts +4 -0
- package/@types/ui2/document/assets/shutter-button-manual-icon.d.ts +5 -0
- package/@types/ui2/document/assets/shutter-button-spinner-icon.d.ts +4 -0
- package/@types/ui2/document/assets/the-hand.d.ts +10 -0
- package/@types/ui2/document/controller/acknowledgment-screen-controller.d.ts +16 -0
- package/@types/ui2/document/controller/camera-screen-controller.d.ts +20 -0
- package/@types/ui2/document/controller/cropping-screen-controller.d.ts +14 -0
- package/@types/ui2/document/controller/document-scanner-controller.d.ts +14 -0
- package/@types/ui2/document/controller/review-screen-controller.d.ts +18 -0
- package/@types/ui2/document/controller/zoom-screen-controller.d.ts +11 -0
- package/@types/ui2/document/model/document-detection-ui-result.d.ts +8 -0
- package/@types/ui2/document/model/sb-document.d.ts +62 -0
- package/@types/ui2/document/model/sb-page.d.ts +38 -0
- package/@types/ui2/document/model/utils/sb-document-data.d.ts +10 -0
- package/@types/ui2/document/model/utils/sb-page-data.d.ts +7 -0
- package/@types/ui2/document/utils/SBThemeProvider.d.ts +4 -0
- package/@types/ui2/document/utils/button-accessibility-styling.d.ts +40 -0
- package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-confirmation.d.ts +19 -0
- package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-fade.d.ts +9 -0
- package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-image.d.ts +7 -0
- package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-screen-bottom-bar.d.ts +12 -0
- package/@types/ui2/document/views/acknowledgement-screen/quality-insufficient-banner.d.ts +10 -0
- package/@types/ui2/document/views/camera-screen/bottom-bar.d.ts +33 -0
- package/@types/ui2/document/views/camera-screen/camera-permission-denied.d.ts +9 -0
- package/@types/ui2/document/views/camera-screen/camera-select-dropdown.d.ts +14 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/CheckIcon.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/CreditCardsIcon.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/DocumentsIcon.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/IdCardsIcon.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/MedicalCertsIcon.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/Props.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/assets/ReceiptsIcon.d.ts +3 -0
- package/@types/ui2/document/views/camera-screen/introduction/introduction-image.d.ts +5 -0
- package/@types/ui2/document/views/camera-screen/introduction/introduction.d.ts +9 -0
- package/@types/ui2/document/views/camera-screen/preview-button.d.ts +11 -0
- package/@types/ui2/document/views/camera-screen/scanner-box.d.ts +21 -0
- package/@types/ui2/document/views/camera-screen/shutter-button.d.ts +10 -0
- package/@types/ui2/document/views/camera-screen/top-bar.d.ts +11 -0
- package/@types/ui2/document/views/camera-screen/top-user-guidance.d.ts +8 -0
- package/@types/ui2/document/views/camera-screen/use-document-scanner-view.d.ts +31 -0
- package/@types/ui2/document/views/camera-screen/user-guidance-text.d.ts +10 -0
- package/@types/ui2/document/views/common/alert-dialog.d.ts +11 -0
- package/@types/ui2/document/views/common/bar-button.d.ts +17 -0
- package/@types/ui2/document/views/common/common-top-bar.d.ts +12 -0
- package/@types/ui2/document/views/common/loading-spinner.d.ts +4 -0
- package/@types/ui2/document/views/common/styled-menu-item.d.ts +12 -0
- package/@types/ui2/document/views/common/styled-menu.d.ts +17 -0
- package/@types/ui2/document/views/review-screen/bottom-bar.d.ts +15 -0
- package/@types/ui2/document/views/review-screen/carousel-page.d.ts +13 -0
- package/@types/ui2/document/views/review-screen/carousel.d.ts +14 -0
- package/@types/ui2/document/views/review-screen/page-counter-and-zoom-button.d.ts +10 -0
- package/@types/ui2/document/views/review-screen/scroller-navigation-button.d.ts +11 -0
- package/@types/ui2/document/views/review-screen/top-bar.d.ts +11 -0
- package/@types/ui2/scanbot-sdk-ui.d.ts +4 -0
- package/@types/ui2/scanbot-ui-library.d.ts +7 -4
- package/@types/ui2/utils/text-styling.d.ts +8 -0
- package/@types/ui2/utils/use-time-since-first-render-has-passed.d.ts +1 -0
- package/@types/utils/constants.d.ts +0 -2
- package/@types/utils/dto/Frame.d.ts +2 -0
- package/@types/utils/image-utils.d.ts +1 -1
- package/@types/utils/parse-color.d.ts +9 -0
- package/@types/utils/react/useIsMounted.d.ts +2 -0
- package/@types/utils/react/usePromise.d.ts +4 -3
- package/@types/utils/supported-image-mime-types.d.ts +2 -0
- package/@types/utils/view-utils.d.ts +1 -1
- package/@types/view/barcode-polygon/animated-barcode-selection-overlay.d.ts +8 -2
- package/@types/view/polygon/document-polygon.d.ts +1 -0
- package/@types/worker/worker-bridge.d.ts +498 -374
- package/Libraries.txt +1510 -36
- package/bundle/ScanbotSDK.min.js +4 -4
- package/bundle/ScanbotSDK.ui2.min.js +18 -18
- package/bundle/ScanbotSDK.ui2.min.js.LICENSE.txt +10 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
- package/package.json +3 -3
- package/@types/core/bridge/compiled/CheckRecognizerTypes.d.ts +0 -29
- package/@types/core/bridge/compiled/FrameUtilities.d.ts +0 -18
- package/@types/core/bridge/compiled/GDRTypes.d.ts +0 -38
- package/@types/core/bridge/compiled/GenericDocumentRecognizerConfigs.d.ts +0 -150
- package/@types/core/bridge/compiled/GenericDocumentRecognizerTypes.d.ts +0 -83
- package/@types/core/bridge/compiled/GenericDocumentTypes.d.ts +0 -15
- package/@types/core/bridge/compiled/MRZTypes.d.ts +0 -52
- package/@types/generic-document-recognizer-view.d.ts +0 -22
- package/@types/interfaces/i-generic-document-recognizer-scanner-handle.d.ts +0 -3
- package/@types/model/configuration/generic-document-recognizer-configuration.d.ts +0 -9
- package/@types/model/configuration/text-data-scanner-configuration.d.ts +0 -9
- package/@types/service/generic-document-recognizer.d.ts +0 -13
- package/@types/service/text-data-recognizer.d.ts +0 -14
- package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +0 -1
- package/@types/ui2/configuration/BarcodeTypes.d.ts +0 -1
- package/@types/ui2/configuration/CommonFieldType.d.ts +0 -1
- package/@types/ui2/configuration/GenericDocument.d.ts +0 -1
- package/@types/ui2/utils/styled-button.d.ts +0 -7
- /package/@types/core/bridge/compiled/{OcrElements.d.ts → OcrTypes.d.ts} +0 -0
- /package/@types/ui2/{utils → barcode/utils}/find-and-pick.ts/expected-barcode-counter.d.ts +0 -0
- /package/@types/ui2/{utils → barcode/utils}/styled-input.d.ts +0 -0
- /package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-drawer-header.d.ts +0 -0
- /package/@types/ui2/configuration/{BarcodeItemMapper.d.ts → barcode/BarcodeItemMapper.d.ts} +0 -0
- /package/@types/ui2/configuration/{BarcodeUseCase.d.ts → barcode/BarcodeUseCase.d.ts} +0 -0
|
@@ -28,9 +28,9 @@ export declare class WorkerBridge {
|
|
|
28
28
|
}[];
|
|
29
29
|
ignoreOrientationMismatch?: boolean;
|
|
30
30
|
_marker?: () => void;
|
|
31
|
-
}) => Promise<import("../
|
|
31
|
+
}) => Promise<import("../ui2/configuration/DocumentScannerTypes").DocumentDetectionResult>;
|
|
32
32
|
detectAndCropDocument: (image: import("../core-types").Image) => Promise<import("../core-types").CroppedDetectionResult>;
|
|
33
|
-
|
|
33
|
+
createDocumentScanner: (options: {
|
|
34
34
|
isLive?: boolean;
|
|
35
35
|
acceptedAngleScore?: number;
|
|
36
36
|
acceptedSizeScore?: number;
|
|
@@ -43,251 +43,311 @@ export declare class WorkerBridge {
|
|
|
43
43
|
}[];
|
|
44
44
|
ignoreOrientationMismatch?: boolean;
|
|
45
45
|
_marker?: () => void;
|
|
46
|
-
}) => Promise<import("../core-types").ObjectId<"
|
|
47
|
-
|
|
46
|
+
}) => Promise<import("../core-types").ObjectId<"DocumentScanner">>;
|
|
47
|
+
documentScannerDetect: <ImageType extends import("../core-types").Image>(documentScannerToken: import("../core-types").ObjectId<"DocumentScanner">, image: ImageType) => Promise<import("../ui2/configuration/DocumentScannerTypes").DocumentDetectionResult & {
|
|
48
48
|
originalImage: ImageType;
|
|
49
49
|
}>;
|
|
50
50
|
parseBarcodeDocument: (options: import("../core/bridge/compiled/BarcodeDocumentTypes").BarcodeDocumentFormat[], data: string) => Promise<import("../ui2/configuration").GenericDocument>;
|
|
51
|
-
|
|
51
|
+
createBarcodeScanner: (options: {
|
|
52
52
|
barcodeFormatConfigurations?: ({
|
|
53
53
|
readonly _type?: "BarcodeFormatCodabarConfiguration";
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
regexFilter?: string;
|
|
55
|
+
minimumSizeScore?: number;
|
|
56
|
+
addAdditionalQuietZone?: boolean;
|
|
57
|
+
minimum1DQuietZoneSize?: number;
|
|
58
|
+
minimumTextLength?: number;
|
|
59
|
+
maximumTextLength?: number;
|
|
60
|
+
returnStartEnd?: boolean;
|
|
59
61
|
_marker?: () => void;
|
|
60
62
|
} | {
|
|
61
63
|
readonly _type?: "BarcodeFormatCode11Configuration";
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
regexFilter?: string;
|
|
65
|
+
minimumSizeScore?: number;
|
|
66
|
+
addAdditionalQuietZone?: boolean;
|
|
67
|
+
minimum1DQuietZoneSize?: number;
|
|
68
|
+
stripCheckDigits?: boolean;
|
|
69
|
+
minimumTextLength?: number;
|
|
70
|
+
maximumTextLength?: number;
|
|
71
|
+
checksum?: boolean;
|
|
68
72
|
_marker?: () => void;
|
|
69
73
|
} | {
|
|
70
74
|
readonly _type?: "BarcodeFormatCode39Configuration";
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
regexFilter?: string;
|
|
76
|
+
minimumSizeScore?: number;
|
|
77
|
+
addAdditionalQuietZone?: boolean;
|
|
78
|
+
minimum1DQuietZoneSize?: number;
|
|
79
|
+
stripCheckDigits?: boolean;
|
|
80
|
+
minimumTextLength?: number;
|
|
81
|
+
maximumTextLength?: number;
|
|
82
|
+
code32?: boolean;
|
|
83
|
+
code39?: boolean;
|
|
84
|
+
pzn?: boolean;
|
|
85
|
+
tryCode39ExtendedMode?: boolean;
|
|
86
|
+
useCode39CheckDigit?: boolean;
|
|
81
87
|
_marker?: () => void;
|
|
82
88
|
} | {
|
|
83
89
|
readonly _type?: "BarcodeFormatCode93Configuration";
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
90
|
+
regexFilter?: string;
|
|
91
|
+
minimumSizeScore?: number;
|
|
92
|
+
addAdditionalQuietZone?: boolean;
|
|
93
|
+
minimum1DQuietZoneSize?: number;
|
|
94
|
+
minimumTextLength?: number;
|
|
95
|
+
maximumTextLength?: number;
|
|
88
96
|
_marker?: () => void;
|
|
89
97
|
} | {
|
|
90
98
|
readonly _type?: "BarcodeFormatCode128Configuration";
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
regexFilter?: string;
|
|
100
|
+
minimumSizeScore?: number;
|
|
101
|
+
addAdditionalQuietZone?: boolean;
|
|
102
|
+
minimum1DQuietZoneSize?: number;
|
|
103
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
104
|
+
minimumTextLength?: number;
|
|
105
|
+
maximumTextLength?: number;
|
|
96
106
|
_marker?: () => void;
|
|
97
107
|
} | {
|
|
98
108
|
readonly _type?: "BarcodeFormatCode2Of5Configuration";
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
regexFilter?: string;
|
|
110
|
+
minimumSizeScore?: number;
|
|
111
|
+
addAdditionalQuietZone?: boolean;
|
|
112
|
+
minimum1DQuietZoneSize?: number;
|
|
113
|
+
stripCheckDigits?: boolean;
|
|
114
|
+
minimumTextLength?: number;
|
|
115
|
+
maximumTextLength?: number;
|
|
116
|
+
iata2of5?: boolean;
|
|
117
|
+
code25?: boolean;
|
|
118
|
+
industrial2of5?: boolean;
|
|
119
|
+
useIATA2OF5Checksum?: boolean;
|
|
108
120
|
_marker?: () => void;
|
|
109
121
|
} | {
|
|
110
122
|
readonly _type?: "BarcodeFormatDataBarConfiguration";
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
123
|
+
regexFilter?: string;
|
|
124
|
+
minimumSizeScore?: number;
|
|
125
|
+
addAdditionalQuietZone?: boolean;
|
|
126
|
+
minimum1DQuietZoneSize?: number;
|
|
127
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
114
128
|
_marker?: () => void;
|
|
115
129
|
} | {
|
|
116
130
|
readonly _type?: "BarcodeFormatDataBarExpandedConfiguration";
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
131
|
+
regexFilter?: string;
|
|
132
|
+
minimumSizeScore?: number;
|
|
133
|
+
addAdditionalQuietZone?: boolean;
|
|
134
|
+
minimum1DQuietZoneSize?: number;
|
|
135
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
120
136
|
_marker?: () => void;
|
|
121
137
|
} | {
|
|
122
138
|
readonly _type?: "BarcodeFormatDataBarLimitedConfiguration";
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
139
|
+
regexFilter?: string;
|
|
140
|
+
minimumSizeScore?: number;
|
|
141
|
+
addAdditionalQuietZone?: boolean;
|
|
142
|
+
minimum1DQuietZoneSize?: number;
|
|
143
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
126
144
|
_marker?: () => void;
|
|
127
145
|
} | {
|
|
128
146
|
readonly _type?: "BarcodeFormatITFConfiguration";
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
147
|
+
regexFilter?: string;
|
|
148
|
+
minimumSizeScore?: number;
|
|
149
|
+
addAdditionalQuietZone?: boolean;
|
|
150
|
+
minimum1DQuietZoneSize?: number;
|
|
151
|
+
minimumTextLength?: number;
|
|
152
|
+
maximumTextLength?: number;
|
|
133
153
|
_marker?: () => void;
|
|
134
154
|
} | {
|
|
135
155
|
readonly _type?: "BarcodeFormatMSIPlesseyConfiguration";
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
156
|
+
regexFilter?: string;
|
|
157
|
+
minimumSizeScore?: number;
|
|
158
|
+
addAdditionalQuietZone?: boolean;
|
|
159
|
+
minimum1DQuietZoneSize?: number;
|
|
160
|
+
stripCheckDigits?: boolean;
|
|
161
|
+
minimumTextLength?: number;
|
|
162
|
+
maximumTextLength?: number;
|
|
163
|
+
checksumAlgorithms?: import("../core/bridge/compiled/BarcodeConfigurationTypes").MsiPlesseyChecksumAlgorithm[];
|
|
142
164
|
_marker?: () => void;
|
|
143
165
|
} | {
|
|
144
166
|
readonly _type?: "BarcodeFormatUpcEanConfiguration";
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
167
|
+
regexFilter?: string;
|
|
168
|
+
minimumSizeScore?: number;
|
|
169
|
+
addAdditionalQuietZone?: boolean;
|
|
170
|
+
minimum1DQuietZoneSize?: number;
|
|
171
|
+
stripCheckDigits?: boolean;
|
|
172
|
+
ean8?: boolean;
|
|
173
|
+
ean13?: boolean;
|
|
174
|
+
upca?: boolean;
|
|
175
|
+
upce?: boolean;
|
|
176
|
+
extensions?: import("../core/bridge/compiled/BarcodeTypes").UpcEanExtensionBehavior;
|
|
153
177
|
_marker?: () => void;
|
|
154
178
|
} | {
|
|
155
179
|
readonly _type?: "BarcodeFormatPharmaCodeConfiguration";
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
180
|
+
regexFilter?: string;
|
|
181
|
+
minimumSizeScore?: number;
|
|
182
|
+
addAdditionalQuietZone?: boolean;
|
|
183
|
+
minimum1DQuietZoneSize?: number;
|
|
184
|
+
minimumValue?: number;
|
|
185
|
+
allowNarrowBarsOnly?: boolean;
|
|
186
|
+
allowWideBarsOnly?: boolean;
|
|
161
187
|
_marker?: () => void;
|
|
162
188
|
} | {
|
|
163
189
|
readonly _type?: "BarcodeFormatAztecConfiguration";
|
|
164
|
-
|
|
165
|
-
|
|
190
|
+
regexFilter?: string;
|
|
191
|
+
minimumSizeScore?: number;
|
|
192
|
+
addAdditionalQuietZone?: boolean;
|
|
193
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
166
194
|
_marker?: () => void;
|
|
167
195
|
} | {
|
|
168
196
|
readonly _type?: "BarcodeFormatQRCodeConfiguration";
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
197
|
+
regexFilter?: string;
|
|
198
|
+
minimumSizeScore?: number;
|
|
199
|
+
addAdditionalQuietZone?: boolean;
|
|
200
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
201
|
+
strictMode?: boolean;
|
|
202
|
+
qr?: boolean;
|
|
203
|
+
microQr?: boolean;
|
|
204
|
+
rmqr?: boolean;
|
|
175
205
|
_marker?: () => void;
|
|
176
206
|
} | {
|
|
177
207
|
readonly _type?: "BarcodeFormatPDF417Configuration";
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
208
|
+
regexFilter?: string;
|
|
209
|
+
minimumSizeScore?: number;
|
|
210
|
+
addAdditionalQuietZone?: boolean;
|
|
211
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
212
|
+
strictMode?: boolean;
|
|
181
213
|
_marker?: () => void;
|
|
182
214
|
} | {
|
|
183
215
|
readonly _type?: "BarcodeFormatMicroPDF417Configuration";
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
216
|
+
regexFilter?: string;
|
|
217
|
+
minimumSizeScore?: number;
|
|
218
|
+
addAdditionalQuietZone?: boolean;
|
|
219
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
220
|
+
strictMode?: boolean;
|
|
187
221
|
_marker?: () => void;
|
|
188
222
|
} | {
|
|
189
223
|
readonly _type?: "BarcodeFormatDataMatrixConfiguration";
|
|
190
|
-
|
|
191
|
-
|
|
224
|
+
regexFilter?: string;
|
|
225
|
+
minimumSizeScore?: number;
|
|
226
|
+
addAdditionalQuietZone?: boolean;
|
|
227
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
192
228
|
_marker?: () => void;
|
|
193
229
|
} | {
|
|
194
230
|
readonly _type?: "BarcodeFormatMaxiCodeConfiguration";
|
|
195
|
-
|
|
231
|
+
regexFilter?: string;
|
|
232
|
+
minimumSizeScore?: number;
|
|
233
|
+
addAdditionalQuietZone?: boolean;
|
|
196
234
|
_marker?: () => void;
|
|
197
235
|
} | {
|
|
198
236
|
readonly _type?: "BarcodeFormatAustraliaPostConfiguration";
|
|
199
|
-
|
|
200
|
-
|
|
237
|
+
regexFilter?: string;
|
|
238
|
+
minimumSizeScore?: number;
|
|
239
|
+
addAdditionalQuietZone?: boolean;
|
|
240
|
+
australiaPostCustomerFormat?: import("../core/bridge/compiled/BarcodeConfigurationTypes").AustraliaPostCustomerFormat;
|
|
201
241
|
_marker?: () => void;
|
|
202
242
|
} | {
|
|
203
243
|
readonly _type?: "BarcodeFormatJapanPostConfiguration";
|
|
204
|
-
|
|
244
|
+
regexFilter?: string;
|
|
245
|
+
minimumSizeScore?: number;
|
|
246
|
+
addAdditionalQuietZone?: boolean;
|
|
205
247
|
_marker?: () => void;
|
|
206
248
|
} | {
|
|
207
249
|
readonly _type?: "BarcodeFormatRoyalMailConfiguration";
|
|
208
|
-
|
|
209
|
-
|
|
250
|
+
regexFilter?: string;
|
|
251
|
+
minimumSizeScore?: number;
|
|
252
|
+
addAdditionalQuietZone?: boolean;
|
|
253
|
+
stripCheckDigits?: boolean;
|
|
210
254
|
_marker?: () => void;
|
|
211
255
|
} | {
|
|
212
256
|
readonly _type?: "BarcodeFormatRoyalTNTPostConfiguration";
|
|
213
|
-
|
|
257
|
+
regexFilter?: string;
|
|
258
|
+
minimumSizeScore?: number;
|
|
259
|
+
addAdditionalQuietZone?: boolean;
|
|
214
260
|
_marker?: () => void;
|
|
215
261
|
} | {
|
|
216
262
|
readonly _type?: "BarcodeFormatUSPSIntelligentMailConfiguration";
|
|
217
|
-
|
|
263
|
+
regexFilter?: string;
|
|
264
|
+
minimumSizeScore?: number;
|
|
265
|
+
addAdditionalQuietZone?: boolean;
|
|
218
266
|
_marker?: () => void;
|
|
219
267
|
} | {
|
|
220
268
|
readonly _type?: "BarcodeFormatPharmaCodeTwoTrackConfiguration";
|
|
221
|
-
|
|
222
|
-
|
|
269
|
+
regexFilter?: string;
|
|
270
|
+
minimumSizeScore?: number;
|
|
271
|
+
addAdditionalQuietZone?: boolean;
|
|
272
|
+
minimumValue?: number;
|
|
223
273
|
_marker?: () => void;
|
|
224
274
|
} | {
|
|
225
275
|
readonly _type?: "BarcodeFormatGS1CompositeConfiguration";
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
276
|
+
regexFilter?: string;
|
|
277
|
+
minimumSizeScore?: number;
|
|
278
|
+
addAdditionalQuietZone?: boolean;
|
|
279
|
+
minimum1DQuietZoneSize?: number;
|
|
280
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
281
|
+
strictMode?: boolean;
|
|
230
282
|
_marker?: () => void;
|
|
231
283
|
} | {
|
|
232
284
|
readonly _type?: "BarcodeFormatCommonOneDConfiguration";
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
285
|
+
regexFilter?: string;
|
|
286
|
+
minimumSizeScore?: number;
|
|
287
|
+
addAdditionalQuietZone?: boolean;
|
|
288
|
+
minimum1DQuietZoneSize?: number;
|
|
289
|
+
stripCheckDigits?: boolean;
|
|
290
|
+
minimumTextLength?: number;
|
|
291
|
+
maximumTextLength?: number;
|
|
292
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
293
|
+
strictMode?: boolean;
|
|
294
|
+
formats?: import("../core/bridge/compiled/BarcodeTypes").BarcodeFormat[];
|
|
241
295
|
_marker?: () => void;
|
|
242
296
|
} | {
|
|
243
297
|
readonly _type?: "BarcodeFormatCommonTwoDConfiguration";
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
298
|
+
regexFilter?: string;
|
|
299
|
+
minimumSizeScore?: number;
|
|
300
|
+
addAdditionalQuietZone?: boolean;
|
|
301
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
302
|
+
strictMode?: boolean;
|
|
303
|
+
formats?: import("../core/bridge/compiled/BarcodeTypes").BarcodeFormat[];
|
|
248
304
|
_marker?: () => void;
|
|
249
305
|
} | {
|
|
250
306
|
readonly _type?: "BarcodeFormatCommonFourStateConfiguration";
|
|
251
|
-
|
|
252
|
-
|
|
307
|
+
regexFilter?: string;
|
|
308
|
+
minimumSizeScore?: number;
|
|
309
|
+
addAdditionalQuietZone?: boolean;
|
|
310
|
+
formats?: import("../core/bridge/compiled/BarcodeTypes").BarcodeFormat[];
|
|
253
311
|
_marker?: () => void;
|
|
254
312
|
} | {
|
|
255
313
|
readonly _type?: "BarcodeFormatCommonConfiguration";
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
314
|
+
regexFilter?: string;
|
|
315
|
+
minimumSizeScore?: number;
|
|
316
|
+
addAdditionalQuietZone?: boolean;
|
|
317
|
+
minimum1DQuietZoneSize?: number;
|
|
318
|
+
stripCheckDigits?: boolean;
|
|
319
|
+
minimumTextLength?: number;
|
|
320
|
+
maximumTextLength?: number;
|
|
321
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
322
|
+
strictMode?: boolean;
|
|
323
|
+
formats?: import("../core/bridge/compiled/BarcodeTypes").BarcodeFormat[];
|
|
264
324
|
_marker?: () => void;
|
|
265
325
|
})[];
|
|
266
|
-
|
|
326
|
+
extractedDocumentFormats?: import("../core/bridge/compiled/BarcodeDocumentTypes").BarcodeDocumentFormat[];
|
|
267
327
|
onlyAcceptDocuments?: boolean;
|
|
268
328
|
returnBarcodeImage?: boolean;
|
|
269
329
|
engineMode?: import("../ui2/configuration").BarcodeScannerEngineMode;
|
|
270
330
|
live?: boolean;
|
|
271
331
|
_marker?: () => void;
|
|
272
|
-
}) => Promise<import("../core-types").ObjectId<"
|
|
273
|
-
|
|
332
|
+
}) => Promise<import("../core-types").ObjectId<"BarcodeScanner">>;
|
|
333
|
+
scanBarcodes: <ImageType_1 extends import("../core-types").Image>(barcodeScannerToken: import("../core-types").ObjectId<"BarcodeScanner">, image: ImageType_1) => Promise<import("../core/bridge/compiled/BarcodeScannerTypes").BarcodeScannerResult & {
|
|
274
334
|
originalImage: ImageType_1;
|
|
275
335
|
}>;
|
|
276
336
|
beginPdf: (options: {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
337
|
+
attributes?: {
|
|
338
|
+
author?: string;
|
|
339
|
+
creator?: string;
|
|
340
|
+
title?: string;
|
|
341
|
+
subject?: string;
|
|
342
|
+
keywords?: string;
|
|
283
343
|
_marker?: () => void;
|
|
284
344
|
};
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
345
|
+
pageSize?: import("../core/bridge/compiled/PdfConfigurationTypes").PageSize;
|
|
346
|
+
pageDirection?: import("../core/bridge/compiled/PdfConfigurationTypes").PageDirection;
|
|
347
|
+
pageFit?: import("../core/bridge/compiled/PdfConfigurationTypes").PageFit;
|
|
348
|
+
dpi?: number;
|
|
349
|
+
jpegQuality?: number;
|
|
350
|
+
resamplingMethod?: import("../core/bridge/compiled/PdfConfigurationTypes").ResamplingMethod;
|
|
291
351
|
_marker?: () => void;
|
|
292
352
|
}) => Promise<import("../core-types").ObjectId<"PdfGenerationContext">>;
|
|
293
353
|
addPageToPdf: (pdfOperation: import("../core-types").ObjectId<"PdfGenerationContext">, image: import("../core-types").Image) => Promise<void>;
|
|
@@ -298,33 +358,33 @@ export declare class WorkerBridge {
|
|
|
298
358
|
zipCompressionLevel?: number;
|
|
299
359
|
dpi?: number;
|
|
300
360
|
userFields?: {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
361
|
+
tag?: number;
|
|
362
|
+
name?: string;
|
|
363
|
+
value?: {
|
|
304
364
|
readonly _type?: "UserFieldDoubleValue";
|
|
305
|
-
|
|
365
|
+
value?: number;
|
|
306
366
|
_marker?: () => void;
|
|
307
367
|
} | {
|
|
308
368
|
readonly _type?: "UserFieldStringValue";
|
|
309
|
-
|
|
369
|
+
value?: string;
|
|
310
370
|
_marker?: () => void;
|
|
311
371
|
} | {
|
|
312
372
|
readonly _type?: "UserFieldIntValue";
|
|
313
|
-
|
|
373
|
+
value?: number;
|
|
314
374
|
_marker?: () => void;
|
|
315
375
|
};
|
|
316
376
|
_marker?: () => void;
|
|
317
377
|
}[];
|
|
318
378
|
binarizationFilter?: {
|
|
319
379
|
readonly _type?: "ScanbotBinarizationFilter";
|
|
320
|
-
outputMode?: import("../
|
|
380
|
+
outputMode?: import("../ui2/configuration/ParametricFilters").OutputMode;
|
|
321
381
|
_marker?: () => void;
|
|
322
382
|
} | {
|
|
323
383
|
readonly _type?: "CustomBinarizationFilter";
|
|
324
|
-
outputMode?: import("../
|
|
384
|
+
outputMode?: import("../ui2/configuration/ParametricFilters").OutputMode;
|
|
325
385
|
denoise?: number;
|
|
326
386
|
radius?: number;
|
|
327
|
-
preset?: import("../
|
|
387
|
+
preset?: import("../ui2/configuration/ParametricFilters").BinarizationFilterPreset;
|
|
328
388
|
_marker?: () => void;
|
|
329
389
|
} | {
|
|
330
390
|
readonly _type?: "ColorDocumentFilter";
|
|
@@ -357,21 +417,23 @@ export declare class WorkerBridge {
|
|
|
357
417
|
}) => Promise<import("../core-types").ObjectId<"TiffGenerationContext">>;
|
|
358
418
|
addPageToTiff: (tiffOperation: import("../core-types").ObjectId<"TiffGenerationContext">, image: import("../core-types").Image, binarization: import("../core/bridge/compiled/TiffTypes").Binarization) => Promise<unknown>;
|
|
359
419
|
completeTiff: (tiffOperation: import("../core-types").ObjectId<"TiffGenerationContext">) => Promise<Uint8Array>;
|
|
360
|
-
|
|
361
|
-
|
|
420
|
+
createMRZScanner: (configuration: {
|
|
421
|
+
frameAccumulationConfiguration?: {
|
|
362
422
|
maximumNumberOfAccumulatedFrames?: number;
|
|
363
423
|
minimumNumberOfRequiredFramesWithEqualRecognitionResult?: number;
|
|
364
424
|
_marker?: () => void;
|
|
365
425
|
};
|
|
426
|
+
enableDetection?: boolean;
|
|
427
|
+
incompleteResultHandling?: import("../core/bridge/compiled/MrzTypes").MrzIncompleteResultHandling;
|
|
366
428
|
_marker?: () => void;
|
|
367
|
-
}) => Promise<import("../core-types").ObjectId<"
|
|
368
|
-
|
|
429
|
+
}) => Promise<import("../core-types").ObjectId<"MRZScannerContext">>;
|
|
430
|
+
scanMRZ: <ImageType_2 extends import("../core-types").Image>(mrzScannerToken: import("../core-types").ObjectId<"MRZScannerContext">, image: ImageType_2) => Promise<import("../core/bridge/compiled/MrzTypes").MrzScannerResult & {
|
|
369
431
|
originalImage: ImageType_2;
|
|
370
432
|
}>;
|
|
371
433
|
releaseObject: <T>(objectToken: import("../core-types").ObjectId<T>) => Promise<void>;
|
|
372
434
|
createOcrEngine: () => Promise<import("../core-types").ObjectId<"TLDROcrContext">>;
|
|
373
|
-
performOcr: (tldrOcrToken: import("../core-types").ObjectId<"TLDROcrContext">, image: import("../core-types").Image) => Promise<import("../core/bridge/compiled/
|
|
374
|
-
|
|
435
|
+
performOcr: (tldrOcrToken: import("../core-types").ObjectId<"TLDROcrContext">, image: import("../core-types").Image) => Promise<import("../core/bridge/compiled/OcrTypes").Page>;
|
|
436
|
+
createTextPatternScanner: (configuration: {
|
|
375
437
|
ocrResolutionLimit?: number;
|
|
376
438
|
maximumNumberOfAccumulatedFrames?: number;
|
|
377
439
|
minimumNumberOfRequiredFramesWithEqualRecognitionResult?: number;
|
|
@@ -391,33 +453,33 @@ export declare class WorkerBridge {
|
|
|
391
453
|
_marker?: () => void;
|
|
392
454
|
};
|
|
393
455
|
_marker?: () => void;
|
|
394
|
-
}) => Promise<import("../core-types").ObjectId<"
|
|
395
|
-
|
|
456
|
+
}) => Promise<import("../core-types").ObjectId<"TextPatternScanner">>;
|
|
457
|
+
scanTextLine: <ImageType_3 extends import("../core-types").Image>(scannerToken: import("../core-types").ObjectId<"TextPatternScanner">, image: ImageType_3) => Promise<import("../core/bridge/compiled/TextPatternScannerTypes").TextPatternScannerResult & {
|
|
396
458
|
originalImage: ImageType_3;
|
|
397
459
|
}>;
|
|
398
|
-
|
|
460
|
+
cleanTextLineScanningQueue: (scannerToken: import("../core-types").ObjectId<"TextPatternScanner">) => Promise<void>;
|
|
399
461
|
createDocumentQualityAnalyzer: (options: {
|
|
400
|
-
|
|
462
|
+
qualityThresholds?: {
|
|
401
463
|
readonly symbolQuality?: number;
|
|
402
464
|
readonly symbolRatio?: number;
|
|
403
465
|
_marker?: () => void;
|
|
404
466
|
}[];
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
467
|
+
qualityIndices?: import("../ui2/configuration/DocumentQualityAnalyzerTypes").DocumentQuality[];
|
|
468
|
+
detectOrientation?: boolean;
|
|
469
|
+
maxImageSize?: number;
|
|
408
470
|
minEstimatedNumberOfSymbolsForDocument?: number;
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
471
|
+
minProcessedFraction?: number;
|
|
472
|
+
maxProcessedFraction?: number;
|
|
473
|
+
earlyStopIfNSymbolsFound?: number;
|
|
474
|
+
tileSize?: number;
|
|
413
475
|
_marker?: () => void;
|
|
414
476
|
}) => Promise<import("../core-types").ObjectId<"DocumentQualityAnalyzer">>;
|
|
415
|
-
documentQualityAnalyzerAnalyze: (dqaToken: import("../core-types").ObjectId<"DocumentQualityAnalyzer">, image: import("../core-types").Image) => Promise<import("../
|
|
416
|
-
imageApplyFilter: (image: import("../core-types").Image, filter: import("../core-types").DeepPartial<import("../
|
|
477
|
+
documentQualityAnalyzerAnalyze: (dqaToken: import("../core-types").ObjectId<"DocumentQualityAnalyzer">, image: import("../core-types").Image) => Promise<import("../ui2/configuration/DocumentQualityAnalyzerTypes").DocumentQualityAnalyzerResult>;
|
|
478
|
+
imageApplyFilter: (image: import("../core-types").Image, filter: import("../core-types").DeepPartial<import("../ui2/configuration/ParametricFilters").ParametricFilter>) => Promise<import("../core-types").RawImage>;
|
|
417
479
|
imageCrop: (image: import("../core-types").Image, polygon: [import("../core-types").Point, import("../core-types").Point, import("../core-types").Point, import("../core-types").Point]) => Promise<import("../core-types").RawImage>;
|
|
418
480
|
imageResize: (image: import("../core-types").Image, destinationSize: number) => Promise<import("../core-types").RawImage>;
|
|
419
481
|
imageRotate: (image: import("../core-types").Image, rotations: import("../core/bridge/compiled/ImageTypes").ImageRotation) => Promise<import("../core-types").RawImage>;
|
|
420
|
-
|
|
482
|
+
documentDataExtractorCreate: (parameters: {
|
|
421
483
|
resultAccumulationConfig?: {
|
|
422
484
|
confirmationMethod?: import("../core/bridge/compiled/FrameAccumulationTypes").ConfirmationMethod;
|
|
423
485
|
minConfirmations?: number;
|
|
@@ -427,31 +489,31 @@ export declare class WorkerBridge {
|
|
|
427
489
|
};
|
|
428
490
|
fieldExcludeList?: string[];
|
|
429
491
|
configurations?: ({
|
|
430
|
-
readonly _type?: "
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
492
|
+
readonly _type?: "DateValidationConfiguration";
|
|
493
|
+
minYear?: number;
|
|
494
|
+
maxYear?: number;
|
|
495
|
+
fieldTypeName?: string;
|
|
434
496
|
_marker?: () => void;
|
|
435
497
|
} | {
|
|
436
|
-
readonly _type?: "
|
|
437
|
-
|
|
498
|
+
readonly _type?: "EuropeanHealthInsuranceCardConfiguration";
|
|
499
|
+
expectedCountry?: import("../core/bridge/compiled/DocumentDataExtractorConfigurationTypes").EuropeanHealthInsuranceCardIssuingCountry;
|
|
438
500
|
_marker?: () => void;
|
|
439
501
|
} | {
|
|
440
|
-
readonly _type?: "
|
|
441
|
-
|
|
442
|
-
|
|
502
|
+
readonly _type?: "MRZFallbackConfiguration";
|
|
503
|
+
acceptedCountries?: string[];
|
|
504
|
+
acceptedMRZTypes?: import("../core/bridge/compiled/MrzTypes").MrzDocumentType[];
|
|
443
505
|
_marker?: () => void;
|
|
444
506
|
} | {
|
|
445
|
-
readonly _type?: "
|
|
446
|
-
|
|
507
|
+
readonly _type?: "DocumentDataExtractorCommonConfiguration";
|
|
508
|
+
acceptedDocumentTypes?: string[];
|
|
447
509
|
_marker?: () => void;
|
|
448
510
|
})[];
|
|
449
511
|
_marker?: () => void;
|
|
450
|
-
}) => Promise<import("../core-types").ObjectId<"
|
|
451
|
-
|
|
452
|
-
mode?: import("../core/bridge/compiled/
|
|
512
|
+
}) => Promise<import("../core-types").ObjectId<"DocumentDataExtractor">>;
|
|
513
|
+
documentDataExtractorExtract: <ImageType_4 extends import("../core-types").Image>(gdrToken: import("../core-types").ObjectId<"DocumentDataExtractor">, image: ImageType_4, parameters: {
|
|
514
|
+
mode?: import("../core/bridge/compiled/DocumentDataExtractorTypes").DocumentDataExtractionMode;
|
|
453
515
|
_marker?: () => void;
|
|
454
|
-
}) => Promise<import("../core/bridge/compiled/
|
|
516
|
+
}) => Promise<import("../core/bridge/compiled/DocumentDataExtractorTypes").DocumentDataExtractionResult & {
|
|
455
517
|
originalImage: ImageType_4;
|
|
456
518
|
}>;
|
|
457
519
|
version: () => Promise<string>;
|
|
@@ -480,9 +542,9 @@ export declare class WorkerBridge {
|
|
|
480
542
|
}[];
|
|
481
543
|
ignoreOrientationMismatch?: boolean;
|
|
482
544
|
_marker?: () => void;
|
|
483
|
-
}) => Promise<import("../
|
|
545
|
+
}) => Promise<import("../ui2/configuration/DocumentScannerTypes").DocumentDetectionResult>;
|
|
484
546
|
detectAndCropDocument: (image: import("../core-types").Image) => Promise<import("../core-types").CroppedDetectionResult>;
|
|
485
|
-
|
|
547
|
+
createDocumentScanner: (options: {
|
|
486
548
|
isLive?: boolean;
|
|
487
549
|
acceptedAngleScore?: number;
|
|
488
550
|
acceptedSizeScore?: number;
|
|
@@ -495,251 +557,311 @@ export declare class WorkerBridge {
|
|
|
495
557
|
}[];
|
|
496
558
|
ignoreOrientationMismatch?: boolean;
|
|
497
559
|
_marker?: () => void;
|
|
498
|
-
}) => Promise<import("../core-types").ObjectId<"
|
|
499
|
-
|
|
560
|
+
}) => Promise<import("../core-types").ObjectId<"DocumentScanner">>;
|
|
561
|
+
documentScannerDetect: <ImageType extends import("../core-types").Image>(documentScannerToken: import("../core-types").ObjectId<"DocumentScanner">, image: ImageType) => Promise<import("../ui2/configuration/DocumentScannerTypes").DocumentDetectionResult & {
|
|
500
562
|
originalImage: ImageType;
|
|
501
563
|
}>;
|
|
502
564
|
parseBarcodeDocument: (options: import("../core/bridge/compiled/BarcodeDocumentTypes").BarcodeDocumentFormat[], data: string) => Promise<import("../ui2/configuration").GenericDocument>;
|
|
503
|
-
|
|
565
|
+
createBarcodeScanner: (options: {
|
|
504
566
|
barcodeFormatConfigurations?: ({
|
|
505
567
|
readonly _type?: "BarcodeFormatCodabarConfiguration";
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
568
|
+
regexFilter?: string;
|
|
569
|
+
minimumSizeScore?: number;
|
|
570
|
+
addAdditionalQuietZone?: boolean;
|
|
571
|
+
minimum1DQuietZoneSize?: number;
|
|
572
|
+
minimumTextLength?: number;
|
|
573
|
+
maximumTextLength?: number;
|
|
574
|
+
returnStartEnd?: boolean;
|
|
511
575
|
_marker?: () => void;
|
|
512
576
|
} | {
|
|
513
577
|
readonly _type?: "BarcodeFormatCode11Configuration";
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
578
|
+
regexFilter?: string;
|
|
579
|
+
minimumSizeScore?: number;
|
|
580
|
+
addAdditionalQuietZone?: boolean;
|
|
581
|
+
minimum1DQuietZoneSize?: number;
|
|
582
|
+
stripCheckDigits?: boolean;
|
|
583
|
+
minimumTextLength?: number;
|
|
584
|
+
maximumTextLength?: number;
|
|
585
|
+
checksum?: boolean;
|
|
520
586
|
_marker?: () => void;
|
|
521
587
|
} | {
|
|
522
588
|
readonly _type?: "BarcodeFormatCode39Configuration";
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
589
|
+
regexFilter?: string;
|
|
590
|
+
minimumSizeScore?: number;
|
|
591
|
+
addAdditionalQuietZone?: boolean;
|
|
592
|
+
minimum1DQuietZoneSize?: number;
|
|
593
|
+
stripCheckDigits?: boolean;
|
|
594
|
+
minimumTextLength?: number;
|
|
595
|
+
maximumTextLength?: number;
|
|
596
|
+
code32?: boolean;
|
|
597
|
+
code39?: boolean;
|
|
598
|
+
pzn?: boolean;
|
|
599
|
+
tryCode39ExtendedMode?: boolean;
|
|
600
|
+
useCode39CheckDigit?: boolean;
|
|
533
601
|
_marker?: () => void;
|
|
534
602
|
} | {
|
|
535
603
|
readonly _type?: "BarcodeFormatCode93Configuration";
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
604
|
+
regexFilter?: string;
|
|
605
|
+
minimumSizeScore?: number;
|
|
606
|
+
addAdditionalQuietZone?: boolean;
|
|
607
|
+
minimum1DQuietZoneSize?: number;
|
|
608
|
+
minimumTextLength?: number;
|
|
609
|
+
maximumTextLength?: number;
|
|
540
610
|
_marker?: () => void;
|
|
541
611
|
} | {
|
|
542
612
|
readonly _type?: "BarcodeFormatCode128Configuration";
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
613
|
+
regexFilter?: string;
|
|
614
|
+
minimumSizeScore?: number;
|
|
615
|
+
addAdditionalQuietZone?: boolean;
|
|
616
|
+
minimum1DQuietZoneSize?: number;
|
|
617
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
618
|
+
minimumTextLength?: number;
|
|
619
|
+
maximumTextLength?: number;
|
|
548
620
|
_marker?: () => void;
|
|
549
621
|
} | {
|
|
550
622
|
readonly _type?: "BarcodeFormatCode2Of5Configuration";
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
623
|
+
regexFilter?: string;
|
|
624
|
+
minimumSizeScore?: number;
|
|
625
|
+
addAdditionalQuietZone?: boolean;
|
|
626
|
+
minimum1DQuietZoneSize?: number;
|
|
627
|
+
stripCheckDigits?: boolean;
|
|
628
|
+
minimumTextLength?: number;
|
|
629
|
+
maximumTextLength?: number;
|
|
630
|
+
iata2of5?: boolean;
|
|
631
|
+
code25?: boolean;
|
|
632
|
+
industrial2of5?: boolean;
|
|
633
|
+
useIATA2OF5Checksum?: boolean;
|
|
560
634
|
_marker?: () => void;
|
|
561
635
|
} | {
|
|
562
636
|
readonly _type?: "BarcodeFormatDataBarConfiguration";
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
637
|
+
regexFilter?: string;
|
|
638
|
+
minimumSizeScore?: number;
|
|
639
|
+
addAdditionalQuietZone?: boolean;
|
|
640
|
+
minimum1DQuietZoneSize?: number;
|
|
641
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
566
642
|
_marker?: () => void;
|
|
567
643
|
} | {
|
|
568
644
|
readonly _type?: "BarcodeFormatDataBarExpandedConfiguration";
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
645
|
+
regexFilter?: string;
|
|
646
|
+
minimumSizeScore?: number;
|
|
647
|
+
addAdditionalQuietZone?: boolean;
|
|
648
|
+
minimum1DQuietZoneSize?: number;
|
|
649
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
572
650
|
_marker?: () => void;
|
|
573
651
|
} | {
|
|
574
652
|
readonly _type?: "BarcodeFormatDataBarLimitedConfiguration";
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
653
|
+
regexFilter?: string;
|
|
654
|
+
minimumSizeScore?: number;
|
|
655
|
+
addAdditionalQuietZone?: boolean;
|
|
656
|
+
minimum1DQuietZoneSize?: number;
|
|
657
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
578
658
|
_marker?: () => void;
|
|
579
659
|
} | {
|
|
580
660
|
readonly _type?: "BarcodeFormatITFConfiguration";
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
661
|
+
regexFilter?: string;
|
|
662
|
+
minimumSizeScore?: number;
|
|
663
|
+
addAdditionalQuietZone?: boolean;
|
|
664
|
+
minimum1DQuietZoneSize?: number;
|
|
665
|
+
minimumTextLength?: number;
|
|
666
|
+
maximumTextLength?: number;
|
|
585
667
|
_marker?: () => void;
|
|
586
668
|
} | {
|
|
587
669
|
readonly _type?: "BarcodeFormatMSIPlesseyConfiguration";
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
670
|
+
regexFilter?: string;
|
|
671
|
+
minimumSizeScore?: number;
|
|
672
|
+
addAdditionalQuietZone?: boolean;
|
|
673
|
+
minimum1DQuietZoneSize?: number;
|
|
674
|
+
stripCheckDigits?: boolean;
|
|
675
|
+
minimumTextLength?: number;
|
|
676
|
+
maximumTextLength?: number;
|
|
677
|
+
checksumAlgorithms?: import("../core/bridge/compiled/BarcodeConfigurationTypes").MsiPlesseyChecksumAlgorithm[];
|
|
594
678
|
_marker?: () => void;
|
|
595
679
|
} | {
|
|
596
680
|
readonly _type?: "BarcodeFormatUpcEanConfiguration";
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
681
|
+
regexFilter?: string;
|
|
682
|
+
minimumSizeScore?: number;
|
|
683
|
+
addAdditionalQuietZone?: boolean;
|
|
684
|
+
minimum1DQuietZoneSize?: number;
|
|
685
|
+
stripCheckDigits?: boolean;
|
|
686
|
+
ean8?: boolean;
|
|
687
|
+
ean13?: boolean;
|
|
688
|
+
upca?: boolean;
|
|
689
|
+
upce?: boolean;
|
|
690
|
+
extensions?: import("../core/bridge/compiled/BarcodeTypes").UpcEanExtensionBehavior;
|
|
605
691
|
_marker?: () => void;
|
|
606
692
|
} | {
|
|
607
693
|
readonly _type?: "BarcodeFormatPharmaCodeConfiguration";
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
694
|
+
regexFilter?: string;
|
|
695
|
+
minimumSizeScore?: number;
|
|
696
|
+
addAdditionalQuietZone?: boolean;
|
|
697
|
+
minimum1DQuietZoneSize?: number;
|
|
698
|
+
minimumValue?: number;
|
|
699
|
+
allowNarrowBarsOnly?: boolean;
|
|
700
|
+
allowWideBarsOnly?: boolean;
|
|
613
701
|
_marker?: () => void;
|
|
614
702
|
} | {
|
|
615
703
|
readonly _type?: "BarcodeFormatAztecConfiguration";
|
|
616
|
-
|
|
617
|
-
|
|
704
|
+
regexFilter?: string;
|
|
705
|
+
minimumSizeScore?: number;
|
|
706
|
+
addAdditionalQuietZone?: boolean;
|
|
707
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
618
708
|
_marker?: () => void;
|
|
619
709
|
} | {
|
|
620
710
|
readonly _type?: "BarcodeFormatQRCodeConfiguration";
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
711
|
+
regexFilter?: string;
|
|
712
|
+
minimumSizeScore?: number;
|
|
713
|
+
addAdditionalQuietZone?: boolean;
|
|
714
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
715
|
+
strictMode?: boolean;
|
|
716
|
+
qr?: boolean;
|
|
717
|
+
microQr?: boolean;
|
|
718
|
+
rmqr?: boolean;
|
|
627
719
|
_marker?: () => void;
|
|
628
720
|
} | {
|
|
629
721
|
readonly _type?: "BarcodeFormatPDF417Configuration";
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
722
|
+
regexFilter?: string;
|
|
723
|
+
minimumSizeScore?: number;
|
|
724
|
+
addAdditionalQuietZone?: boolean;
|
|
725
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
726
|
+
strictMode?: boolean;
|
|
633
727
|
_marker?: () => void;
|
|
634
728
|
} | {
|
|
635
729
|
readonly _type?: "BarcodeFormatMicroPDF417Configuration";
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
730
|
+
regexFilter?: string;
|
|
731
|
+
minimumSizeScore?: number;
|
|
732
|
+
addAdditionalQuietZone?: boolean;
|
|
733
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
734
|
+
strictMode?: boolean;
|
|
639
735
|
_marker?: () => void;
|
|
640
736
|
} | {
|
|
641
737
|
readonly _type?: "BarcodeFormatDataMatrixConfiguration";
|
|
642
|
-
|
|
643
|
-
|
|
738
|
+
regexFilter?: string;
|
|
739
|
+
minimumSizeScore?: number;
|
|
740
|
+
addAdditionalQuietZone?: boolean;
|
|
741
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
644
742
|
_marker?: () => void;
|
|
645
743
|
} | {
|
|
646
744
|
readonly _type?: "BarcodeFormatMaxiCodeConfiguration";
|
|
647
|
-
|
|
745
|
+
regexFilter?: string;
|
|
746
|
+
minimumSizeScore?: number;
|
|
747
|
+
addAdditionalQuietZone?: boolean;
|
|
648
748
|
_marker?: () => void;
|
|
649
749
|
} | {
|
|
650
750
|
readonly _type?: "BarcodeFormatAustraliaPostConfiguration";
|
|
651
|
-
|
|
652
|
-
|
|
751
|
+
regexFilter?: string;
|
|
752
|
+
minimumSizeScore?: number;
|
|
753
|
+
addAdditionalQuietZone?: boolean;
|
|
754
|
+
australiaPostCustomerFormat?: import("../core/bridge/compiled/BarcodeConfigurationTypes").AustraliaPostCustomerFormat;
|
|
653
755
|
_marker?: () => void;
|
|
654
756
|
} | {
|
|
655
757
|
readonly _type?: "BarcodeFormatJapanPostConfiguration";
|
|
656
|
-
|
|
758
|
+
regexFilter?: string;
|
|
759
|
+
minimumSizeScore?: number;
|
|
760
|
+
addAdditionalQuietZone?: boolean;
|
|
657
761
|
_marker?: () => void;
|
|
658
762
|
} | {
|
|
659
763
|
readonly _type?: "BarcodeFormatRoyalMailConfiguration";
|
|
660
|
-
|
|
661
|
-
|
|
764
|
+
regexFilter?: string;
|
|
765
|
+
minimumSizeScore?: number;
|
|
766
|
+
addAdditionalQuietZone?: boolean;
|
|
767
|
+
stripCheckDigits?: boolean;
|
|
662
768
|
_marker?: () => void;
|
|
663
769
|
} | {
|
|
664
770
|
readonly _type?: "BarcodeFormatRoyalTNTPostConfiguration";
|
|
665
|
-
|
|
771
|
+
regexFilter?: string;
|
|
772
|
+
minimumSizeScore?: number;
|
|
773
|
+
addAdditionalQuietZone?: boolean;
|
|
666
774
|
_marker?: () => void;
|
|
667
775
|
} | {
|
|
668
776
|
readonly _type?: "BarcodeFormatUSPSIntelligentMailConfiguration";
|
|
669
|
-
|
|
777
|
+
regexFilter?: string;
|
|
778
|
+
minimumSizeScore?: number;
|
|
779
|
+
addAdditionalQuietZone?: boolean;
|
|
670
780
|
_marker?: () => void;
|
|
671
781
|
} | {
|
|
672
782
|
readonly _type?: "BarcodeFormatPharmaCodeTwoTrackConfiguration";
|
|
673
|
-
|
|
674
|
-
|
|
783
|
+
regexFilter?: string;
|
|
784
|
+
minimumSizeScore?: number;
|
|
785
|
+
addAdditionalQuietZone?: boolean;
|
|
786
|
+
minimumValue?: number;
|
|
675
787
|
_marker?: () => void;
|
|
676
788
|
} | {
|
|
677
789
|
readonly _type?: "BarcodeFormatGS1CompositeConfiguration";
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
790
|
+
regexFilter?: string;
|
|
791
|
+
minimumSizeScore?: number;
|
|
792
|
+
addAdditionalQuietZone?: boolean;
|
|
793
|
+
minimum1DQuietZoneSize?: number;
|
|
794
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
795
|
+
strictMode?: boolean;
|
|
682
796
|
_marker?: () => void;
|
|
683
797
|
} | {
|
|
684
798
|
readonly _type?: "BarcodeFormatCommonOneDConfiguration";
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
799
|
+
regexFilter?: string;
|
|
800
|
+
minimumSizeScore?: number;
|
|
801
|
+
addAdditionalQuietZone?: boolean;
|
|
802
|
+
minimum1DQuietZoneSize?: number;
|
|
803
|
+
stripCheckDigits?: boolean;
|
|
804
|
+
minimumTextLength?: number;
|
|
805
|
+
maximumTextLength?: number;
|
|
806
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
807
|
+
strictMode?: boolean;
|
|
808
|
+
formats?: import("../core/bridge/compiled/BarcodeTypes").BarcodeFormat[];
|
|
693
809
|
_marker?: () => void;
|
|
694
810
|
} | {
|
|
695
811
|
readonly _type?: "BarcodeFormatCommonTwoDConfiguration";
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
812
|
+
regexFilter?: string;
|
|
813
|
+
minimumSizeScore?: number;
|
|
814
|
+
addAdditionalQuietZone?: boolean;
|
|
815
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
816
|
+
strictMode?: boolean;
|
|
817
|
+
formats?: import("../core/bridge/compiled/BarcodeTypes").BarcodeFormat[];
|
|
700
818
|
_marker?: () => void;
|
|
701
819
|
} | {
|
|
702
820
|
readonly _type?: "BarcodeFormatCommonFourStateConfiguration";
|
|
703
|
-
|
|
704
|
-
|
|
821
|
+
regexFilter?: string;
|
|
822
|
+
minimumSizeScore?: number;
|
|
823
|
+
addAdditionalQuietZone?: boolean;
|
|
824
|
+
formats?: import("../core/bridge/compiled/BarcodeTypes").BarcodeFormat[];
|
|
705
825
|
_marker?: () => void;
|
|
706
826
|
} | {
|
|
707
827
|
readonly _type?: "BarcodeFormatCommonConfiguration";
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
828
|
+
regexFilter?: string;
|
|
829
|
+
minimumSizeScore?: number;
|
|
830
|
+
addAdditionalQuietZone?: boolean;
|
|
831
|
+
minimum1DQuietZoneSize?: number;
|
|
832
|
+
stripCheckDigits?: boolean;
|
|
833
|
+
minimumTextLength?: number;
|
|
834
|
+
maximumTextLength?: number;
|
|
835
|
+
gs1Handling?: import("../core/bridge/compiled/BarcodeTypes").Gs1Handling;
|
|
836
|
+
strictMode?: boolean;
|
|
837
|
+
formats?: import("../core/bridge/compiled/BarcodeTypes").BarcodeFormat[];
|
|
716
838
|
_marker?: () => void;
|
|
717
839
|
})[];
|
|
718
|
-
|
|
840
|
+
extractedDocumentFormats?: import("../core/bridge/compiled/BarcodeDocumentTypes").BarcodeDocumentFormat[];
|
|
719
841
|
onlyAcceptDocuments?: boolean;
|
|
720
842
|
returnBarcodeImage?: boolean;
|
|
721
843
|
engineMode?: import("../ui2/configuration").BarcodeScannerEngineMode;
|
|
722
844
|
live?: boolean;
|
|
723
845
|
_marker?: () => void;
|
|
724
|
-
}) => Promise<import("../core-types").ObjectId<"
|
|
725
|
-
|
|
846
|
+
}) => Promise<import("../core-types").ObjectId<"BarcodeScanner">>;
|
|
847
|
+
scanBarcodes: <ImageType_1 extends import("../core-types").Image>(barcodeScannerToken: import("../core-types").ObjectId<"BarcodeScanner">, image: ImageType_1) => Promise<import("../core/bridge/compiled/BarcodeScannerTypes").BarcodeScannerResult & {
|
|
726
848
|
originalImage: ImageType_1;
|
|
727
849
|
}>;
|
|
728
850
|
beginPdf: (options: {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
851
|
+
attributes?: {
|
|
852
|
+
author?: string;
|
|
853
|
+
creator?: string;
|
|
854
|
+
title?: string;
|
|
855
|
+
subject?: string;
|
|
856
|
+
keywords?: string;
|
|
735
857
|
_marker?: () => void;
|
|
736
858
|
};
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
859
|
+
pageSize?: import("../core/bridge/compiled/PdfConfigurationTypes").PageSize;
|
|
860
|
+
pageDirection?: import("../core/bridge/compiled/PdfConfigurationTypes").PageDirection;
|
|
861
|
+
pageFit?: import("../core/bridge/compiled/PdfConfigurationTypes").PageFit;
|
|
862
|
+
dpi?: number;
|
|
863
|
+
jpegQuality?: number;
|
|
864
|
+
resamplingMethod?: import("../core/bridge/compiled/PdfConfigurationTypes").ResamplingMethod;
|
|
743
865
|
_marker?: () => void;
|
|
744
866
|
}) => Promise<import("../core-types").ObjectId<"PdfGenerationContext">>;
|
|
745
867
|
addPageToPdf: (pdfOperation: import("../core-types").ObjectId<"PdfGenerationContext">, image: import("../core-types").Image) => Promise<void>;
|
|
@@ -750,33 +872,33 @@ export declare class WorkerBridge {
|
|
|
750
872
|
zipCompressionLevel?: number;
|
|
751
873
|
dpi?: number;
|
|
752
874
|
userFields?: {
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
875
|
+
tag?: number;
|
|
876
|
+
name?: string;
|
|
877
|
+
value?: {
|
|
756
878
|
readonly _type?: "UserFieldDoubleValue";
|
|
757
|
-
|
|
879
|
+
value?: number;
|
|
758
880
|
_marker?: () => void;
|
|
759
881
|
} | {
|
|
760
882
|
readonly _type?: "UserFieldStringValue";
|
|
761
|
-
|
|
883
|
+
value?: string;
|
|
762
884
|
_marker?: () => void;
|
|
763
885
|
} | {
|
|
764
886
|
readonly _type?: "UserFieldIntValue";
|
|
765
|
-
|
|
887
|
+
value?: number;
|
|
766
888
|
_marker?: () => void;
|
|
767
889
|
};
|
|
768
890
|
_marker?: () => void;
|
|
769
891
|
}[];
|
|
770
892
|
binarizationFilter?: {
|
|
771
893
|
readonly _type?: "ScanbotBinarizationFilter";
|
|
772
|
-
outputMode?: import("../
|
|
894
|
+
outputMode?: import("../ui2/configuration/ParametricFilters").OutputMode;
|
|
773
895
|
_marker?: () => void;
|
|
774
896
|
} | {
|
|
775
897
|
readonly _type?: "CustomBinarizationFilter";
|
|
776
|
-
outputMode?: import("../
|
|
898
|
+
outputMode?: import("../ui2/configuration/ParametricFilters").OutputMode;
|
|
777
899
|
denoise?: number;
|
|
778
900
|
radius?: number;
|
|
779
|
-
preset?: import("../
|
|
901
|
+
preset?: import("../ui2/configuration/ParametricFilters").BinarizationFilterPreset;
|
|
780
902
|
_marker?: () => void;
|
|
781
903
|
} | {
|
|
782
904
|
readonly _type?: "ColorDocumentFilter";
|
|
@@ -809,21 +931,23 @@ export declare class WorkerBridge {
|
|
|
809
931
|
}) => Promise<import("../core-types").ObjectId<"TiffGenerationContext">>;
|
|
810
932
|
addPageToTiff: (tiffOperation: import("../core-types").ObjectId<"TiffGenerationContext">, image: import("../core-types").Image, binarization: import("../core/bridge/compiled/TiffTypes").Binarization) => Promise<unknown>;
|
|
811
933
|
completeTiff: (tiffOperation: import("../core-types").ObjectId<"TiffGenerationContext">) => Promise<Uint8Array>;
|
|
812
|
-
|
|
813
|
-
|
|
934
|
+
createMRZScanner: (configuration: {
|
|
935
|
+
frameAccumulationConfiguration?: {
|
|
814
936
|
maximumNumberOfAccumulatedFrames?: number;
|
|
815
937
|
minimumNumberOfRequiredFramesWithEqualRecognitionResult?: number;
|
|
816
938
|
_marker?: () => void;
|
|
817
939
|
};
|
|
940
|
+
enableDetection?: boolean;
|
|
941
|
+
incompleteResultHandling?: import("../core/bridge/compiled/MrzTypes").MrzIncompleteResultHandling;
|
|
818
942
|
_marker?: () => void;
|
|
819
|
-
}) => Promise<import("../core-types").ObjectId<"
|
|
820
|
-
|
|
943
|
+
}) => Promise<import("../core-types").ObjectId<"MRZScannerContext">>;
|
|
944
|
+
scanMRZ: <ImageType_2 extends import("../core-types").Image>(mrzScannerToken: import("../core-types").ObjectId<"MRZScannerContext">, image: ImageType_2) => Promise<import("../core/bridge/compiled/MrzTypes").MrzScannerResult & {
|
|
821
945
|
originalImage: ImageType_2;
|
|
822
946
|
}>;
|
|
823
947
|
releaseObject: <T>(objectToken: import("../core-types").ObjectId<T>) => Promise<void>;
|
|
824
948
|
createOcrEngine: () => Promise<import("../core-types").ObjectId<"TLDROcrContext">>;
|
|
825
|
-
performOcr: (tldrOcrToken: import("../core-types").ObjectId<"TLDROcrContext">, image: import("../core-types").Image) => Promise<import("../core/bridge/compiled/
|
|
826
|
-
|
|
949
|
+
performOcr: (tldrOcrToken: import("../core-types").ObjectId<"TLDROcrContext">, image: import("../core-types").Image) => Promise<import("../core/bridge/compiled/OcrTypes").Page>;
|
|
950
|
+
createTextPatternScanner: (configuration: {
|
|
827
951
|
ocrResolutionLimit?: number;
|
|
828
952
|
maximumNumberOfAccumulatedFrames?: number;
|
|
829
953
|
minimumNumberOfRequiredFramesWithEqualRecognitionResult?: number;
|
|
@@ -843,33 +967,33 @@ export declare class WorkerBridge {
|
|
|
843
967
|
_marker?: () => void;
|
|
844
968
|
};
|
|
845
969
|
_marker?: () => void;
|
|
846
|
-
}) => Promise<import("../core-types").ObjectId<"
|
|
847
|
-
|
|
970
|
+
}) => Promise<import("../core-types").ObjectId<"TextPatternScanner">>;
|
|
971
|
+
scanTextLine: <ImageType_3 extends import("../core-types").Image>(scannerToken: import("../core-types").ObjectId<"TextPatternScanner">, image: ImageType_3) => Promise<import("../core/bridge/compiled/TextPatternScannerTypes").TextPatternScannerResult & {
|
|
848
972
|
originalImage: ImageType_3;
|
|
849
973
|
}>;
|
|
850
|
-
|
|
974
|
+
cleanTextLineScanningQueue: (scannerToken: import("../core-types").ObjectId<"TextPatternScanner">) => Promise<void>;
|
|
851
975
|
createDocumentQualityAnalyzer: (options: {
|
|
852
|
-
|
|
976
|
+
qualityThresholds?: {
|
|
853
977
|
readonly symbolQuality?: number;
|
|
854
978
|
readonly symbolRatio?: number;
|
|
855
979
|
_marker?: () => void;
|
|
856
980
|
}[];
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
981
|
+
qualityIndices?: import("../ui2/configuration/DocumentQualityAnalyzerTypes").DocumentQuality[];
|
|
982
|
+
detectOrientation?: boolean;
|
|
983
|
+
maxImageSize?: number;
|
|
860
984
|
minEstimatedNumberOfSymbolsForDocument?: number;
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
985
|
+
minProcessedFraction?: number;
|
|
986
|
+
maxProcessedFraction?: number;
|
|
987
|
+
earlyStopIfNSymbolsFound?: number;
|
|
988
|
+
tileSize?: number;
|
|
865
989
|
_marker?: () => void;
|
|
866
990
|
}) => Promise<import("../core-types").ObjectId<"DocumentQualityAnalyzer">>;
|
|
867
|
-
documentQualityAnalyzerAnalyze: (dqaToken: import("../core-types").ObjectId<"DocumentQualityAnalyzer">, image: import("../core-types").Image) => Promise<import("../
|
|
868
|
-
imageApplyFilter: (image: import("../core-types").Image, filter: import("../core-types").DeepPartial<import("../
|
|
991
|
+
documentQualityAnalyzerAnalyze: (dqaToken: import("../core-types").ObjectId<"DocumentQualityAnalyzer">, image: import("../core-types").Image) => Promise<import("../ui2/configuration/DocumentQualityAnalyzerTypes").DocumentQualityAnalyzerResult>;
|
|
992
|
+
imageApplyFilter: (image: import("../core-types").Image, filter: import("../core-types").DeepPartial<import("../ui2/configuration/ParametricFilters").ParametricFilter>) => Promise<import("../core-types").RawImage>;
|
|
869
993
|
imageCrop: (image: import("../core-types").Image, polygon: [import("../core-types").Point, import("../core-types").Point, import("../core-types").Point, import("../core-types").Point]) => Promise<import("../core-types").RawImage>;
|
|
870
994
|
imageResize: (image: import("../core-types").Image, destinationSize: number) => Promise<import("../core-types").RawImage>;
|
|
871
995
|
imageRotate: (image: import("../core-types").Image, rotations: import("../core/bridge/compiled/ImageTypes").ImageRotation) => Promise<import("../core-types").RawImage>;
|
|
872
|
-
|
|
996
|
+
documentDataExtractorCreate: (parameters: {
|
|
873
997
|
resultAccumulationConfig?: {
|
|
874
998
|
confirmationMethod?: import("../core/bridge/compiled/FrameAccumulationTypes").ConfirmationMethod;
|
|
875
999
|
minConfirmations?: number;
|
|
@@ -879,31 +1003,31 @@ export declare class WorkerBridge {
|
|
|
879
1003
|
};
|
|
880
1004
|
fieldExcludeList?: string[];
|
|
881
1005
|
configurations?: ({
|
|
882
|
-
readonly _type?: "
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
1006
|
+
readonly _type?: "DateValidationConfiguration";
|
|
1007
|
+
minYear?: number;
|
|
1008
|
+
maxYear?: number;
|
|
1009
|
+
fieldTypeName?: string;
|
|
886
1010
|
_marker?: () => void;
|
|
887
1011
|
} | {
|
|
888
|
-
readonly _type?: "
|
|
889
|
-
|
|
1012
|
+
readonly _type?: "EuropeanHealthInsuranceCardConfiguration";
|
|
1013
|
+
expectedCountry?: import("../core/bridge/compiled/DocumentDataExtractorConfigurationTypes").EuropeanHealthInsuranceCardIssuingCountry;
|
|
890
1014
|
_marker?: () => void;
|
|
891
1015
|
} | {
|
|
892
|
-
readonly _type?: "
|
|
893
|
-
|
|
894
|
-
|
|
1016
|
+
readonly _type?: "MRZFallbackConfiguration";
|
|
1017
|
+
acceptedCountries?: string[];
|
|
1018
|
+
acceptedMRZTypes?: import("../core/bridge/compiled/MrzTypes").MrzDocumentType[];
|
|
895
1019
|
_marker?: () => void;
|
|
896
1020
|
} | {
|
|
897
|
-
readonly _type?: "
|
|
898
|
-
|
|
1021
|
+
readonly _type?: "DocumentDataExtractorCommonConfiguration";
|
|
1022
|
+
acceptedDocumentTypes?: string[];
|
|
899
1023
|
_marker?: () => void;
|
|
900
1024
|
})[];
|
|
901
1025
|
_marker?: () => void;
|
|
902
|
-
}) => Promise<import("../core-types").ObjectId<"
|
|
903
|
-
|
|
904
|
-
mode?: import("../core/bridge/compiled/
|
|
1026
|
+
}) => Promise<import("../core-types").ObjectId<"DocumentDataExtractor">>;
|
|
1027
|
+
documentDataExtractorExtract: <ImageType_4 extends import("../core-types").Image>(gdrToken: import("../core-types").ObjectId<"DocumentDataExtractor">, image: ImageType_4, parameters: {
|
|
1028
|
+
mode?: import("../core/bridge/compiled/DocumentDataExtractorTypes").DocumentDataExtractionMode;
|
|
905
1029
|
_marker?: () => void;
|
|
906
|
-
}) => Promise<import("../core/bridge/compiled/
|
|
1030
|
+
}) => Promise<import("../core/bridge/compiled/DocumentDataExtractorTypes").DocumentDataExtractionResult & {
|
|
907
1031
|
originalImage: ImageType_4;
|
|
908
1032
|
}>;
|
|
909
1033
|
version: () => Promise<string>;
|