mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 09:33:13 +00:00
29 lines
1 KiB
C#
29 lines
1 KiB
C#
|
|
using Data.SeaHavenIndustries;
|
||
|
|
|
||
|
|
namespace SeaHaven.DataServices.Interfaces
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// SH-379: data access for the work-order-level POC override.
|
||
|
|
/// </summary>
|
||
|
|
public interface IWorkOrderPocDataService
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// SH-221 account-scoped tracked load for POC updates. Includes the site's
|
||
|
|
/// contacts and the linked WorkOrderContacts POC. Null when the work order
|
||
|
|
/// does not exist or is outside the caller's account scope.
|
||
|
|
/// </summary>
|
||
|
|
Task<WorkOrder?> GetTrackedWorkOrderAsync(
|
||
|
|
int workOrderId,
|
||
|
|
int? accountId,
|
||
|
|
CancellationToken cancellationToken);
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// The site's live contacts for a location ordered by SiteContactOrder then Id.
|
||
|
|
/// Deleted contacts are excluded. Empty when the location has none.
|
||
|
|
/// </summary>
|
||
|
|
Task<IReadOnlyList<Contacts>> GetSiteContactsAsync(
|
||
|
|
int? locationId,
|
||
|
|
CancellationToken cancellationToken);
|
||
|
|
}
|
||
|
|
}
|