scanbot-web-sdk 6.0.0-dev.2 → 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 (139) hide show
  1. package/@types/consume-type.d.ts +2 -1
  2. package/@types/core/bridge/common.d.ts +1 -1
  3. package/@types/core/bridge/compiled/BarcodeScannerTypes.d.ts +5 -3
  4. package/@types/core/bridge/compiled/GDRTypes.d.ts +38 -0
  5. package/@types/core/bridge/compiled/GenericDocument.d.ts +38 -0
  6. package/@types/core/bridge/compiled/GenericDocumentRecognizerConfigs.d.ts +183 -0
  7. package/@types/core/bridge/compiled/GenericDocumentRecognizerTypes.d.ts +7 -6
  8. package/@types/core/bridge/compiled/GenericDocumentTypes.d.ts +38 -0
  9. package/@types/core/bridge/compiled/ParametricFilters.d.ts +4 -2
  10. package/@types/core/bridge/worker-bridge.d.ts +584 -26
  11. package/@types/core/worker/ScanbotSDK.Core.d.ts +18 -7
  12. package/@types/core-types.d.ts +3 -1
  13. package/@types/document-scanner-view.d.ts +3 -1
  14. package/@types/index.d.ts +39 -4
  15. package/@types/model/barcode/barcode-result.d.ts +12 -2
  16. package/@types/model/barcode/barcode.d.ts +2 -1
  17. package/@types/model/camera-info.d.ts +3 -2
  18. package/@types/model/configuration/barcode-scanner-configuration.d.ts +6 -3
  19. package/@types/model/configuration/cropping-view-configuration.d.ts +5 -0
  20. package/@types/model/configuration/document-scanner-configuration.d.ts +2 -8
  21. package/@types/model/configuration/generic-document-recognizer-configuration.d.ts +1 -1
  22. package/@types/model/configuration/initialization-options.d.ts +8 -0
  23. package/@types/model/configuration/mrz-scanner-configuration.d.ts +1 -1
  24. package/@types/model/configuration/scanner-configuration.d.ts +7 -0
  25. package/@types/model/configuration/selection-overlay-configuration.d.ts +2 -2
  26. package/@types/model/configuration/view-finder-scanner-configuration.d.ts +1 -1
  27. package/@types/model/error/media-error.d.ts +1 -0
  28. package/@types/scanbot-sdk.d.ts +355 -52
  29. package/@types/service/generic-document-recognizer.d.ts +3 -1
  30. package/@types/service/simple-mrz-recognizer.d.ts +3 -1
  31. package/@types/service/text-data-recognizer.d.ts +3 -1
  32. package/@types/ui2/common.d.ts +8 -0
  33. package/@types/ui2/configuration/ActionBarConfiguration.d.ts +30 -30
  34. package/@types/ui2/configuration/ArTrackingOverlayConfiguration.d.ts +220 -220
  35. package/@types/ui2/configuration/BarcodeInfoMapping.d.ts +51 -51
  36. package/@types/ui2/configuration/BarcodeItemMapper.d.ts +2 -2
  37. package/@types/ui2/configuration/BarcodeRecognizerConfiguration.d.ts +32 -32
  38. package/@types/ui2/configuration/BarcodeScannerConfiguration.d.ts +168 -168
  39. package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +1 -6
  40. package/@types/ui2/configuration/BarcodeScannerUIResult.d.ts +29 -0
  41. package/@types/ui2/configuration/BarcodeTextLocalization.d.ts +124 -69
  42. package/@types/ui2/configuration/BarcodeTypes.d.ts +1 -1
  43. package/@types/ui2/configuration/BarcodeUseCase.d.ts +4 -3
  44. package/@types/ui2/configuration/CameraConfiguration.d.ts +32 -32
  45. package/@types/ui2/configuration/CameraPermission.d.ts +33 -33
  46. package/@types/ui2/configuration/Common.d.ts +190 -190
  47. package/@types/ui2/configuration/CommonFieldType.d.ts +1 -0
  48. package/@types/ui2/configuration/FindAndPickScanningModeUseCase.d.ts +364 -12
  49. package/@types/ui2/configuration/GenericDocument.d.ts +1 -0
  50. package/@types/ui2/configuration/MultipleScanningModeUseCase.d.ts +488 -488
  51. package/@types/ui2/configuration/ScanbotAlertDialog.d.ts +27 -27
  52. package/@types/ui2/configuration/SingleScanningModeUseCase.d.ts +169 -169
  53. package/@types/ui2/configuration/TopBarConfiguration.d.ts +36 -36
  54. package/@types/ui2/configuration/UserGuidanceConfiguration.d.ts +16 -16
  55. package/@types/ui2/configuration/ViewFinderConfiguration.d.ts +45 -45
  56. package/@types/ui2/configuration.d.ts +2 -1
  57. package/@types/ui2/controllers/barcode-scanner-controller.d.ts +2 -2
  58. package/@types/ui2/controllers/multiple-scanning-mode-controller.d.ts +4 -2
  59. package/@types/ui2/controllers/single-scanning-mode-controller.d.ts +4 -2
  60. package/@types/ui2/model/counted-barcodes.d.ts +12 -19
  61. package/@types/ui2/scanbot-sdk-ui.d.ts +2 -2
  62. package/@types/ui2/scanbot-ui-library.d.ts +3 -2
  63. package/@types/ui2/utils/barcode-mapper/expected-barcode-mapper.d.ts +13 -0
  64. package/@types/ui2/utils/barcode-mapper/i-barcode-mapper.d.ts +18 -0
  65. package/@types/ui2/utils/{barcode-mapper.d.ts → barcode-mapper/user-barcode-mapper.d.ts} +4 -16
  66. package/@types/ui2/utils/find-and-pick.ts/expected-barcode-counter.d.ts +7 -0
  67. package/@types/ui2/utils/styled-badge.d.ts +1 -1
  68. package/@types/ui2/views/ar/ar-badge.d.ts +18 -0
  69. package/@types/ui2/views/ar/ar-overlay-barcode-info.d.ts +5 -1
  70. package/@types/ui2/views/ar/vertical-positions.d.ts +12 -0
  71. package/@types/ui2/views/barcode-info/barcode-info.d.ts +3 -1
  72. package/@types/ui2/views/barcode-scanner.d.ts +5 -5
  73. package/@types/ui2/views/dialog/base/confirmation-dialog.d.ts +20 -0
  74. package/@types/ui2/views/dialog/find-and-pick-submit-dialog.d.ts +10 -0
  75. package/@types/ui2/views/drawer/barcode-result-drawer.d.ts +1 -1
  76. package/@types/ui2/views/drawer/counting-button.d.ts +1 -1
  77. package/@types/ui2/views/drawer/subviews/barcode-drawer-empty-state.d.ts +1 -1
  78. package/@types/ui2/views/drawer/subviews/barcode-list-item.d.ts +5 -4
  79. package/@types/ui2/views/drawer/subviews/barcode-list.d.ts +8 -1
  80. package/@types/ui2/views/drawer/subviews/drawer-header-content.d.ts +1 -1
  81. package/@types/utils/barcode-utils.d.ts +10 -0
  82. package/@types/utils/browser-cameras.d.ts +92 -0
  83. package/@types/utils/dto/Polygon.d.ts +2 -1
  84. package/@types/utils/stats.d.ts +4 -0
  85. package/@types/utils/video-stream.d.ts +3 -3
  86. package/@types/utils/video-to-image-data/two-d-video-to-image-data.d.ts +8 -0
  87. package/@types/utils/video-to-image-data/video-to-image-data.d.ts +5 -0
  88. package/@types/utils/video-to-image-data/webgl-video-to-image-data.d.ts +21 -0
  89. package/@types/view/barcode-polygon/animated-barcode-selection-overlay.d.ts +1 -0
  90. package/@types/view/scanbot-camera-view.d.ts +9 -3
  91. package/@types/worker/worker-bridge.d.ts +587 -30
  92. package/bundle/ScanbotSDK.min.js +4 -4
  93. package/bundle/ScanbotSDK.ui2.min.js +16 -16
  94. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  95. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  96. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  97. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
  98. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  99. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
  100. package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
  101. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
  102. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  103. package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
  104. package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
  105. package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
  106. package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
  107. package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
  108. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  109. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  110. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  111. package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
  112. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  113. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
  114. package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
  115. package/package.json +2 -2
  116. package/@types/core/bridge/compiled_schemas_v3/BarcodeConfigs.d.ts +0 -973
  117. package/@types/core/bridge/compiled_schemas_v3/BarcodeScannerTypes.d.ts +0 -183
  118. package/@types/core/bridge/compiled_schemas_v3/BarcodeTypes.d.ts +0 -183
  119. package/@types/core/bridge/compiled_schemas_v3/CheckRecognizerTypes.d.ts +0 -29
  120. package/@types/core/bridge/compiled_schemas_v3/CommonFieldType.d.ts +0 -59
  121. package/@types/core/bridge/compiled_schemas_v3/DocumentDetectorTypes.d.ts +0 -196
  122. package/@types/core/bridge/compiled_schemas_v3/DocumentQualityAnalyzerTypes.d.ts +0 -105
  123. package/@types/core/bridge/compiled_schemas_v3/EhicTypes.d.ts +0 -218
  124. package/@types/core/bridge/compiled_schemas_v3/FrameUtilities.d.ts +0 -18
  125. package/@types/core/bridge/compiled_schemas_v3/GenericDocument.d.ts +0 -198
  126. package/@types/core/bridge/compiled_schemas_v3/GenericDocumentRecognizerTypes.d.ts +0 -104
  127. package/@types/core/bridge/compiled_schemas_v3/GenericTextLineScannerTypes.d.ts +0 -165
  128. package/@types/core/bridge/compiled_schemas_v3/Geometry.d.ts +0 -49
  129. package/@types/core/bridge/compiled_schemas_v3/ImageProcessorTypes.d.ts +0 -13
  130. package/@types/core/bridge/compiled_schemas_v3/LicensePlateScannerTypes.d.ts +0 -67
  131. package/@types/core/bridge/compiled_schemas_v3/MRZTypes.d.ts +0 -52
  132. package/@types/core/bridge/compiled_schemas_v3/MedicalCertificateTypes.d.ts +0 -306
  133. package/@types/core/bridge/compiled_schemas_v3/OcrElements.d.ts +0 -129
  134. package/@types/core/bridge/compiled_schemas_v3/ParametricFilters.d.ts +0 -186
  135. package/@types/core/bridge/compiled_schemas_v3/PdfConfig.d.ts +0 -197
  136. package/@types/core/bridge/compiled_schemas_v3/TiffTypes.d.ts +0 -183
  137. package/@types/ui2/configuration/BarcodeItem.d.ts +0 -6
  138. package/@types/ui2/configuration/utils.d.ts +0 -6
  139. /package/@types/ui2/views/dialog/{styled-dialog.d.ts → base/styled-dialog.d.ts} +0 -0
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * ConsumeImage describes how a SDK method should handle image data.
3
3
  *
