Rename WorkflowInvocationDetails interface to WorkflowInvocation

This commit is contained in:
davelopez
2023-12-18 12:37:14 +01:00
parent 98f99c0a22
commit 80f82dc65e
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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<ApiResponse<WorkflowInvocationDetails>> {
export async function fetchInvocationDetails(params: { id: string }): Promise<ApiResponse<WorkflowInvocation>> {
const { data } = await axios.get(`${getAppRoot()}api/invocations/${params.id}`);
return {
data,
} as ApiResponse<WorkflowInvocationDetails>;
} as ApiResponse<WorkflowInvocation>;
}
export async function fetchInvocationJobsSummary(params: {
+2 -2
View File
@@ -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<WorkflowInvocationDetails>(fetchInvocationDetails);
useKeyedCache<WorkflowInvocation>(fetchInvocationDetails);
const { getItemById: getInvocationJobsSummaryById, fetchItemById: fetchInvocationJobsSummaryForId } =
useKeyedCache<WorkflowInvocationJobsSummary>(fetchInvocationJobsSummary);