This commit is contained in:
Zeeshaun
2026-03-24 15:26:03 -05:00
parent 1e5beb292a
commit 9cc87337b8
333 changed files with 17931 additions and 0 deletions
@@ -0,0 +1,18 @@
using System.Collections.Generic;
namespace LCU.Api.Internal.Dispatcher.Services;
public interface IWorkItemService
{
Task<WorkItem> GetByIdAsync(int workItemId);
Task<IEnumerable<WorkItem>> GetByJobIdAsync(int jobId);
Task<IEnumerable<WorkItem>> GetByJobIdWithExecutionsAsync(int jobId);
Task<WorkItem> GetFirstOrDefaultWorkItemByJobId(int jobId);
Task<WorkItem> GetNextWorkItemByJobId(int jobId, int currentWorkItemOrder);
void SaveList(ICollection<WorkItem> workItems);
Task<ICollection<WorkItem>> PopulateActionFieldsAndUpdateList(ICollection<WorkItem> workItems);
Task<WorkItem> ResetCanceledJobCounter(WorkItem workItem);
Task<WorkItem> IncreaseCanceledJobCounter(WorkItem workItem);
Task<WorkItem> UpdateAsync(WorkItem workItem);
Task DeleteList(ICollection<WorkItem> workItems);
WorkItem PopulateActionFields(WorkItem workItem);
}