scanbot-web-sdk 8.0.0-beta.4 → 8.0.0-beta.5
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/index.d.ts +1 -1
- package/@types/service/storage/indexed-db/sb-indexed-db.d.ts +3 -3
- package/@types/service/storage/sb-storage.d.ts +7 -7
- package/bundle/ScanbotSDK.min.js +3 -3
- package/bundle/ScanbotSDK.ui2.min.js +7 -7
- 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 +1 -1
package/@types/index.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ export { BrowserCameras, CameraDetectionStrategy, DiscoverCameraMode } from './u
|
|
|
86
86
|
export { DocumentScannerUIResult } from "./ui2/configuration/DocumentScannerUIResult";
|
|
87
87
|
|
|
88
88
|
/** Storage-related exports */
|
|
89
|
-
export { SBStorage,
|
|
89
|
+
export { SBStorage, SBStoreDocumentScannerResponse } from "./service/storage/sb-storage";
|
|
90
90
|
export { SBStorageUtils, } from "./service/storage/utils/sb-storage-utils";
|
|
91
91
|
export { SBStoreImage, SBStorePageImage, SBStoreImageType, SBStorageQuery, SBStoreBuffer } from "./service/storage/indexed-db/sb-indexed-db";
|
|
92
92
|
export { SBDocument } from "./ui2/document/model/sb-document";
|
|
@@ -21,12 +21,12 @@ export type SBStorageQuery = {
|
|
|
21
21
|
} | {
|
|
22
22
|
type: "delete";
|
|
23
23
|
} | {
|
|
24
|
-
type: "
|
|
24
|
+
type: "storeDocumentScannerResponse";
|
|
25
25
|
data: DocumentScannerScanResponse;
|
|
26
26
|
} | {
|
|
27
|
-
type: "
|
|
27
|
+
type: "getDocumentScannerResponses";
|
|
28
28
|
} | {
|
|
29
|
-
type: "
|
|
29
|
+
type: "getDocumentScannerResponse";
|
|
30
30
|
data: number;
|
|
31
31
|
} | {
|
|
32
32
|
type: "storeImages";
|
|
@@ -5,7 +5,7 @@ import { SBPage } from "../../ui2/document/model/sb-page";
|
|
|
5
5
|
import { SBPageData } from "../../ui2/document/model/utils/sb-page-data";
|
|
6
6
|
import { SBDocumentData } from "../../ui2/document/model/utils/sb-document-data";
|
|
7
7
|
import { SBStorageUtils } from "./utils/sb-storage-utils";
|
|
8
|
-
export interface
|
|
8
|
+
export interface SBStoreDocumentScannerResponse extends DocumentScannerScanResponse {
|
|
9
9
|
id: number;
|
|
10
10
|
}
|
|
11
11
|
export declare class SBStorage {
|
|
@@ -20,17 +20,17 @@ export declare class SBStorage {
|
|
|
20
20
|
* Clears all data from storage. Does not retain the database, clearing indexes.
|
|
21
21
|
* */
|
|
22
22
|
delete(): Promise<void>;
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
getDocumentScannerResponses(withImages?: boolean): Promise<SBStoreDocumentScannerResponse[]>;
|
|
24
|
+
getDocumentScannerResponse(id: number): Promise<SBStoreDocumentScannerResponse>;
|
|
25
25
|
private mapImages;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
getDocumentScannerResponseImages(documentIds: number[]): Promise<SBStoreImage[]>;
|
|
27
|
+
getDocumentScannerResponseImage(documentId: number): Promise<SBStoreImage[]>;
|
|
28
28
|
/**
|
|
29
29
|
* Store a document in storage. Returns the auto-incremented ID of the stored document.
|
|
30
30
|
* Please be aware that document images are stored separately,
|
|
31
|
-
* image properties of '
|
|
31
|
+
* image properties of 'CroppedDetectionResult' are nullified and the images are stored in a separate table.
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
storeDocumentScannerResponse(input: DocumentScannerScanResponse | SBStoreDocumentScannerResponse): Promise<number>;
|
|
34
34
|
getSBDocumentIds(): Promise<number[]>;
|
|
35
35
|
getSBDocumentData(id: number): Promise<SBDocumentData>;
|
|
36
36
|
/** @internal */
|