@docmana/sdk 0.36.0 → 0.37.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 +13 -0
- package/dist/cli.mjs +5 -0
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/dist/reviews.d.ts +18 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.37.0 - 2026-11-05
|
|
4
|
+
|
|
5
|
+
- Support upstream field and classification corrections through the existing `continue` decision.
|
|
6
|
+
The backend recalculates dependent steps and selects the next checkpoint.
|
|
7
|
+
- Type correction provenance (`origin`, `originalValue`), document downstream steps, and
|
|
8
|
+
dossier context and results. `reviews.get()` returns an empty `documents` array when a
|
|
9
|
+
decided review's held data has been released.
|
|
10
|
+
|
|
3
11
|
## 0.36.0 - 2026-10-30
|
|
4
12
|
|
|
5
13
|
- Promote the additive review and execution-event client APIs to a stable release.
|
package/README.md
CHANGED
|
@@ -532,6 +532,19 @@ progress belongs to the execution. `ReviewDecision` also supports `confirmations
|
|
|
532
532
|
per-correction `reason`, and `durationSeconds`. Conflict details identify an already
|
|
533
533
|
submitted decision or the current version; no decision is retried automatically.
|
|
534
534
|
|
|
535
|
+
To correct an upstream result, read the current task and select the `itemId`
|
|
536
|
+
of a field or classification in `documents[].context`. Submit
|
|
537
|
+
`decision: "continue"` with the current review version and
|
|
538
|
+
`corrections: [{ itemId, value }]`. Confirmations name current `items` only.
|
|
539
|
+
DocMana API validates eligibility, recalculates dependent steps and selects the
|
|
540
|
+
next checkpoint. After the accepted response, read the current task again.
|
|
541
|
+
|
|
542
|
+
`documents[].downstream` and `dossierResults` expose read-only calculated steps.
|
|
543
|
+
`dossierContext` carries the captured JSON context. `origin` and `originalValue`
|
|
544
|
+
describe applied human changes. These fields are optional for older backends.
|
|
545
|
+
When the backend releases a decided task's held data, `reviews.get()` returns
|
|
546
|
+
`documents: []` with the remaining task metadata.
|
|
547
|
+
|
|
535
548
|
Read calculation metadata repeatedly with
|
|
536
549
|
`client.reviews.calculation(executionId, { organization })`. It returns
|
|
537
550
|
`executionResultId`, normalized `executionStatus` and `calculation` (null for
|
package/dist/cli.mjs
CHANGED
|
@@ -211,6 +211,11 @@ var Reviews = class {
|
|
|
211
211
|
return this.http.requestJson("GET", `/executions/${segment(executionId)}/review`, {
|
|
212
212
|
signal: options.signal,
|
|
213
213
|
query: { organization: options.organization }
|
|
214
|
+
}).then((task) => {
|
|
215
|
+
if (typeof task?.status === "string" && task.status !== "pending" && task.documents === void 0) {
|
|
216
|
+
return { ...task, documents: [] };
|
|
217
|
+
}
|
|
218
|
+
return task;
|
|
214
219
|
});
|
|
215
220
|
}
|
|
216
221
|
decide(executionId, decision, options) {
|