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.
Files changed (197) hide show
  1. package/@types/barcode-scanner-view.d.ts +10 -10
  2. package/@types/consume-type.d.ts +8 -0
  3. package/@types/core/bridge/common.d.ts +24 -0
  4. package/@types/core/bridge/compiled/BarcodeConfigs.d.ts +973 -0
  5. package/@types/core/bridge/compiled/BarcodeScannerTypes.d.ts +185 -0
  6. package/@types/core/bridge/compiled/BarcodeTypes.d.ts +183 -0
  7. package/@types/core/bridge/compiled/CheckRecognizerTypes.d.ts +29 -0
  8. package/@types/core/bridge/compiled/CommonFieldType.d.ts +59 -0
  9. package/@types/core/bridge/compiled/DocumentDetectorTypes.d.ts +196 -0
  10. package/@types/core/bridge/compiled/DocumentQualityAnalyzerTypes.d.ts +105 -0
  11. package/@types/core/bridge/compiled/EhicTypes.d.ts +218 -0
  12. package/@types/core/bridge/compiled/FrameUtilities.d.ts +18 -0
  13. package/@types/core/bridge/compiled/GDRTypes.d.ts +38 -0
  14. package/@types/core/bridge/compiled/GenericDocument.d.ts +236 -0
  15. package/@types/core/bridge/compiled/GenericDocumentRecognizerConfigs.d.ts +183 -0
  16. package/@types/core/bridge/compiled/GenericDocumentRecognizerTypes.d.ts +105 -0
  17. package/@types/core/bridge/compiled/GenericDocumentTypes.d.ts +38 -0
  18. package/@types/core/bridge/compiled/GenericTextLineScannerTypes.d.ts +165 -0
  19. package/@types/core/bridge/compiled/Geometry.d.ts +49 -0
  20. package/@types/core/bridge/compiled/ImageProcessorTypes.d.ts +13 -0
  21. package/@types/core/bridge/compiled/LicensePlateScannerTypes.d.ts +67 -0
  22. package/@types/core/bridge/compiled/MRZTypes.d.ts +52 -0
  23. package/@types/core/bridge/compiled/MedicalCertificateTypes.d.ts +306 -0
  24. package/@types/core/bridge/compiled/OcrElements.d.ts +129 -0
  25. package/@types/core/bridge/compiled/ParametricFilters.d.ts +188 -0
  26. package/@types/core/bridge/compiled/PdfConfig.d.ts +197 -0
  27. package/@types/core/bridge/compiled/TiffTypes.d.ts +183 -0
  28. package/@types/core/bridge/utils.d.ts +7 -0
  29. package/@types/core/bridge/worker-bridge.d.ts +920 -0
  30. package/@types/core/worker/ScanbotSDK.Core-simd-threads.d.ts +0 -0
  31. package/@types/core/worker/ScanbotSDK.Core-simd.d.ts +0 -0
  32. package/@types/core/worker/ScanbotSDK.Core.d.ts +86 -0
  33. package/@types/core-types.d.ts +25 -0
  34. package/@types/cropping-view.d.ts +4 -2
  35. package/@types/document-scanner-view.d.ts +7 -5
  36. package/@types/generic-document-recognizer-view.d.ts +22 -0
  37. package/@types/index.d.ts +49 -21
  38. package/@types/interfaces/i-document-scanner-handle.d.ts +2 -2
  39. package/@types/interfaces/i-generic-document-recognizer-scanner-handle.d.ts +3 -0
  40. package/@types/model/barcode/barcode-result.d.ts +16 -8
  41. package/@types/model/barcode/barcode.d.ts +4 -14
  42. package/@types/model/camera-info.d.ts +3 -2
  43. package/@types/model/configuration/barcode-scanner-configuration.d.ts +15 -8
  44. package/@types/model/configuration/cropping-view-configuration.d.ts +7 -1
  45. package/@types/model/configuration/document-scanner-configuration.d.ts +6 -27
  46. package/@types/model/configuration/generic-document-recognizer-configuration.d.ts +9 -0
  47. package/@types/model/configuration/initialization-options.d.ts +10 -1
  48. package/@types/model/configuration/mrz-scanner-configuration.d.ts +4 -3
  49. package/@types/model/configuration/scanner-configuration.d.ts +8 -0
  50. package/@types/model/configuration/selection-overlay-configuration.d.ts +4 -4
  51. package/@types/model/configuration/text-data-scanner-configuration.d.ts +3 -6
  52. package/@types/model/configuration/view-finder-scanner-configuration.d.ts +3 -2
  53. package/@types/model/configuration/vin-scanner-configuration.d.ts +2 -1
  54. package/@types/model/error/media-error.d.ts +1 -0
  55. package/@types/model/response/cropping-result.d.ts +2 -1
  56. package/@types/scanbot-sdk.d.ts +510 -28
  57. package/@types/service/document-quality-analyzer.d.ts +7 -5
  58. package/@types/service/generic-document-recognizer.d.ts +13 -0
  59. package/@types/service/ocr-engine.d.ts +8 -5
  60. package/@types/service/pdf-generator.d.ts +7 -95
  61. package/@types/service/public-utils.d.ts +1 -1
  62. package/@types/service/simple-mrz-recognizer.d.ts +7 -5
  63. package/@types/service/text-data-recognizer.d.ts +7 -4
  64. package/@types/service/tiff-generator.d.ts +12 -10
  65. package/@types/ui2/common.d.ts +8 -0
  66. package/@types/ui2/configuration/ActionBarConfiguration.d.ts +30 -30
  67. package/@types/ui2/configuration/ArTrackingOverlayConfiguration.d.ts +220 -220
  68. package/@types/ui2/configuration/BarcodeInfoMapping.d.ts +52 -52
  69. package/@types/ui2/configuration/BarcodeItemMapper.d.ts +2 -2
  70. package/@types/ui2/configuration/BarcodeRecognizerConfiguration.d.ts +38 -181
  71. package/@types/ui2/configuration/BarcodeScannerConfiguration.d.ts +172 -188
  72. package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +1 -0
  73. package/@types/ui2/configuration/BarcodeScannerUIResult.d.ts +29 -0
  74. package/@types/ui2/configuration/BarcodeTextLocalization.d.ts +102 -107
  75. package/@types/ui2/configuration/BarcodeTypes.d.ts +1 -0
  76. package/@types/ui2/configuration/BarcodeUseCase.d.ts +5 -1
  77. package/@types/ui2/configuration/CameraConfiguration.d.ts +44 -45
  78. package/@types/ui2/configuration/CameraPermission.d.ts +33 -48
  79. package/@types/ui2/configuration/Common.d.ts +190 -227
  80. package/@types/ui2/configuration/CommonFieldType.d.ts +1 -0
  81. package/@types/ui2/configuration/FindAndPickScanningModeUseCase.d.ts +366 -14
  82. package/@types/ui2/configuration/GenericDocument.d.ts +1 -0
  83. package/@types/ui2/configuration/Geometry.d.ts +1 -0
  84. package/@types/ui2/configuration/MultipleScanningModeUseCase.d.ts +489 -489
  85. package/@types/ui2/configuration/ScanbotAlertDialog.d.ts +27 -27
  86. package/@types/ui2/configuration/SingleScanningModeUseCase.d.ts +170 -170
  87. package/@types/ui2/configuration/TopBarConfiguration.d.ts +36 -52
  88. package/@types/ui2/configuration/UserGuidanceConfiguration.d.ts +16 -16
  89. package/@types/ui2/configuration/ViewFinderConfiguration.d.ts +49 -46
  90. package/@types/ui2/configuration.d.ts +3 -2
  91. package/@types/ui2/controllers/barcode-scanner-controller.d.ts +2 -2
  92. package/@types/ui2/controllers/multiple-scanning-mode-controller.d.ts +6 -3
  93. package/@types/ui2/controllers/single-scanning-mode-controller.d.ts +6 -3
  94. package/@types/ui2/model/counted-barcodes.d.ts +17 -23
  95. package/@types/ui2/scanbot-sdk-ui.d.ts +2 -2
  96. package/@types/ui2/scanbot-ui-library.d.ts +3 -2
  97. package/@types/ui2/utils/barcode-mapper/expected-barcode-mapper.d.ts +13 -0
  98. package/@types/ui2/utils/barcode-mapper/i-barcode-mapper.d.ts +18 -0
  99. package/@types/ui2/utils/{barcode-mapper.d.ts → barcode-mapper/user-barcode-mapper.d.ts} +11 -11
  100. package/@types/ui2/utils/camera-config.d.ts +2 -2
  101. package/@types/ui2/utils/find-and-pick.ts/expected-barcode-counter.d.ts +7 -0
  102. package/@types/ui2/utils/styled-badge.d.ts +1 -1
  103. package/@types/ui2/utils/styled-input.d.ts +1 -1
  104. package/@types/ui2/views/action-button/action-button-container.d.ts +2 -0
  105. package/@types/ui2/views/ar/ar-badge.d.ts +18 -0
  106. package/@types/ui2/views/ar/ar-overlay-barcode-info.d.ts +5 -1
  107. package/@types/ui2/views/ar/vertical-positions.d.ts +12 -0
  108. package/@types/ui2/views/barcode-info/barcode-info.d.ts +3 -1
  109. package/@types/ui2/views/barcode-scanner.d.ts +6 -5
  110. package/@types/ui2/views/dialog/base/confirmation-dialog.d.ts +20 -0
  111. package/@types/ui2/views/dialog/find-and-pick-submit-dialog.d.ts +10 -0
  112. package/@types/ui2/views/drawer/barcode-result-drawer.d.ts +1 -1
  113. package/@types/ui2/views/drawer/counting-button.d.ts +1 -1
  114. package/@types/ui2/views/drawer/subviews/barcode-drawer-empty-state.d.ts +1 -1
  115. package/@types/ui2/views/drawer/subviews/barcode-list-item.d.ts +5 -4
  116. package/@types/ui2/views/drawer/subviews/barcode-list.d.ts +8 -1
  117. package/@types/ui2/views/drawer/subviews/drawer-header-content.d.ts +1 -1
  118. package/@types/ui2/views/form/dialog-button.d.ts +2 -2
  119. package/@types/utils/barcode-utils.d.ts +10 -0
  120. package/@types/utils/browser-cameras.d.ts +92 -0
  121. package/@types/utils/dto/MagneticLine.d.ts +4 -4
  122. package/@types/utils/dto/Point.d.ts +2 -2
  123. package/@types/utils/dto/Polygon.d.ts +2 -1
  124. package/@types/utils/image-utils.d.ts +1 -0
  125. package/@types/utils/react/usePromise.d.ts +3 -1
  126. package/@types/utils/stats.d.ts +4 -0
  127. package/@types/utils/utils.d.ts +1 -1
  128. package/@types/utils/video-stream.d.ts +4 -3
  129. package/@types/utils/video-to-image-data/two-d-video-to-image-data.d.ts +8 -0
  130. package/@types/utils/video-to-image-data/video-to-image-data.d.ts +5 -0
  131. package/@types/utils/video-to-image-data/webgl-video-to-image-data.d.ts +21 -0
  132. package/@types/view/action-bar/bottom-action-bar.d.ts +2 -2
  133. package/@types/view/barcode-calculation/barcode-calculation-popup-list.d.ts +2 -2
  134. package/@types/view/barcode-calculation/barcode-calculation-popup.d.ts +4 -4
  135. package/@types/view/barcode-calculation/scanned-image-with-overlay.d.ts +2 -2
  136. package/@types/view/barcode-polygon/animated-barcode-selection-overlay.d.ts +7 -5
  137. package/@types/view/barcode-polygon/barcode-overlay.d.ts +3 -3
  138. package/@types/view/barcode-polygon/barcode-polygon-label.d.ts +2 -2
  139. package/@types/view/cropping/draggable-base-container.d.ts +8 -2
  140. package/@types/view/cropping/draggable-handles-component.d.ts +9 -2
  141. package/@types/view/scanbot-camera-view.d.ts +9 -3
  142. package/@types/view/view-finder.d.ts +1 -0
  143. package/@types/worker/worker-bridge.d.ts +906 -5
  144. package/Libraries.txt +307 -174
  145. package/README.md +3 -3
  146. package/bundle/ScanbotSDK.min.js +5 -5
  147. package/bundle/ScanbotSDK.ui2.min.js +108 -161
  148. package/bundle/ScanbotSDK.ui2.min.js.LICENSE.txt +0 -18
  149. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  150. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  151. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  152. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
  153. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  154. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
  155. package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
  156. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
  157. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  158. package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
  159. package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
  160. package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
  161. package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
  162. package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
  163. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  164. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  165. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  166. package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
  167. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  168. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
  169. package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
  170. package/package.json +4 -3
  171. package/ui.d.ts +3 -0
  172. package/ui.js +2 -0
  173. package/webpack/fileLoader.js +3 -5
  174. package/@types/core/compiled/ParametricFilters.d.ts +0 -181
  175. package/@types/core/utils.d.ts +0 -1
  176. package/@types/core/worker-bridge.d.ts +0 -20
  177. package/@types/model/barcode/barcode-format.d.ts +0 -1
  178. package/@types/model/barcode/engine-mode.d.ts +0 -1
  179. package/@types/model/configuration/document-quality-analyzer-configuration.d.ts +0 -13
  180. package/@types/model/document/contour-detection-result.d.ts +0 -11
  181. package/@types/model/document/detection-status.d.ts +0 -11
  182. package/@types/model/document/document-detection-result.d.ts +0 -8
  183. package/@types/model/filter-types.d.ts +0 -6
  184. package/@types/model/generic-text-line-recognizer/text-data-scanner-result.d.ts +0 -6
  185. package/@types/model/mrz/mrz-result.d.ts +0 -41
  186. package/@types/model/response/document-quality-analyzer-result.d.ts +0 -8
  187. package/@types/service/image-processor.d.ts +0 -35
  188. package/@types/ui2/configuration/BarcodeItem.d.ts +0 -30
  189. package/@types/ui2/configuration/BarcodeResult.d.ts +0 -14
  190. package/@types/ui2/configuration/utils.d.ts +0 -6
  191. package/@types/utils/networking.d.ts +0 -7
  192. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
  193. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm-webpack-file-loader +0 -0
  194. package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm-webpack-file-loader +0 -0
  195. package/bundle/bin/complete/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
  196. package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
  197. /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 "./utils";
