@attlaz/client 1.78.0 → 1.79.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.
|
@@ -10,6 +10,13 @@ export declare class FlowRunEndpoint extends Endpoint {
|
|
|
10
10
|
getFlowRuns(flowId: string): Promise<CollectionResult<FlowRun>>;
|
|
11
11
|
getFlowRunSummaries(flowId: string, flowRunStatuses?: FlowRunStatus[] | null, pagination?: CursorPagination | null, projectEnvironmentId?: string | null): Promise<CollectionResult<FlowRunSummary>>;
|
|
12
12
|
getFlowRunSummary(flowRunId: string): Promise<FlowRunSummary | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Fetch a single flow run by id, including its `arguments` and `logStreamId`. Uses the same
|
|
15
|
+
* endpoint as {@link getFlowRunSummary} but parses the full {@link FlowRun} (the summary model
|
|
16
|
+
* only carries execution stats). Used by the flow-run runtime to resolve the real arguments
|
|
17
|
+
* and the log stream to write to.
|
|
18
|
+
*/
|
|
19
|
+
getFlowRun(flowRunId: string): Promise<FlowRun | null>;
|
|
13
20
|
getFlowRunHistory(flowRunId: string): Promise<CollectionResult<FlowRunHistory>>;
|
|
14
21
|
/**
|
|
15
22
|
* Authoritative lifecycle (status derived from history, first-terminal-wins). Prefer this over
|
|
@@ -59,6 +59,24 @@ export class FlowRunEndpoint extends Endpoint {
|
|
|
59
59
|
throw error;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Fetch a single flow run by id, including its `arguments` and `logStreamId`. Uses the same
|
|
64
|
+
* endpoint as {@link getFlowRunSummary} but parses the full {@link FlowRun} (the summary model
|
|
65
|
+
* only carries execution stats). Used by the flow-run runtime to resolve the real arguments
|
|
66
|
+
* and the log stream to write to.
|
|
67
|
+
*/
|
|
68
|
+
async getFlowRun(flowRunId) {
|
|
69
|
+
try {
|
|
70
|
+
const result = await this.requestObject('/flowruns/' + flowRunId + '/summaries', null, FlowRun.parse);
|
|
71
|
+
return result.getData();
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
if (this.httpClient.isDebugEnabled()) {
|
|
75
|
+
console.error('Failed to load flow run: ' + error);
|
|
76
|
+
}
|
|
77
|
+
throw error;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
62
80
|
async getFlowRunHistory(flowRunId) {
|
|
63
81
|
const result = await this.requestCollection('/flowruns/' + flowRunId + '/history', FlowRunHistory.parse);
|
|
64
82
|
return result;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.79.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.79.0";
|