@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/dist/index.d.ts CHANGED
@@ -10,4 +10,4 @@ export type { ExecutionProgress, VirtualDocument, PhysicalDocument, DocumentCont
10
10
  export { Reviews } from "./reviews.js";
11
11
  export { ExecutionEvents, EXECUTION_NODE_EVENT_TYPES, parseExecutionEventCallback, verifyExecutionEventCallback, } from "./execution-events.js";
12
12
  export type { ExecutionNodeEvent, ExecutionEventCallback, ExecutionEventsPage, } from "./execution-events.js";
13
- export type { ReviewCalculation, ReviewFlowOutline, ReviewItem, DocumentPreviewManifest, ReviewDocument, ReviewAssessment, ReviewFinding, ReviewTask, ReviewSummary, ReviewDecision, ReviewReadOptions, ReviewDocumentOptions, } from "./reviews.js";
13
+ export type { ReviewCalculation, ReviewFlowOutline, ReviewItem, DocumentPreviewManifest, ReviewDocument, ReviewAssessment, ReviewFinding, ReviewTask, ReviewStep, ReviewSummary, ReviewDecision, ReviewReadOptions, ReviewDocumentOptions, } from "./reviews.js";
package/dist/index.js CHANGED
@@ -250,6 +250,11 @@ var Reviews = class {
250
250
  return this.http.requestJson("GET", `/executions/${segment(executionId)}/review`, {
251
251
  signal: options.signal,
252
252
  query: { organization: options.organization }
253
+ }).then((task) => {
254
+ if (typeof task?.status === "string" && task.status !== "pending" && task.documents === void 0) {
255
+ return { ...task, documents: [] };
256
+ }
257
+ return task;
253
258
  });
254
259
  }
255
260
  decide(executionId, decision, options) {