From 208739708793e53af7c08948a898ffb21b4a18c7 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 27 Aug 2024 17:32:57 +0200 Subject: [PATCH] Use canonical invocation message type from openapi schema --- client/src/api/invocations.ts | 1 + .../InvocationMessage.vue | 5 +- .../invocationMessageModel.ts | 250 ------------------ 3 files changed, 3 insertions(+), 253 deletions(-) delete mode 100644 client/src/components/WorkflowInvocationState/invocationMessageModel.ts diff --git a/client/src/api/invocations.ts b/client/src/api/invocations.ts index 2196f9a9254e..00817980ab40 100644 --- a/client/src/api/invocations.ts +++ b/client/src/api/invocations.ts @@ -8,6 +8,7 @@ export type WorkflowInvocationElementView = components["schemas"]["WorkflowInvoc export type WorkflowInvocationCollectionView = components["schemas"]["WorkflowInvocationCollectionView"]; export type InvocationJobsSummary = components["schemas"]["InvocationJobsResponse"]; export type InvocationStep = components["schemas"]["InvocationStep"]; +export type InvocationMessage = components["schemas"]["WorkflowInvocationElementView"]["messages"][0]; export type StepJobSummary = | components["schemas"]["InvocationStepJobsResponseStepModel"] diff --git a/client/src/components/WorkflowInvocationState/InvocationMessage.vue b/client/src/components/WorkflowInvocationState/InvocationMessage.vue index 7c1561576f39..ffea05f86e19 100644 --- a/client/src/components/WorkflowInvocationState/InvocationMessage.vue +++ b/client/src/components/WorkflowInvocationState/InvocationMessage.vue @@ -1,10 +1,9 @@