FlowAPI / FlowAPI.Application /Interfaces /ITaskNodeService.cs
danylokhodus's picture
feat: optimize canvas load and save using lazy loading and delta upserts
1b321bd
Raw
History Blame Contribute Delete
518 Bytes
using FlowAPI.Application.DTOs.TaskNode;
namespace FlowAPI.Application.Interfaces
{
public interface ITaskNodeService
{
Task<IEnumerable<TaskNodeResponseDto>> GetAllByGraphIdAsync(Guid graphId);
Task<TaskNodeResponseDto?> GetByIdAsync(Guid id);
Task<TaskNodeResponseDto> CreateAsync(CreateTaskNodeDto dto);
Task<TaskNodeResponseDto?> UpdateAsync(Guid id, UpdateTaskNodeDto dto);
Task<bool> DeleteAsync(Guid id);
Task<string?> GetNodeDataAsync(Guid id);
}
}