3
+ import { DeepPartial, PartiallyConstructible } from "../common";
4
4
  import { StyledText } from "./Common";
5
5
  /**
6
- Configuration of the the mapper's error dialog.
7
- */
6
+ Configuration of the the mapper's error dialog.
7
+ */
8
8
  export declare class BarcodeItemErrorState extends PartiallyConstructible {
9
9
  /**
10
- Title displayed above the error message.
11
- @defaultValue new StyledText({
12
- "text": "Connection Error!",
13
- "color": "?sbColorOnSurface"
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
- 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
- */
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
- Configuration of the retry button.
27
- @defaultValue new ButtonConfiguration({});
28
- */
26
+ Configuration of the retry button.
27
+ @defaultValue new ButtonConfiguration({});
28
+ */
29
29
  retryButton: ButtonConfiguration;
30
30
  /**
31
- Configuration of the cancel button.
32
- @defaultValue new ButtonConfiguration({});
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
- Format of the mapped barcode data.
40
- */
39
+ Format of the mapped barcode data.
40
+ */
41
41
  export declare class BarcodeMappedData extends PartiallyConstructible {
42
42
  /**
43
- Title of the barcode.
44
- */
43
+ Title of the barcode.
44
+ */
45
45
  title: string;
46
46
  /**
47
- Subtitle of the barcode.
48
- */
47
+ Subtitle of the barcode.
48
+ */
49
49
  subtitle: string;
50
50
  /**
51
- Image of the barcode.
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
- Configuration of the barcode data mapping.
59
- */
58
+ Configuration of the barcode data mapping.
59
+ */
60
60
  export declare class BarcodeInfoMapping extends PartiallyConstructible {
61
61
  /**
62
- Callback to map the barcode data to the data of the corresponding product.
63
- @defaultValue null;
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
- Background color of the barcode info dialog.
68
- @defaultValue "?sbColorSurface";
69
- */
67
+ Background color of the barcode info dialog.
68
+ @defaultValue "?sbColorSurface";
69
+ */
70
70
  sheetColor: string;
71
71
  /**
72
- Color of the divider and separator lines in the barcode info dialog.
73
- @defaultValue "?sbColorOutline";
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
- Background color of the overlay surrounding the barcode mapping error dialog.
78
- @defaultValue "?sbColorModalOverlay";
79
- */
77
+ Background color of the overlay surrounding the barcode mapping error dialog.
78
+ @defaultValue "?sbColorModalOverlay";
79
+ */
80
80
  modalOverlayColor: string;
81
81
  /**
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
- */
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
- Configuration of the error state displayed when processing a barcode fails.
91
- @defaultValue new BarcodeItemErrorState({});
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 { BarcodeItem } from "./BarcodeItem";
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 = (barcodeItem: BarcodeItem) => Promise<BarcodeMappedData>;
6
+ export type BarcodeItemMapper = (BarcodeScannerUIItem: BarcodeScannerUIItem) => Promise<BarcodeMappedData>;
@@ -1,199 +1,56 @@
1
- import { DeepPartial, PartiallyConstructible } from "./utils";
1
+ import { BarcodeFormat } from "./BarcodeTypes";
2
+ import { DeepPartial, PartiallyConstructible } from "../common";
3
+ import { EngineMode } from "./BarcodeScannerTypes";
4
+ import { GS1Handling } from "./BarcodeTypes";
2
5
  /**
3
- Expected quantity of QR codes in an image.
6
+ Expected quantity of QR codes in an image.
4
7
 
5
- - `LOW`:
6
- Up to 6 QR codes per image.
7
- - `HIGH`:
8
- Up to 24 QR codes per image.
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
- Type of MSI plessey checksum algorithm used.
15
+ Filter for extended EAN and UPC barcodes.
13
16
 
14
- - `NONE`:
15
- No checksum algorithm used.
16
- - `MOD_10`:
17
- Mod10 checksum algorithm
18
- - `MOD_11_IBM`:
19
- Mod11IBM checksum algorithm
20
- - `MOD_11_NCR`:
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
- Configuration of the scanning behavior.
140
- */
26
+ Configuration of the scanning behavior.
27
+ */
141
28
  export declare class BarcodeRecognizerConfiguration extends PartiallyConstructible {
142
29
  /**
143
- List of accepted barcode document formats.
144
- @defaultValue [];
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
- Optional minimum required text length of the detected barcode. The default is 0 (setting is turned off). NOTE - This feature works on ITF barcodes only.
159
- @defaultValue 0;
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
- Checksum algorithm used for MSI Plessey barcodes. The default value is MOD_10.
184
- @defaultValue "MOD_10";
185
- */
186
- msiPlesseyChecksumAlgorithm: MSIPlesseyChecksumAlgorithm;
40
+ The expected way of handling GS1_COMPOSITE barcodes.
41
+ @defaultValue "PARSE";
42
+ */
43
+ gs1Handling: GS1Handling;
187
44
  /**
188
- The expected quantity of QR codes in an image.
189
- @defaultValue "LOW";
190
- */
191
- codeDensity: CodeDensity;
45
+ The engine mode to use for barcode recognition.
46
+ @defaultValue "NEXT_GEN_LOW_POWER";
47
+ */
48
+ engineMode: EngineMode;
192
49
  /**
193
- The expected way of handling GS1_COMPOSITE barcodes.
194
- @defaultValue "PARSE";
195
- */
196
- gs1Handling: Gs1Handling;
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
  }