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.
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 { RossumImportStatus } from "../../..";
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
- * Weather to classify using dexter classification or let user manually classify
54
+ * Whether to classify using dexter classification or let user manually classify
47
55
  */
48
56
  classifyUsingDexter?: boolean;
49
57
  engineSpecification?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.8.279",
3
+ "version": "1.8.281",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",