digicust_types 1.8.279 → 1.8.281
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/models/digicust/documents/document-page.model.d.ts +14 -0
- package/lib/models/digicust/documents/document-page.model.js +2 -0
- package/lib/models/digicust/documents/document-types/digicust-document.model.d.ts +2 -10
- package/lib/models/digicust/execution-strategy/execution-strategy.model.d.ts +10 -2
- package/package.json +1 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
import { DigicustDocumentType } from "./digicust-document-type.enum";
|
2
|
+
/**
|
3
|
+
* Page of a document
|
4
|
+
*/
|
5
|
+
export interface DocumentPage {
|
6
|
+
pageNumber?: number;
|
7
|
+
classification?: DigicustDocumentType;
|
8
|
+
classificationReasoning?: string;
|
9
|
+
documentNumber?: string;
|
10
|
+
pngURL?: string;
|
11
|
+
ocrURL?: string;
|
12
|
+
width?: number;
|
13
|
+
height?: number;
|
14
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DigicustDocumentType, DocumentCode, DocumentStatus, UserDocumentStatus, SubDocumentStatus, ClassificationStatus } from "..";
|
2
2
|
import { ProcessingModel, DateTimeModel, AnalyzerMetadataModel, UploadedFileModel, Meta } from "../..";
|
3
|
-
import {
|
3
|
+
import { DocumentPage } from "../document-page.model";
|
4
4
|
/**
|
5
5
|
* Base model for different types of documents (e.g. waybills, invoices, ...)
|
6
6
|
*/
|
@@ -36,14 +36,6 @@ export interface DigicustDocumentModel {
|
|
36
36
|
};
|
37
37
|
uploadedFiles?: Array<UploadedFileModel>;
|
38
38
|
sourceMaterialId?: string;
|
39
|
-
|
40
|
-
* @deprecated
|
41
|
-
*/
|
42
|
-
rossumMetadata?: {
|
43
|
-
importStatus?: RossumImportStatus;
|
44
|
-
annotationId?: string;
|
45
|
-
queueId?: number;
|
46
|
-
exportOnConfirmed?: boolean;
|
47
|
-
};
|
39
|
+
pages?: DocumentPage[];
|
48
40
|
}
|
49
41
|
export declare const condenseDocument: (document?: DigicustDocumentModel) => DigicustDocumentModel;
|
@@ -41,9 +41,17 @@ export interface ExecutionStrategy {
|
|
41
41
|
defaultProcedureMode?: ProcedureMode;
|
42
42
|
dataExtraction?: {
|
43
43
|
active?: boolean;
|
44
|
-
engine?: "default" | "dexter_experimental";
|
44
|
+
engine?: "default" | "dexter_experimental" | "llm";
|
45
|
+
llmOptions?: {
|
46
|
+
classificationRemarks?: string;
|
47
|
+
extractionRemarks?: {
|
48
|
+
documentType?: DigicustDocumentType | null;
|
49
|
+
sendToFallbackEngine?: boolean;
|
50
|
+
remarks?: string;
|
51
|
+
}[];
|
52
|
+
};
|
45
53
|
/**
|
46
|
-
*
|
54
|
+
* Whether to classify using dexter classification or let user manually classify
|
47
55
|
*/
|
48
56
|
classifyUsingDexter?: boolean;
|
49
57
|
engineSpecification?: string;
|