scanbot-web-sdk 6.0.0-dev.1 → 6.0.0-dev.3
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 +10 -10
- package/@types/consume-type.d.ts +8 -0
- package/@types/core/bridge/common.d.ts +24 -0
- package/@types/core/bridge/compiled/BarcodeConfigs.d.ts +973 -0
- package/@types/core/bridge/compiled/BarcodeScannerTypes.d.ts +185 -0
- package/@types/core/bridge/compiled/BarcodeTypes.d.ts +183 -0
- package/@types/core/bridge/compiled/CheckRecognizerTypes.d.ts +29 -0
- package/@types/core/bridge/compiled/CommonFieldType.d.ts +59 -0
- package/@types/core/bridge/compiled/DocumentDetectorTypes.d.ts +196 -0
- package/@types/core/bridge/compiled/DocumentQualityAnalyzerTypes.d.ts +105 -0
- package/@types/core/bridge/compiled/EhicTypes.d.ts +218 -0
- package/@types/core/bridge/compiled/FrameUtilities.d.ts +18 -0
- package/@types/core/bridge/compiled/GDRTypes.d.ts +38 -0
- package/@types/core/bridge/compiled/GenericDocument.d.ts +236 -0
- package/@types/core/bridge/compiled/GenericDocumentRecognizerConfigs.d.ts +183 -0
- package/@types/core/bridge/compiled/GenericDocumentRecognizerTypes.d.ts +105 -0
- package/@types/core/bridge/compiled/GenericDocumentTypes.d.ts +38 -0
- package/@types/core/bridge/compiled/GenericTextLineScannerTypes.d.ts +165 -0
- package/@types/core/bridge/compiled/Geometry.d.ts +49 -0
- package/@types/core/bridge/compiled/ImageProcessorTypes.d.ts +13 -0
- package/@types/core/bridge/compiled/LicensePlateScannerTypes.d.ts +67 -0
- package/@types/core/bridge/compiled/MRZTypes.d.ts +52 -0
- package/@types/core/bridge/compiled/MedicalCertificateTypes.d.ts +306 -0
- package/@types/core/bridge/compiled/OcrElements.d.ts +129 -0
- package/@types/core/bridge/compiled/ParametricFilters.d.ts +188 -0
- package/@types/core/bridge/compiled/PdfConfig.d.ts +197 -0
- package/@types/core/bridge/compiled/TiffTypes.d.ts +183 -0
- package/@types/core/bridge/utils.d.ts +7 -0
- package/@types/core/bridge/worker-bridge.d.ts +920 -0
- package/@types/core/worker/ScanbotSDK.Core-simd-threads.d.ts +0 -0
- package/@types/core/worker/ScanbotSDK.Core-simd.d.ts +0 -0
- package/@types/core/worker/ScanbotSDK.Core.d.ts +86 -0
- package/@types/core-types.d.ts +25 -0
- package/@types/cropping-view.d.ts +4 -2
- package/@types/document-scanner-view.d.ts +7 -5
- package/@types/generic-document-recognizer-view.d.ts +22 -0
- package/@types/index.d.ts +49 -21
- package/@types/interfaces/i-document-scanner-handle.d.ts +2 -2
- package/@types/interfaces/i-generic-document-recognizer-scanner-handle.d.ts +3 -0
- package/@types/model/barcode/barcode-result.d.ts +16 -8
- package/@types/model/barcode/barcode.d.ts +4 -14
- package/@types/model/camera-info.d.ts +3 -2
- package/@types/model/configuration/barcode-scanner-configuration.d.ts +15 -8
- package/@types/model/configuration/cropping-view-configuration.d.ts +7 -1
- package/@types/model/configuration/document-scanner-configuration.d.ts +6 -27
- package/@types/model/configuration/generic-document-recognizer-configuration.d.ts +9 -0
- package/@types/model/configuration/initialization-options.d.ts +10 -1
- package/@types/model/configuration/mrz-scanner-configuration.d.ts +4 -3
- package/@types/model/configuration/scanner-configuration.d.ts +8 -0
- package/@types/model/configuration/selection-overlay-configuration.d.ts +4 -4
- package/@types/model/configuration/text-data-scanner-configuration.d.ts +3 -6
- package/@types/model/configuration/view-finder-scanner-configuration.d.ts +3 -2
- package/@types/model/configuration/vin-scanner-configuration.d.ts +2 -1
- package/@types/model/error/media-error.d.ts +1 -0
- package/@types/model/response/cropping-result.d.ts +2 -1
- package/@types/scanbot-sdk.d.ts +510 -28
- package/@types/service/document-quality-analyzer.d.ts +7 -5
- package/@types/service/generic-document-recognizer.d.ts +13 -0
- package/@types/service/ocr-engine.d.ts +8 -5
- package/@types/service/pdf-generator.d.ts +7 -95
- package/@types/service/public-utils.d.ts +1 -1
- package/@types/service/simple-mrz-recognizer.d.ts +7 -5
- package/@types/service/text-data-recognizer.d.ts +7 -4
- package/@types/service/tiff-generator.d.ts +12 -10
- package/@types/ui2/common.d.ts +8 -0
- package/@types/ui2/configuration/ActionBarConfiguration.d.ts +30 -30
- package/@types/ui2/configuration/ArTrackingOverlayConfiguration.d.ts +220 -220
- package/@types/ui2/configuration/BarcodeInfoMapping.d.ts +52 -52
- package/@types/ui2/configuration/BarcodeItemMapper.d.ts +2 -2
- package/@types/ui2/configuration/BarcodeRecognizerConfiguration.d.ts +38 -181
- package/@types/ui2/configuration/BarcodeScannerConfiguration.d.ts +172 -188
- package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +1 -0
- package/@types/ui2/configuration/BarcodeScannerUIResult.d.ts +29 -0
- package/@types/ui2/configuration/BarcodeTextLocalization.d.ts +102 -107
- package/@types/ui2/configuration/BarcodeTypes.d.ts +1 -0
- package/@types/ui2/configuration/BarcodeUseCase.d.ts +5 -1
- package/@types/ui2/configuration/CameraConfiguration.d.ts +44 -45
- package/@types/ui2/configuration/CameraPermission.d.ts +33 -48
- package/@types/ui2/configuration/Common.d.ts +190 -227
- package/@types/ui2/configuration/CommonFieldType.d.ts +1 -0
- package/@types/ui2/configuration/FindAndPickScanningModeUseCase.d.ts +366 -14
- package/@types/ui2/configuration/GenericDocument.d.ts +1 -0
- package/@types/ui2/configuration/Geometry.d.ts +1 -0
- package/@types/ui2/configuration/MultipleScanningModeUseCase.d.ts +489 -489
- package/@types/ui2/configuration/ScanbotAlertDialog.d.ts +27 -27
- package/@types/ui2/configuration/SingleScanningModeUseCase.d.ts +170 -170
- package/@types/ui2/configuration/TopBarConfiguration.d.ts +36 -52
- package/@types/ui2/configuration/UserGuidanceConfiguration.d.ts +16 -16
- package/@types/ui2/configuration/ViewFinderConfiguration.d.ts +49 -46
- package/@types/ui2/configuration.d.ts +3 -2
- package/@types/ui2/controllers/barcode-scanner-controller.d.ts +2 -2
- package/@types/ui2/controllers/multiple-scanning-mode-controller.d.ts +6 -3
- package/@types/ui2/controllers/single-scanning-mode-controller.d.ts +6 -3
- package/@types/ui2/model/counted-barcodes.d.ts +17 -23
- package/@types/ui2/scanbot-sdk-ui.d.ts +2 -2
- package/@types/ui2/scanbot-ui-library.d.ts +3 -2
- package/@types/ui2/utils/barcode-mapper/expected-barcode-mapper.d.ts +13 -0
- package/@types/ui2/utils/barcode-mapper/i-barcode-mapper.d.ts +18 -0
- package/@types/ui2/utils/{barcode-mapper.d.ts → barcode-mapper/user-barcode-mapper.d.ts} +11 -11
- package/@types/ui2/utils/camera-config.d.ts +2 -2
- package/@types/ui2/utils/find-and-pick.ts/expected-barcode-counter.d.ts +7 -0
- package/@types/ui2/utils/styled-badge.d.ts +1 -1
- package/@types/ui2/utils/styled-input.d.ts +1 -1
- package/@types/ui2/views/action-button/action-button-container.d.ts +2 -0
- package/@types/ui2/views/ar/ar-badge.d.ts +18 -0
- package/@types/ui2/views/ar/ar-overlay-barcode-info.d.ts +5 -1
- package/@types/ui2/views/ar/vertical-positions.d.ts +12 -0
- package/@types/ui2/views/barcode-info/barcode-info.d.ts +3 -1
- package/@types/ui2/views/barcode-scanner.d.ts +6 -5
- package/@types/ui2/views/dialog/base/confirmation-dialog.d.ts +20 -0
- package/@types/ui2/views/dialog/find-and-pick-submit-dialog.d.ts +10 -0
- package/@types/ui2/views/drawer/barcode-result-drawer.d.ts +1 -1
- package/@types/ui2/views/drawer/counting-button.d.ts +1 -1
- package/@types/ui2/views/drawer/subviews/barcode-drawer-empty-state.d.ts +1 -1
- package/@types/ui2/views/drawer/subviews/barcode-list-item.d.ts +5 -4
- package/@types/ui2/views/drawer/subviews/barcode-list.d.ts +8 -1
- package/@types/ui2/views/drawer/subviews/drawer-header-content.d.ts +1 -1
- package/@types/ui2/views/form/dialog-button.d.ts +2 -2
- package/@types/utils/barcode-utils.d.ts +10 -0
- package/@types/utils/browser-cameras.d.ts +92 -0
- package/@types/utils/dto/MagneticLine.d.ts +4 -4
- package/@types/utils/dto/Point.d.ts +2 -2
- package/@types/utils/dto/Polygon.d.ts +2 -1
- package/@types/utils/image-utils.d.ts +1 -0
- package/@types/utils/react/usePromise.d.ts +3 -1
- package/@types/utils/stats.d.ts +4 -0
- package/@types/utils/utils.d.ts +1 -1
- package/@types/utils/video-stream.d.ts +4 -3
- package/@types/utils/video-to-image-data/two-d-video-to-image-data.d.ts +8 -0
- package/@types/utils/video-to-image-data/video-to-image-data.d.ts +5 -0
- package/@types/utils/video-to-image-data/webgl-video-to-image-data.d.ts +21 -0
- package/@types/view/action-bar/bottom-action-bar.d.ts +2 -2
- package/@types/view/barcode-calculation/barcode-calculation-popup-list.d.ts +2 -2
- package/@types/view/barcode-calculation/barcode-calculation-popup.d.ts +4 -4
- package/@types/view/barcode-calculation/scanned-image-with-overlay.d.ts +2 -2
- package/@types/view/barcode-polygon/animated-barcode-selection-overlay.d.ts +7 -5
- package/@types/view/barcode-polygon/barcode-overlay.d.ts +3 -3
- package/@types/view/barcode-polygon/barcode-polygon-label.d.ts +2 -2
- package/@types/view/cropping/draggable-base-container.d.ts +8 -2
- package/@types/view/cropping/draggable-handles-component.d.ts +9 -2
- package/@types/view/scanbot-camera-view.d.ts +9 -3
- package/@types/view/view-finder.d.ts +1 -0
- package/@types/worker/worker-bridge.d.ts +906 -5
- package/Libraries.txt +307 -174
- package/README.md +3 -3
- package/bundle/ScanbotSDK.min.js +5 -5
- package/bundle/ScanbotSDK.ui2.min.js +108 -161
- package/bundle/ScanbotSDK.ui2.min.js.LICENSE.txt +0 -18
- 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 +4 -3
- package/ui.d.ts +3 -0
- package/ui.js +2 -0
- package/webpack/fileLoader.js +3 -5
- package/@types/core/compiled/ParametricFilters.d.ts +0 -181
- package/@types/core/utils.d.ts +0 -1
- package/@types/core/worker-bridge.d.ts +0 -20
- package/@types/model/barcode/barcode-format.d.ts +0 -1
- package/@types/model/barcode/engine-mode.d.ts +0 -1
- package/@types/model/configuration/document-quality-analyzer-configuration.d.ts +0 -13
- package/@types/model/document/contour-detection-result.d.ts +0 -11
- package/@types/model/document/detection-status.d.ts +0 -11
- package/@types/model/document/document-detection-result.d.ts +0 -8
- package/@types/model/filter-types.d.ts +0 -6
- package/@types/model/generic-text-line-recognizer/text-data-scanner-result.d.ts +0 -6
- package/@types/model/mrz/mrz-result.d.ts +0 -41
- package/@types/model/response/document-quality-analyzer-result.d.ts +0 -8
- package/@types/service/image-processor.d.ts +0 -35
- package/@types/ui2/configuration/BarcodeItem.d.ts +0 -30
- package/@types/ui2/configuration/BarcodeResult.d.ts +0 -14
- package/@types/ui2/configuration/utils.d.ts +0 -6
- package/@types/utils/networking.d.ts +0 -7
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm-webpack-file-loader +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm-webpack-file-loader +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
- /package/@types/ui2/views/dialog/{styled-dialog.d.ts → base/styled-dialog.d.ts} +0 -0
|
@@ -1,95 +1,95 @@
|
|
|
1
1
|
import { BarcodeItemMapper } from "./BarcodeItemMapper";
|
|
2
2
|
import { ButtonConfiguration } from "./Common";
|
|
3
|
-
import { DeepPartial, PartiallyConstructible } from "
|
|
3
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
4
4
|
import { StyledText } from "./Common";
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Configuration of the the mapper's error dialog.
|
|
7
|
+
*/
|
|
8
8
|
export declare class BarcodeItemErrorState extends PartiallyConstructible {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
Title displayed above the error message.
|
|
11
|
+
@defaultValue new StyledText({
|
|
12
|
+
"text": "Connection Error!",
|
|
13
|
+
"color": "?sbColorOnSurface"
|
|
14
14
|
});
|
|
15
|
-
|
|
15
|
+
*/
|
|
16
16
|
title: StyledText;
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
Error message.
|
|
19
|
+
@defaultValue new StyledText({
|
|
20
|
+
"text": "There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",
|
|
21
|
+
"color": "?sbColorOnSurfaceVariant"
|
|
22
|
+
});
|
|
23
|
+
*/
|
|
24
24
|
subtitle: StyledText;
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
Configuration of the retry button.
|
|
27
|
+
@defaultValue new ButtonConfiguration({});
|
|
28
|
+
*/
|
|
29
29
|
retryButton: ButtonConfiguration;
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
Configuration of the cancel button.
|
|
32
|
+
@defaultValue new ButtonConfiguration({});
|
|
33
|
+
*/
|
|
34
34
|
cancelButton: ButtonConfiguration;
|
|
35
35
|
/** @param source {@displayType `DeepPartial<BarcodeItemErrorState>`} */
|
|
36
36
|
constructor(source?: DeepPartial<BarcodeItemErrorState>);
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
Format of the mapped barcode data.
|
|
40
|
+
*/
|
|
41
41
|
export declare class BarcodeMappedData extends PartiallyConstructible {
|
|
42
42
|
/**
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
Title of the barcode.
|
|
44
|
+
*/
|
|
45
45
|
title: string;
|
|
46
46
|
/**
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
Subtitle of the barcode.
|
|
48
|
+
*/
|
|
49
49
|
subtitle: string;
|
|
50
50
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
Image of the barcode.
|
|
52
|
+
*/
|
|
53
53
|
barcodeImage: string;
|
|
54
54
|
/** @param source {@displayType `DeepPartial<BarcodeMappedData>`} */
|
|
55
55
|
constructor(source?: DeepPartial<BarcodeMappedData>);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
Configuration of the barcode data mapping.
|
|
59
|
+
*/
|
|
60
60
|
export declare class BarcodeInfoMapping extends PartiallyConstructible {
|
|
61
61
|
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
barcodeItemMapper: BarcodeItemMapper;
|
|
62
|
+
Callback to map the barcode data to the data of the corresponding product.
|
|
63
|
+
@defaultValue null;
|
|
64
|
+
*/
|
|
65
|
+
barcodeItemMapper: BarcodeItemMapper | null;
|
|
66
66
|
/**
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
Background color of the barcode info dialog.
|
|
68
|
+
@defaultValue "?sbColorSurface";
|
|
69
|
+
*/
|
|
70
70
|
sheetColor: string;
|
|
71
71
|
/**
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
Color of the divider and separator lines in the barcode info dialog.
|
|
73
|
+
@defaultValue "?sbColorOutline";
|
|
74
|
+
*/
|
|
75
75
|
dividerColor: string;
|
|
76
76
|
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
Background color of the overlay surrounding the barcode mapping error dialog.
|
|
78
|
+
@defaultValue "?sbColorModalOverlay";
|
|
79
|
+
*/
|
|
80
80
|
modalOverlayColor: string;
|
|
81
81
|
/**
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
Text being displayed while a barcode is being mapped.
|
|
83
|
+
@defaultValue new StyledText({
|
|
84
|
+
"text": "Loading message for barcode info mapping.",
|
|
85
|
+
"color": "?sbColorPrimary"
|
|
86
|
+
});
|
|
87
|
+
*/
|
|
88
88
|
loadingMessage: StyledText;
|
|
89
89
|
/**
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
Configuration of the error state displayed when processing a barcode fails.
|
|
91
|
+
@defaultValue new BarcodeItemErrorState({});
|
|
92
|
+
*/
|
|
93
93
|
errorState: BarcodeItemErrorState;
|
|
94
94
|
/** @param source {@displayType `DeepPartial<BarcodeInfoMapping>`} */
|
|
95
95
|
constructor(source?: DeepPartial<BarcodeInfoMapping>);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BarcodeMappedData } from "./BarcodeInfoMapping";
|
|
2
|
-
import {
|
|
2
|
+
import { BarcodeScannerUIItem } from "./BarcodeScannerUIResult";
|
|
3
3
|
/**
|
|
4
4
|
* Maps a barcode's data to the data of the corresponding product.
|
|
5
5
|
* */
|
|
6
|
-
export type BarcodeItemMapper = (
|
|
6
|
+
export type BarcodeItemMapper = (BarcodeScannerUIItem: BarcodeScannerUIItem) => Promise<BarcodeMappedData>;
|
|
@@ -1,199 +1,56 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BarcodeFormat } from "./BarcodeTypes";
|
|
2
|
+
import { DeepPartial, PartiallyConstructible } from "../common";
|
|
3
|
+
import { EngineMode } from "./BarcodeScannerTypes";
|
|
4
|
+
import { GS1Handling } from "./BarcodeTypes";
|
|
2
5
|
/**
|
|
3
|
-
|
|
6
|
+
Expected quantity of QR codes in an image.
|
|
4
7
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
- `LOW`:
|
|
9
|
+
Up to 6 QR codes per image.
|
|
10
|
+
- `HIGH`:
|
|
11
|
+
Up to 24 QR codes per image.
|
|
12
|
+
*/
|
|
10
13
|
export type CodeDensity = "LOW" | "HIGH";
|
|
11
14
|
/**
|
|
12
|
-
|
|
15
|
+
Filter for extended EAN and UPC barcodes.
|
|
13
16
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Mod11NCR checksum algorithm
|
|
22
|
-
- `MOD_1010`:
|
|
23
|
-
Mod1010 checksum algorithm
|
|
24
|
-
- `MOD_1110_IBM`:
|
|
25
|
-
Mod1110IBM checksum algorithm
|
|
26
|
-
- `MOD_1110_NCR`:
|
|
27
|
-
Mod1110NCR checksum algorithm
|
|
28
|
-
*/
|
|
29
|
-
export type MSIPlesseyChecksumAlgorithm = "NONE" | "MOD_10" | "MOD_11_IBM" | "MOD_11_NCR" | "MOD_1010" | "MOD_1110_IBM" | "MOD_1110_NCR";
|
|
30
|
-
/**
|
|
31
|
-
GS1_COMPOSITE barcode type handling
|
|
32
|
-
|
|
33
|
-
- `NONE`:
|
|
34
|
-
No special handling for GS1-formatted results. Special (FNC1) characters are stripped.
|
|
35
|
-
- `PARSE`:
|
|
36
|
-
GS1 messages are converted to machine-readable format per the GS1 spec (the special character is converted to ASCII \x1D). Message is not validated. The implied 01 AI key is prepended to DataBar results.
|
|
37
|
-
- `VALIDATE`:
|
|
38
|
-
GS1 messages are converted to machine-readable format per the GS1 spec (the special character is converted to ASCII \x1D) and validated. The implied 01 AI key is prepended to DataBar results. Invalid messages are not returned.
|
|
39
|
-
- `DECODE`:
|
|
40
|
-
GS1 strings are converted to human-readable format and validated. The implied (01) AI key is prepended to DataBar results. Invalid messages are not returned.
|
|
41
|
-
*/
|
|
42
|
-
export type Gs1Handling = "NONE" | "PARSE" | "VALIDATE" | "DECODE";
|
|
43
|
-
/**
|
|
44
|
-
Type of barcode document format used.
|
|
45
|
-
|
|
46
|
-
- `AAMVA`:
|
|
47
|
-
American Association of Motor Vehicle Administrators barcode document
|
|
48
|
-
- `BOARDING_PASS`:
|
|
49
|
-
Boarding pass barcode document
|
|
50
|
-
- `DE_MEDICAL_PLAN`:
|
|
51
|
-
German medication plan barcode document
|
|
52
|
-
- `MEDICAL_CERTIFICATE`:
|
|
53
|
-
German medical certificate barcode document
|
|
54
|
-
- `ID_CARD_PDF_417`:
|
|
55
|
-
ID card barcode document
|
|
56
|
-
- `SEPA`:
|
|
57
|
-
SEPA barcode (aka GiroCode) document
|
|
58
|
-
- `SWISS_QR`:
|
|
59
|
-
Swiss QR barcode document
|
|
60
|
-
- `VCARD`:
|
|
61
|
-
VCard barcode document
|
|
62
|
-
- `GS1`:
|
|
63
|
-
GS1 barcode document
|
|
64
|
-
*/
|
|
65
|
-
export type BarcodeDocumentFormat = "AAMVA" | "BOARDING_PASS" | "DE_MEDICAL_PLAN" | "MEDICAL_CERTIFICATE" | "ID_CARD_PDF_417" | "SEPA" | "SWISS_QR" | "VCARD" | "GS1";
|
|
66
|
-
/**
|
|
67
|
-
Barcode symbology used.
|
|
68
|
-
|
|
69
|
-
- `AZTEC`:
|
|
70
|
-
Aztec barcode type
|
|
71
|
-
- `CODABAR`:
|
|
72
|
-
Codabar barcode type
|
|
73
|
-
- `CODE_25`:
|
|
74
|
-
Code 25 barcode type
|
|
75
|
-
- `CODE_39`:
|
|
76
|
-
Code 39 barcode type
|
|
77
|
-
- `CODE_93`:
|
|
78
|
-
Code 93 barcode type
|
|
79
|
-
- `CODE_128`:
|
|
80
|
-
Code 128 barcode type
|
|
81
|
-
- `DATA_MATRIX`:
|
|
82
|
-
Data Matrix barcode type
|
|
83
|
-
- `EAN_8`:
|
|
84
|
-
EAN-8 barcode type
|
|
85
|
-
- `EAN_13`:
|
|
86
|
-
EAN-13 barcode type
|
|
87
|
-
- `ITF`:
|
|
88
|
-
ITF (Interleaved 2 of 5) barcode type
|
|
89
|
-
- `PDF_417`:
|
|
90
|
-
PDF417 barcode type
|
|
91
|
-
- `QR_CODE`:
|
|
92
|
-
QR Code barcode type
|
|
93
|
-
- `MICRO_QR_CODE`:
|
|
94
|
-
Micro QR Code barcode type
|
|
95
|
-
- `DATABAR`:
|
|
96
|
-
Databar barcode type
|
|
97
|
-
- `DATABAR_EXPANDED`:
|
|
98
|
-
Databar Expanded barcode type
|
|
99
|
-
- `UPC_A`:
|
|
100
|
-
UPC-A barcode type
|
|
101
|
-
- `UPC_E`:
|
|
102
|
-
UPC-E barcode type
|
|
103
|
-
- `MSI_PLESSEY`:
|
|
104
|
-
MSI Plessey barcode type
|
|
105
|
-
- `IATA_2_OF_5`:
|
|
106
|
-
IATA 2 of 5 barcode type
|
|
107
|
-
- `INDUSTRIAL_2_OF_5`:
|
|
108
|
-
Industrial 2 of 5 barcode type
|
|
109
|
-
- `USPS_INTELLIGENT_MAIL`:
|
|
110
|
-
USPS Intelligent Mail (aka USPS OneCode, USPS-STD-11)
|
|
111
|
-
- `ROYAL_MAIL`:
|
|
112
|
-
Royal Mail Four-State Customer Code, (aka RM4SCC, CBC, BPO 4 State Code)
|
|
113
|
-
- `JAPAN_POST`:
|
|
114
|
-
Japan Post Four-State Barcode
|
|
115
|
-
- `ROYAL_TNT_POST`:
|
|
116
|
-
Royal TNT Post Four-State Barcode (aka KIX, Klant IndeX)
|
|
117
|
-
- `AUSTRALIA_POST`:
|
|
118
|
-
Australia Post Four-State Customer Code
|
|
119
|
-
- `DATABAR_LIMITED`:
|
|
120
|
-
GS1 DataBar Limited
|
|
121
|
-
- `GS1_COMPOSITE`:
|
|
122
|
-
GS1 Composite
|
|
123
|
-
- `MICRO_PDF_417`:
|
|
124
|
-
Databar micro pdf 417
|
|
125
|
-
*/
|
|
126
|
-
export type BarcodeFormat = "AZTEC" | "CODABAR" | "CODE_25" | "CODE_39" | "CODE_93" | "CODE_128" | "DATA_MATRIX" | "EAN_8" | "EAN_13" | "ITF" | "PDF_417" | "QR_CODE" | "MICRO_QR_CODE" | "DATABAR" | "DATABAR_EXPANDED" | "UPC_A" | "UPC_E" | "MSI_PLESSEY" | "IATA_2_OF_5" | "INDUSTRIAL_2_OF_5" | "USPS_INTELLIGENT_MAIL" | "ROYAL_MAIL" | "JAPAN_POST" | "ROYAL_TNT_POST" | "AUSTRALIA_POST" | "DATABAR_LIMITED" | "GS1_COMPOSITE" | "MICRO_PDF_417";
|
|
127
|
-
/**
|
|
128
|
-
Filter for extended EAN and UPC barcodes.
|
|
129
|
-
|
|
130
|
-
- `NO_FILTER`:
|
|
131
|
-
EAN and UPC codes are not filtered. Both are returned regardless if they have an extension or not.
|
|
132
|
-
- `ONLY_WITH_EXTENSIONS`:
|
|
133
|
-
Only EAN and UPC codes with extensions are returned.
|
|
134
|
-
- `ONLY_WITHOUT_EXTENSIONS`:
|
|
135
|
-
Only EAN and UPC codes without extensions are returned.
|
|
136
|
-
*/
|
|
17
|
+
- `NO_FILTER`:
|
|
18
|
+
EAN and UPC codes are not filtered. Both are returned regardless if they have an extension or not.
|
|
19
|
+
- `ONLY_WITH_EXTENSIONS`:
|
|
20
|
+
Only EAN and UPC codes with extensions are returned.
|
|
21
|
+
- `ONLY_WITHOUT_EXTENSIONS`:
|
|
22
|
+
Only EAN and UPC codes without extensions are returned.
|
|
23
|
+
*/
|
|
137
24
|
export type BarcodesExtensionFilter = "NO_FILTER" | "ONLY_WITH_EXTENSIONS" | "ONLY_WITHOUT_EXTENSIONS";
|
|
138
25
|
/**
|
|
139
|
-
|
|
140
|
-
|
|
26
|
+
Configuration of the scanning behavior.
|
|
27
|
+
*/
|
|
141
28
|
export declare class BarcodeRecognizerConfiguration extends PartiallyConstructible {
|
|
142
29
|
/**
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
acceptedDocumentFormats: BarcodeDocumentFormat[];
|
|
147
|
-
/**
|
|
148
|
-
Filter for extended EAN and UPC barcodes.
|
|
149
|
-
@defaultValue "NO_FILTER";
|
|
150
|
-
*/
|
|
151
|
-
barcodesExtensionFilter: BarcodesExtensionFilter;
|
|
152
|
-
/**
|
|
153
|
-
Regular expression filter for barcode text. If the barcode text does not match the regular expression, it will not be scanned. The default is an empty string (setting is turned off). This option overrides `barcodesExtensionFilter` option.
|
|
154
|
-
@defaultValue "";
|
|
155
|
-
*/
|
|
30
|
+
Regular expression filter for barcode text. If the barcode text does not match the regular expression, it will not be scanned. The default is an empty string (setting is turned off). This option overrides `barcodesExtensionFilter` option.
|
|
31
|
+
@defaultValue "";
|
|
32
|
+
*/
|
|
156
33
|
barcodesRegexFilter: string;
|
|
157
34
|
/**
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
minimumTextLength: number;
|
|
162
|
-
/**
|
|
163
|
-
Optional maximum text length of the detected barcode. The default is 0 (setting is turned off). NOTE - This feature works on ITF barcodes only.
|
|
164
|
-
@defaultValue 0;
|
|
165
|
-
*/
|
|
166
|
-
maximumTextLength: number;
|
|
167
|
-
/**
|
|
168
|
-
Optional minimum required quiet zone on the barcode. Measured in modules (the smallest bar size on a barcode). The default is 10. NOTE - This feature works on ITF barcodes only.
|
|
169
|
-
@defaultValue 10;
|
|
170
|
-
*/
|
|
171
|
-
minimum1DBarcodesQuietZone: number;
|
|
172
|
-
/**
|
|
173
|
-
If `true`, check digits for UPC, EAN and MSI Plessey codes are removed from the result. Has no effect if both single and double digit MSI Plessey checksums are enabled. The default is `false`.
|
|
174
|
-
@defaultValue false;
|
|
175
|
-
*/
|
|
176
|
-
stripCheckDigits: boolean;
|
|
177
|
-
/**
|
|
178
|
-
List of accepted barcode symbologies.
|
|
179
|
-
@defaultValue [];
|
|
180
|
-
*/
|
|
35
|
+
List of accepted barcode symbologies.
|
|
36
|
+
@defaultValue [];
|
|
37
|
+
*/
|
|
181
38
|
barcodeFormats: BarcodeFormat[];
|
|
182
39
|
/**
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
40
|
+
The expected way of handling GS1_COMPOSITE barcodes.
|
|
41
|
+
@defaultValue "PARSE";
|
|
42
|
+
*/
|
|
43
|
+
gs1Handling: GS1Handling;
|
|
187
44
|
/**
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
45
|
+
The engine mode to use for barcode recognition.
|
|
46
|
+
@defaultValue "NEXT_GEN_LOW_POWER";
|
|
47
|
+
*/
|
|
48
|
+
engineMode: EngineMode;
|
|
192
49
|
/**
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
50
|
+
Maximum resolution of the image processed by the barcode recognizer. Smaller values mean faster processing but lower recognition quality. The value is limited by the resolution of the preview.
|
|
51
|
+
@defaultValue 600;
|
|
52
|
+
*/
|
|
53
|
+
maximumRecognizerResolution: number;
|
|
197
54
|
/** @param source {@displayType `DeepPartial<BarcodeRecognizerConfiguration>`} */
|
|
198
55
|
constructor(source?: DeepPartial<BarcodeRecognizerConfiguration>);
|
|
199
56
|
}
|