mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-16 07:19:13 +08:00
Rename WorkflowInvocationDetails interface to WorkflowInvocation
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user