//#region src/api/workflows.ts
function e(e) {
	return {
		getById: (t) => e.get(`/api/v1/workflows/${t.id}`).then((e) => e.data),
		getAll: (t) => e.get("/api/v1/workflows", { params: t }).then((e) => e.data),
		create: (t) => e.post("/api/v1/workflows", t.workflowCreateDto).then((e) => e.data),
		update: (t) => e.put(`/api/v1/workflows/${t.id}`, t.workflowUpdateDto).then((e) => e.data),
		delete: (t) => e.delete(`/api/v1/workflows/id/${t.id}`).then((e) => e.data),
		batchDelete: (t) => e.delete("/api/v1/workflows/batch", { data: { ids: t.ids } }).then((e) => e.data),
		getFileTree: (t) => e.get(`/api/v1/files/workflows/${t.workflowId}`).then((e) => e.data),
		getFileContent: (t) => e.get(`/api/v1/files/workflows/${t.workflowId}/${t.filePath}`).then((e) => e.data),
		getCheckpoints: (t) => e.get(`/api/v1/workflows/${t.id}/checkpoints`).then((e) => e.data)
	};
}
//#endregion
export { e as createWorkflowsApi };
