shoc-backend/SeaHaven.DataServices/Interfaces/IWorkOrderBoardDataService.cs
Arthur Bassi 2e56ec7678 fix(work-orders): keep location account server-owned and forward create cancellation
Stop client writes from changing Locations.AccountId, make the SH-221 migration discoverable, and thread the board-create CancellationToken through lookup and persistence.
2026-08-26 10:00:02 -03:00

20 lines
749 B
C#

using SeaHaven.DataServices.Interfaces;
namespace SeaHaven.DataServices.Interfaces
{
public interface IWorkOrderBoardDataService
{
Task<WorkOrderBoardQueryResult> GetBoardRowsAsync(
WorkOrderBoardQuery query,
CancellationToken cancellationToken = default);
Task<IReadOnlyList<DispatcherLookupRow>> GetDispatcherLookupsAsync();
Task<WorkOrderBoardRawRow?> GetBoardRowByIdAsync(
int workOrderId,
int? accountId = null,
CancellationToken cancellationToken = default);
Task<bool> InternalWoNumberExistsAsync(
string normalizedWoNumber,
int excludeWorkOrderId,
CancellationToken cancellationToken = default);
}
}