diff --git a/openapi.json b/openapi.json index 7fc2035..582168a 100644 --- a/openapi.json +++ b/openapi.json @@ -1408,6 +1408,18 @@ "title": "Job", "type": "string" }, + "outputs": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Outputs" + }, "progress": { "anyOf": [ { @@ -3875,6 +3887,16 @@ "title": "Run Id", "type": "string" } + }, + { + "in": "query", + "name": "outputs", + "required": false, + "schema": { + "default": false, + "title": "Outputs", + "type": "boolean" + } } ], "responses": { diff --git a/src/app/api/fn/runs/run-status.ts b/src/app/api/fn/runs/run-status.ts index 3fad0d4..30f1b81 100644 --- a/src/app/api/fn/runs/run-status.ts +++ b/src/app/api/fn/runs/run-status.ts @@ -11,12 +11,14 @@ import { Run } from '../../models/run'; export interface RunStatus$Params { run_id: string; + outputs?: boolean; } export function runStatus(http: HttpClient, rootUrl: string, params: RunStatus$Params, context?: HttpContext): Observable> { const rb = new RequestBuilder(rootUrl, runStatus.PATH, 'get'); if (params) { rb.path('run_id', params.run_id, {}); + rb.query('outputs', params.outputs, {}); } return http.request( diff --git a/src/app/api/models/run.ts b/src/app/api/models/run.ts index 122c66b..a1096c9 100644 --- a/src/app/api/models/run.ts +++ b/src/app/api/models/run.ts @@ -10,6 +10,9 @@ export interface Run { id: string; info: Array; job: string; + outputs?: ({ +[key: string]: any; +} | null); progress: (Progress | null); started: (number | null); state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';