2026-05-14 11:00:12 -05:00
|
|
|
using Data.SeaHavenIndustries;
|
|
|
|
|
|
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface ICommentDataService
|
|
|
|
|
{
|
|
|
|
|
Task<Comments?> GetByIdAsync(int id);
|
|
|
|
|
Task<IEnumerable<Comments>> GetAllAsync();
|
2026-08-11 15:18:29 -03:00
|
|
|
/// <summary>
|
|
|
|
|
/// Comments linked to non-deleted, non-template work orders.
|
|
|
|
|
/// When <paramref name="accountId"/> is set, only that account's WOs; null = org-wide.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Task<IEnumerable<Comments>> GetAllForAccountAsync(int? accountId);
|
2026-05-14 11:00:12 -05:00
|
|
|
Task<IEnumerable<Comments>> GetByWorkOrderIdAsync(int workOrderId);
|
|
|
|
|
Task<IEnumerable<Comments>> GetByDispatchIdAsync(int dispatchId);
|
|
|
|
|
Task<Comments> AddAsync(Comments comment);
|
|
|
|
|
Task UpdateAsync(Comments comment);
|
|
|
|
|
Task DeleteAsync(int id);
|
|
|
|
|
Task<bool> ExistsAsync(int id);
|
2026-07-24 17:35:34 -03:00
|
|
|
Task StageAsync(Comments comment, CancellationToken cancellationToken);
|
|
|
|
|
Task<IReadOnlyList<PortalCommentData>> GetVendorViewableForDispatchAsync(int dispatchId, CancellationToken cancellationToken);
|
2026-05-14 11:00:12 -05:00
|
|
|
}
|
|
|
|
|
}
|