2026-07-24 17:35:34 -03:00
|
|
|
using Data.SeaHavenIndustries;
|
|
|
|
|
|
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IVendorDocumentDataService
|
|
|
|
|
{
|
|
|
|
|
Task<VendorCompletionDocument?> GetLatestForDispatchAsync(int dispatchId, CancellationToken cancellationToken);
|
|
|
|
|
Task<VendorCompletionDocument?> GetForVendorDispatchAsync(int documentId, int dispatchId, int vendorId, CancellationToken cancellationToken);
|
2026-08-11 08:58:19 -03:00
|
|
|
Task<VendorCompletionDocument?> GetMetadataForVendorDispatchAsync(int documentId, int dispatchId, int vendorId, CancellationToken cancellationToken);
|
2026-07-28 14:19:15 -03:00
|
|
|
Task<List<VendorCompletionDocument>> ListForVendorDispatchAsync(int dispatchId, int vendorId, CancellationToken cancellationToken);
|
2026-08-11 08:58:19 -03:00
|
|
|
Task<VendorCompletionDocument?> GetUpliftEvidenceAsync(int documentId, int dispatchId, int vendorId, CancellationToken cancellationToken);
|
2026-09-24 21:27:01 -03:00
|
|
|
/// <summary>
|
|
|
|
|
/// Content types of the work order's current vendor documents (not deleted, not replaced by a
|
2026-09-25 02:58:15 -03:00
|
|
|
/// newer completion version), optionally excluding one being replaced. Feeds the per-work-order photo/video counts.
|
2026-09-24 21:27:01 -03:00
|
|
|
/// </summary>
|
|
|
|
|
Task<IReadOnlyList<string>> ListActiveContentTypesForWorkOrderAsync(
|
|
|
|
|
int workOrderId,
|
|
|
|
|
int? excludingDocumentId,
|
|
|
|
|
CancellationToken cancellationToken);
|
|
|
|
|
|
2026-09-25 02:58:15 -03:00
|
|
|
/// <summary>Stored URLs of the work order's non-deleted dispatcher attachments (photo/video counts).</summary>
|
2026-09-24 21:27:01 -03:00
|
|
|
Task<IReadOnlyList<string>> ListActiveWorkOrderAttachmentUrlsAsync(
|
|
|
|
|
int workOrderId,
|
|
|
|
|
CancellationToken cancellationToken);
|
2026-07-24 17:35:34 -03:00
|
|
|
Task AddAsync(VendorCompletionDocument document, CancellationToken cancellationToken);
|
|
|
|
|
Task SaveChangesAsync(CancellationToken cancellationToken);
|
|
|
|
|
}
|
|
|
|
|
}
|