shoc-backend/SeaHaven.DataServices/Interfaces/ISyncDataService.cs

26 lines
1.4 KiB
C#
Raw Normal View History

using Data.SeaHavenIndustries;
namespace SeaHaven.DataServices.Interfaces
{
public interface ISyncDataService
{
Task<string?> GetLastInternalWONumberAsync(CancellationToken cancellationToken);
Task<WorkOrder?> GetWorkOrderByExternalIdAsync(string externalId, CancellationToken cancellationToken);
void EnqueueWorkOrder(WorkOrder workOrder);
void EnqueueComment(Comments comment);
Task SaveChangesAsync(CancellationToken cancellationToken);
Task<int?> ResolveLocationAsync(string? siteCode, string? building, string? address, CancellationToken cancellationToken);
Task<int> GetLocationCountAsync(CancellationToken cancellationToken);
Task<bool> CommentExistsByExternalIdAsync(string externalId, CancellationToken cancellationToken);
Task<WorkOrder?> GetWorkOrderByInternalNumberAsync(string internalNumber, CancellationToken cancellationToken);
Task<Dispatch?> GetDispatchByNumberAndWorkOrderIdAsync(string dispatchNumber, int workOrderId, CancellationToken cancellationToken);
Task<List<WorkOrder>> GetWorkOrdersMissingInternalNumberAsync(CancellationToken cancellationToken);
Task<List<Dispatch>> GetDispatchesMissingNumberAsync(CancellationToken cancellationToken);
Task<int> ExecuteBackfillCommentTypesAsync(CancellationToken cancellationToken);
Task<string?> GetLastDispatchNumberAsync(CancellationToken cancellationToken);
}
}