@docmana/sdk 0.40.1 → 0.42.0
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/CHANGELOG.md +8 -0
- package/README.md +10 -0
- package/dist/api/run-flow.d.ts +2 -1
- package/dist/cli.mjs +11 -14
- package/dist/cli.mjs.map +1 -1
- package/dist/files/resolve-input.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -14
- package/dist/index.mjs.map +1 -1
- package/dist/models/docmana-document-result.model.d.ts +6 -0
- package/dist/types.d.ts +7 -3
- package/package.json +1 -1
|
@@ -3,10 +3,16 @@ import { DocmanaMetadataExtractionResult } from "./docmana-metadata-extraction-r
|
|
|
3
3
|
import { DocmanaExtractionResult } from "./docmana-extraction-result.model.js";
|
|
4
4
|
import { DocmanaValidationResult } from "./docmana-validation-result.model.js";
|
|
5
5
|
import { DocmanaPreprocessingResult } from "./docmana-preprocessing-result.model.js";
|
|
6
|
+
import type { DocmanaScoreNodeResult } from "./docmana-score-node-result.model.js";
|
|
7
|
+
export interface DocmanaReceivabilityResult extends DocmanaScoreNodeResult {
|
|
8
|
+
scoreAcceptanceThreshold?: number;
|
|
9
|
+
scoreDescription?: string;
|
|
10
|
+
}
|
|
6
11
|
export interface DocmanaDocumentResult {
|
|
7
12
|
status: string;
|
|
8
13
|
preprocessing?: Record<string, DocmanaPreprocessingResult>;
|
|
9
14
|
classifications?: Record<string, DocmanaClassificationResult>;
|
|
15
|
+
receivabilities?: Record<string, DocmanaReceivabilityResult>;
|
|
10
16
|
metadataExtraction?: DocmanaMetadataExtractionResult;
|
|
11
17
|
extractions?: Record<string, DocmanaExtractionResult>;
|
|
12
18
|
validations?: Record<string, DocmanaValidationResult>;
|
package/dist/types.d.ts
CHANGED
|
@@ -33,7 +33,9 @@ export interface NamedFileInput {
|
|
|
33
33
|
}
|
|
34
34
|
export type FileInput = string | PathFileInput | NamedFileInput;
|
|
35
35
|
export interface RunFlowParams {
|
|
36
|
-
files
|
|
36
|
+
files?: FileInput[];
|
|
37
|
+
/** Inline document text, one string per document. Supply files, documentData, or both. */
|
|
38
|
+
documentData?: readonly string[];
|
|
37
39
|
useDraftVersion?: boolean;
|
|
38
40
|
language?: string;
|
|
39
41
|
context?: Record<string, unknown>;
|
|
@@ -178,7 +180,9 @@ export interface RunFlowAsyncParams extends RunFlowParams {
|
|
|
178
180
|
callbackUrl?: string;
|
|
179
181
|
}
|
|
180
182
|
export interface RunPartialFlowParams {
|
|
181
|
-
files
|
|
183
|
+
files?: FileInput[];
|
|
184
|
+
/** Inline document text, one string per document. Supply files, documentData, or both. */
|
|
185
|
+
documentData?: readonly string[];
|
|
182
186
|
executionScope: PartialExecutionScope;
|
|
183
187
|
flowVersion?: PartialExecutionFlowVersion;
|
|
184
188
|
classificationNodeNames?: string[];
|
|
@@ -270,7 +274,7 @@ export type { DocmanaExecutionResult } from "./models/docmana-execution-result.m
|
|
|
270
274
|
export type { DocmanaExecutionVerdict } from "./models/docmana-api-execution-result.model.js";
|
|
271
275
|
export type { DocmanaDocumentMapping } from "./models/docmana-document-mapping.model.js";
|
|
272
276
|
export type { DocmanaSourceDocument } from "./models/docmana-source-document.model.js";
|
|
273
|
-
export type { DocmanaDocumentResult } from "./models/docmana-document-result.model.js";
|
|
277
|
+
export type { DocmanaDocumentResult, DocmanaReceivabilityResult, } from "./models/docmana-document-result.model.js";
|
|
274
278
|
export type { DocmanaNodeResult } from "./models/docmana-node-result.model.js";
|
|
275
279
|
export type { DocmanaScoreNodeResult } from "./models/docmana-score-node-result.model.js";
|
|
276
280
|
export type { DocmanaCrossValidationResult } from "./models/docmana-cross-validation-result.model.js";
|