diff --git a/client/src/api/invocations.ts b/client/src/api/invocations.ts index 75cf94a1455..50b6eace155 100644 --- a/client/src/api/invocations.ts +++ b/client/src/api/invocations.ts @@ -5,7 +5,7 @@ import { getAppRoot } from "@/onload"; import { ApiResponse } from "./schema"; // TODO: Replace these interfaces with real schema models after https://github.com/galaxyproject/galaxy/pull/16707 is merged -export interface WorkflowInvocationDetails { +export interface WorkflowInvocation { id: string; } @@ -18,11 +18,11 @@ export interface WorkflowInvocationStep { } // TODO: Replace these provisional functions with fetchers after https://github.com/galaxyproject/galaxy/pull/16707 is merged -export async function fetchInvocationDetails(params: { id: string }): Promise> { +export async function fetchInvocationDetails(params: { id: string }): Promise> { const { data } = await axios.get(`${getAppRoot()}api/invocations/${params.id}`); return { data, - } as ApiResponse; + } as ApiResponse; } export async function fetchInvocationJobsSummary(params: { diff --git a/client/src/stores/invocationStore.ts b/client/src/stores/invocationStore.ts index 2726781ade2..ceac2109f45 100644 --- a/client/src/stores/invocationStore.ts +++ b/client/src/stores/invocationStore.ts @@ -4,7 +4,7 @@ import { fetchInvocationDetails, fetchInvocationJobsSummary, fetchInvocationStep, - type WorkflowInvocationDetails, + type WorkflowInvocation, type WorkflowInvocationJobsSummary, type WorkflowInvocationStep, } from "@/api/invocations"; @@ -12,7 +12,7 @@ import { useKeyedCache } from "@/composables/keyedCache"; export const useInvocationStore = defineStore("invocationStore", () => { const { getItemById: getInvocationById, fetchItemById: fetchInvocationForId } = - useKeyedCache(fetchInvocationDetails); + useKeyedCache(fetchInvocationDetails); const { getItemById: getInvocationJobsSummaryById, fetchItemById: fetchInvocationJobsSummaryForId } = useKeyedCache(fetchInvocationJobsSummary);