4
- * - `CONSUME_IMAGE` - This will use less memory but the caller can no longer access the image data.
4
+ * - `CONSUME_IMAGE` - This will use less memory but the caller can no longer access the original image data after the call to the SDK function.
5
+ * Internally, the image data is transferred to a web worker, see https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Transferable_objects
5
6
  * - `COPY_IMAGE` - For processing the image, a copy is made. The caller can still access the original image data. This approach uses more memory.
6
7
  */
7
8
  export type ConsumeType = 'CONSUME_IMAGE' | 'COPY_IMAGE';
@@ -4,7 +4,7 @@ export declare class PartiallyConstructible {
4
4
  }
5
5
  export type DeepPartial<T> = T extends PartiallyConstructible ? {
6
6
  [P in keyof T]?: DeepPartial<T[P]>;
7
- } : T;
7
+ } : T extends Array<infer I> ? DeepPartial<I>[] : T;
8
8
  export type RawImage = {
9
9
  width: number;
10
10
  height: number;
@@ -72,11 +72,13 @@ The engine mode for barcode scanning
72
72
  - `NEXT_GEN_LOW_POWER`:
73
73
  A faster version of the main engine mode, for use with low-power devices.
74
74
  - `NEXT_GEN`:
75
- Main engine mode. Supports all barcodes types. Typically produces results faster than NEXT_GEN_LOW_POWER on most devices in live mode.
75
+ Main engine mode for high-power devices. Supports all barcodes types.
76
+ - `NEXT_GEN_LOW_POWER_AR`:
77
+ Similar to NEXT_GEN_LOW_POWER, but optimized for AR.
76
78
  - `NEXT_GEN_AR`:
77
79
  Similar to NEXT_GEN, but optimized for AR.
78
80
  */
79
- export type EngineMode = "LEGACY" | "NEXT_GEN_LOW_POWER" | "NEXT_GEN" | "NEXT_GEN_AR";
81
+ export type EngineMode = "LEGACY" | "NEXT_GEN_LOW_POWER" | "NEXT_GEN" | "NEXT_GEN_LOW_POWER_AR" | "NEXT_GEN_AR";
80
82
  /**
81
83
  Type of barcode document format used.
82
84
 
@@ -145,7 +147,7 @@ export declare class BarcodeRecognizerParameters extends PartiallyConstructible
145
147
  configurators: BarcodeConfig[];
146
148
  /**
147
149
  The engine mode for barcode scanning
148
- @defaultValue "NEXT_GEN";
150
+ @defaultValue "NEXT_GEN_LOW_POWER";
149
151
  */
150
152
  engineMode: EngineMode;
151
153
  /**
@@ -0,0 +1,38 @@
1
+ import { DeepPartial, PartiallyConstructible } from "../common";
2
+ /**
3
+ Enumerates generic document formats.
4
+
5
+ - `DeIdCardFront`:
6
+ DeIdCardFront
7
+ - `DeIdCardBack`:
8
+ DeIdCardBack
9
+ - `DePassport`:
10
+ DePassport
11
+ - `DeDriverLicenseFront`:
12
+ DeDriverLicenseFront
13
+ - `DeDriverLicenseBack`:
14
+ DeDriverLicenseBack
15
+ - `DeResidencePermitFront`:
16
+ DeResidencePermitFront
17
+ - `DeResidencePermitBack`:
18
+ DeResidencePermitBack
19
+ - `EuropeanHealthInsuranceCard`:
20
+ EuropeanHealthInsuranceCard
21
+ - `DeHealthInsuranceCardFront`:
22
+ DeHealthInsuranceCardFront
23
+ */
24
+ export type DocumentType = "DeIdCardFront" | "DeIdCardBack" | "DePassport" | "DeDriverLicenseFront" | "DeDriverLicenseBack" | "DeResidencePermitFront" | "DeResidencePermitBack" | "EuropeanHealthInsuranceCard" | "DeHealthInsuranceCardFront";
25
+ /**
26
+ Lists of generic document formats to decode
27
+ */
28
+ export declare class DocumentTypes extends PartiallyConstructible {
29
+ /** @param source {@displayType `DeepPartial<DocumentTypes>`} */
30
+ constructor(source?: DeepPartial<DocumentTypes>);
31
+ }
32
+ export declare namespace DocumentTypes {
33
+ /**
34
+ List of all generic document formats
35
+ @defaultValue ["DeIdCardFront", "DeIdCardBack", "DePassport", "DeDriverLicenseFront", "DeDriverLicenseBack", "DeResidencePermitFront", "DeResidencePermitBack", "EuropeanHealthInsuranceCard", "DeHealthInsuranceCardFront"];
36
+ */
37
+ const all: DocumentType[];
38
+ }
@@ -69,6 +69,39 @@ from systemic OCR errors, but in practice it still provides good results for mos
69
69
  */
70
70
  export type ValidationStatus = "INVALID" | "NONE" | "CONFIRMED" | "INFERRED" | "VALID" | "IGNORED";
71
71
  /**
72
+ Type of parsing applied to field.
73
+
74
+
75
+ - `ISO_DATE`:
76
+ Field value is parsed as ISO 8601 date in format YYYY-MM-DD.
77
+ - `ISO_COUNTRY_ALPHA_2`:
78
+ Field value is parsed as ISO 3166-1 alpha-2 country code. E.g. "DE" for Germany.
79
+ - `ISO_COUNTRY_ALPHA_3`:
80
+ Field value is parsed as ISO 3166-1 alpha-3 country code. E.g. "DEU" for Germany.
81
+ - `ISO_COUNTRY_NUMERIC`:
82
+ Field value is parsed as ISO 3166-1 numeric country code. E.g. "276" for Germany.
83
+ - `ISO_COUNTRY_NAME`:
84
+ Field value is parsed as ISO 3166-1 country name. E.g. "Germany".
85
+ - `GENDER`:
86
+ Field value is parsed as "Male", "Female".
87
+ */
88
+ export type DataFormat = "ISO_DATE" | "ISO_COUNTRY_ALPHA_2" | "ISO_COUNTRY_ALPHA_3" | "ISO_COUNTRY_NUMERIC" | "ISO_COUNTRY_NAME" | "GENDER";
89
+ /**
90
+ Parsed data
91
+ */
92
+ export declare class ParsedData extends PartiallyConstructible {
93
+ /**
94
+ Parsing type
95
+ */
96
+ readonly type: DataFormat;
97
+ /**
98
+ Parsed value
99
+ */
100
+ readonly value: string;
101
+ /** @param source {@displayType `DeepPartial<ParsedData>`} */
102
+ constructor(source?: DeepPartial<ParsedData>);
103
+ }
104
+ /**
72
105
  Generic Document Type
73
106
  */
74
107
  export declare class FieldType extends PartiallyConstructible {
@@ -127,6 +160,11 @@ export declare class Field extends PartiallyConstructible {
127
160
  @defaultValue "NONE";
128
161
  */
129
162
  readonly validationStatus: ValidationStatus;
163
+ /**
164
+ Parsed data
165
+ @defaultValue [];
166
+ */
167
+ readonly parsedData: ParsedData[];
130
168
  /** @param source {@displayType `DeepPartial<Field>`} */
131
169
  constructor(source?: DeepPartial<Field>);
132
170
  }
@@ -0,0 +1,183 @@
1
+ import { DeepPartial, PartiallyConstructible } from "../common";
2
+ import { DocumentType as GenericDocumentTypesDocumentType } from "./GenericDocumentTypes";
3
+ import { DocumentType as MRZTypesDocumentType } from "./MRZTypes";
4
+ /**
5
+ Base class for all generic document configurations.
6
+ */
7
+ export type GDRConfig = DateValidationConfig | EuropeanHealthInsuranceCardConfig | MRZFallbackConfig | GDRGroupConfig;
8
+ /** @internal */
9
+ export declare namespace GDRConfig {
10
+ /** @internal */
11
+ function From(source: {
12
+ [key: string]: any;
13
+ }): GDRConfig;
14
+ }
15
+ /**
16
+ Date validation configuration.
17
+ This configuration does not enable the scanning of any document types by itself.
18
+ Add to recognizer configuration to require date validation checks for specific document types.
19
+
20
+ */
21
+ export declare class DateValidationConfig extends PartiallyConstructible {
22
+ readonly _type: "DateValidationConfig";
23
+ /**
24
+ Minimum year of birth
25
+ @defaultValue 0;
26
+ */
27
+ readonly minBirthYear: number;
28
+ /**
29
+ Maximum year of birth
30
+ @defaultValue 2999;
31
+ */
32
+ readonly maxBirthYear: number;
33
+ /**
34
+ Minimum card expiration year
35
+ @defaultValue 0;
36
+ */
37
+ readonly minExpirationYear: number;
38
+ /**
39
+ Maximum card expiration year
40
+ @defaultValue 2999;
41
+ */
42
+ readonly maxExpirationYear: number;
43
+ /**
44
+ List of generic document formats for which date validation has to be applied.
45
+ @defaultValue [];
46
+ */
47
+ readonly documentTypes: GenericDocumentTypesDocumentType[];
48
+ /** @param source {@displayType `DeepPartial<DateValidationConfig>`} */
49
+ constructor(source?: DeepPartial<DateValidationConfig>);
50
+ }
51
+ /**
52
+ Health insurance card issuing country
53
+
54
+ - `AUSTRIA`:
55
+ Austria (Validation on the personal identification number is performed as described in "site:www.sozialversicherung.at Was ist die Versicherungsnummer?")
56
+ - `BELGIUM`:
57
+ Belgium
58
+ - `BULGARIA`:
59
+ Bulgaria
60
+ - `CROATIA`:
61
+ Croatia
62
+ - `CYPRUS`:
63
+ Cyprus
64
+ - `CZECH_REPUBLIC`:
65
+ Czech Republic
66
+ - `DENMARK`:
67
+ Denmark
68
+ - `ESTONIA`:
69
+ Estonia
70
+ - `FINLAND`:
71
+ Finland
72
+ - `FRANCE`:
73
+ France
74
+ - `GERMANY`:
75
+ Germany (Validation performed according to "Spezifikation für Musterkarten und Testkarten (eGK, HBA, SMC), Anhang A" and "GS1 Struktur der Kenn-Nummer (ICCSN) der elektronischen Gesundheitskarte")
76
+ - `GREECE`:
77
+ Greece
78
+ - `HUNGARY`:
79
+ Hungary
80
+ - `IRELAND`:
81
+ Ireland
82
+ - `ITALY`:
83
+ Italy
84
+ - `LATVIA`:
85
+ Latvia
86
+ - `LITHUANIA`:
87
+ Lithuania
88
+ - `LUXEMBOURG`:
89
+ Luxembourg
90
+ - `MALTA`:
91
+ Malta
92
+ - `NETHERLANDS`:
93
+ Netherlands
94
+ - `POLAND`:
95
+ Poland
96
+ - `PORTUGAL`:
97
+ Portugal
98
+ - `ROMANIA`:
99
+ Romania
100
+ - `SLOVAKIA`:
101
+ Slovakia
102
+ - `SLOVENIA`:
103
+ Slovenia
104
+ - `SPAIN`:
105
+ Spain
106
+ - `SWEDEN`:
107
+ Sweden
108
+ - `SWITZERLAND`:
109
+ Switzerland
110
+ */
111
+ export type EHICIssuingCountry = "AUSTRIA" | "BELGIUM" | "BULGARIA" | "CROATIA" | "CYPRUS" | "CZECH_REPUBLIC" | "DENMARK" | "ESTONIA" | "FINLAND" | "FRANCE" | "GERMANY" | "GREECE" | "HUNGARY" | "IRELAND" | "ITALY" | "LATVIA" | "LITHUANIA" | "LUXEMBOURG" | "MALTA" | "NETHERLANDS" | "POLAND" | "PORTUGAL" | "ROMANIA" | "SLOVAKIA" | "SLOVENIA" | "SPAIN" | "SWEDEN" | "SWITZERLAND";
112
+ /**
113
+ EHIC configuration. Add to recognizer configuration to scan EHIC.
114
+ */
115
+ export declare class EuropeanHealthInsuranceCardConfig extends PartiallyConstructible {
116
+ readonly _type: "EuropeanHealthInsuranceCardConfig";
117
+ /**
118
+ Minimum year of birth
119
+ @defaultValue 0;
120
+ */
121
+ readonly minBirthYear: number;
122
+ /**
123
+ Maximum year of birth
124
+ @defaultValue 2999;
125
+ */
126
+ readonly maxBirthYear: number;
127
+ /**
128
+ Minimum card expiration year
129
+ @defaultValue 0;
130
+ */
131
+ readonly minExpirationYear: number;
132
+ /**
133
+ Maximum card expiration year
134
+ @defaultValue 2999;
135
+ */
136
+ readonly maxExpirationYear: number;
137
+ /**
138
+ If an expected country is selected, validation rules for the given country are used, a
139
+ and if the expected country cannot be inferred or the inferred country doesn't match the given country,
140
+ the result of recognize() will be IncompleteValidation.
141
+ @defaultValue null;
142
+ */
143
+ readonly expectedCountry: EHICIssuingCountry | null;
144
+ /** @param source {@displayType `DeepPartial<EuropeanHealthInsuranceCardConfig>`} */
145
+ constructor(source?: DeepPartial<EuropeanHealthInsuranceCardConfig>);
146
+ }
147
+ /**
148
+ MRZ fallback configuration.
149
+ This configuration does not enable the scanning of any document types by itself.
150
+ Add to recognizer configuration to enable recognizing the MRZ only, specifically for documents that are otherwise not supported.
151
+ Note that this may enable scanning of documents that were not enabled through the accepted document types.
152
+
153
+ */
154
+ export declare class MRZFallbackConfig extends PartiallyConstructible {
155
+ readonly _type: "MRZFallbackConfig";
156
+ /**
157
+ List of ISO 3166-1 alpha-3 country codes for which MRZ fallback is enabled. (e.g. "DEU" for Germany)
158
+ @defaultValue [];
159
+ */
160
+ readonly acceptedCountries: string[];
161
+ /**
162
+ List of MRZ document formats for which MRZ fallback is enabled.
163
+ @defaultValue [];
164
+ */
165
+ readonly acceptedMRZTypes: MRZTypesDocumentType[];
166
+ /** @param source {@displayType `DeepPartial<MRZFallbackConfig>`} */
167
+ constructor(source?: DeepPartial<MRZFallbackConfig>);
168
+ }
169
+ /**
170
+ Convenience configuration for enabling the scanning of multiple generic document types with a common configuration.
171
+ Add to recognizer configuration to enable the scanning of multiple generic documents.
172
+
173
+ */
174
+ export declare class GDRGroupConfig extends PartiallyConstructible {
175
+ readonly _type: "GDRGroupConfig";
176
+ /**
177
+ List of generic document formats to scan. By default, the list is empty.
178
+ @defaultValue [];
179
+ */
180
+ readonly acceptedDocumentTypes: GenericDocumentTypesDocumentType[];
181
+ /** @param source {@displayType `DeepPartial<GDRGroupConfig>`} */
182
+ constructor(source?: DeepPartial<GDRGroupConfig>);
183
+ }
@@ -1,4 +1,5 @@
1
1
  import { DeepPartial, PartiallyConstructible } from "../common";
2
+ import { GDRConfig } from "./GenericDocumentRecognizerConfigs";
2
3
  import { GenericDocument } from "./GenericDocument";
3
4
  import { Point } from "../common";
4
5
  /**
@@ -83,7 +84,7 @@ export declare class ResultAccumulationConfig extends PartiallyConstructible {
83
84
  /**
84
85
  Configuration for the generic document recognizer
85
86
  */
86
- export declare class GenericDocumentRecognizerConfig extends PartiallyConstructible {
87
+ export declare class GenericDocumentRecognizerParameters extends PartiallyConstructible {
87
88
  /**
88
89
  Configuration for how to accumulate results
89
90
  @defaultValue new ResultAccumulationConfig({});
@@ -95,10 +96,10 @@ export declare class GenericDocumentRecognizerConfig extends PartiallyConstructi
95
96
  */
96
97
  fieldExcludeList: string[];
97
98
  /**
98
- Names of documents that should be recognized
99
- @defaultValue [];
99
+ Options for generic document decoding
100
+ @defaultValue [new GDRGroupConfig({})];
100
101
  */
101
- acceptedDocumentTypes: string[];
102
- /** @param source {@displayType `DeepPartial<GenericDocumentRecognizerConfig>`} */
103
- constructor(source?: DeepPartial<GenericDocumentRecognizerConfig>);
102
+ configurations: GDRConfig[];
103
+ /** @param source {@displayType `DeepPartial<GenericDocumentRecognizerParameters>`} */
104
+ constructor(source?: DeepPartial<GenericDocumentRecognizerParameters>);
104
105
  }
@@ -0,0 +1,38 @@
1
+ import { DeepPartial, PartiallyConstructible } from "../common";
2
+ /**
3
+ Enumerates generic document formats.
4
+
5
+ - `DeIdCardFront`:
6
+ DeIdCardFront
7
+ - `DeIdCardBack`:
8
+ DeIdCardBack
9
+ - `DePassport`:
10
+ DePassport
11
+ - `DeDriverLicenseFront`:
12
+ DeDriverLicenseFront
13
+ - `DeDriverLicenseBack`:
14
+ DeDriverLicenseBack
15
+ - `DeResidencePermitFront`:
16
+ DeResidencePermitFront
17
+ - `DeResidencePermitBack`:
18
+ DeResidencePermitBack
19
+ - `EuropeanHealthInsuranceCard`:
20
+ EuropeanHealthInsuranceCard
21
+ - `DeHealthInsuranceCardFront`:
22
+ DeHealthInsuranceCardFront
23
+ */
24
+ export type DocumentType = "DeIdCardFront" | "DeIdCardBack" | "DePassport" | "DeDriverLicenseFront" | "DeDriverLicenseBack" | "DeResidencePermitFront" | "DeResidencePermitBack" | "EuropeanHealthInsuranceCard" | "DeHealthInsuranceCardFront";
25
+ /**
26
+ Lists of generic document types to decode
27
+ */
28
+ export declare class DocumentTypes extends PartiallyConstructible {
29
+ /** @param source {@displayType `DeepPartial<DocumentTypes>`} */
30
+ constructor(source?: DeepPartial<DocumentTypes>);
31
+ }
32
+ export declare namespace DocumentTypes {
33
+ /**
34
+ List of all generic document types
35
+ @defaultValue ["DeIdCardFront", "DeIdCardBack", "DePassport", "DeDriverLicenseFront", "DeDriverLicenseBack", "DeResidencePermitFront", "DeResidencePermitBack", "EuropeanHealthInsuranceCard", "DeHealthInsuranceCardFront"];
36
+ */
37
+ const all: DocumentType[];
38
+ }
@@ -17,13 +17,15 @@ Preset of parameters for custom binarization filter.
17
17
  - `PRESET_1`:
18
18
  Usually performs well if there is no shadow.
19
19
  - `PRESET_2`:
20
- Usually performs well even if there are shadows.
20
+ Usually performs well even if there are shadows and barcodes.
21
21
  - `PRESET_3`:
22
22
  Usually performs well even if there are shadows.
23
23
  - `PRESET_4`:
24
24
  Usually performs well even if there are shadows.
25
+ - `PRESET_5`:
26
+ Usually performs well even if there are shadows and barcodes.
25
27
  */
26
- export type BinarizationFilterPreset = "PRESET_1" | "PRESET_2" | "PRESET_3" | "PRESET_4";
28
+ export type BinarizationFilterPreset = "PRESET_1" | "PRESET_2" | "PRESET_3" | "PRESET_4" | "PRESET_5";
27
29
  /**
28
30
  Base class for all parametric filters.
29
31
  */