@docmana/sdk 0.14.0 → 0.15.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
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
# Changelog
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.15.0
|
|
4
|
+
- Expose `rejectionCode`, `rejectionMessage`, `documentTypeProximity`, and
|
|
5
|
+
`documentContentNature` as optional system fields on node results instead of
|
|
6
|
+
including them in user-defined `data`.
|
|
2
7
|
|
|
3
8
|
## 0.14.0
|
|
4
9
|
- Add the optional human-readable `label` to every mapped node result while
|
|
5
|
-
preserving the stable node name as the record key.
|
|
6
|
-
- Preserve the `REJECTED` status returned by classification nodes and expose it
|
|
7
|
-
in the public `ExecutionStatus` contract.
|
|
10
|
+
preserving the stable node name as the record key.
|
|
11
|
+
- Preserve the `REJECTED` status returned by classification nodes and expose it
|
|
12
|
+
in the public `ExecutionStatus` contract.
|
|
8
13
|
- Add document-level `preprocessing` results, including generated steps such as
|
|
9
14
|
`Document Extraction`, correlated to their document by `doc_key`.
|
|
10
|
-
|
|
11
|
-
## 0.13.0
|
|
15
|
+
|
|
16
|
+
## 0.13.0
|
|
12
17
|
- Add normalized execution metrics to `DocmanaExecutionResult`:
|
|
13
18
|
`flowId`, `totalDocuments`, `totalPages`, `totalTokens`, `totalMana`, and
|
|
14
19
|
`totalRunningTime`.
|
|
@@ -2,6 +2,14 @@ export interface DocmanaNodeResult {
|
|
|
2
2
|
status: string;
|
|
3
3
|
/** Human-readable name configured for this processing step. */
|
|
4
4
|
label?: string;
|
|
5
|
+
/** Machine-readable code identifying why this document was rejected. */
|
|
6
|
+
rejectionCode?: string;
|
|
7
|
+
/** Human-readable explanation of why this document was rejected. */
|
|
8
|
+
rejectionMessage?: string;
|
|
9
|
+
/** How closely the submitted content matches the expected document type. */
|
|
10
|
+
documentTypeProximity?: string;
|
|
11
|
+
/** High-level description of the submitted document's content. */
|
|
12
|
+
documentContentNature?: string;
|
|
5
13
|
runningTime?: number;
|
|
6
14
|
mana?: number;
|
|
7
15
|
errors?: string[];
|