mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 11:53:12 +00:00
Adds an extra safety note and an ordered procedure list to completion document templates, name search, creator and last-updated audit fields, a tenant-scoped count of open work orders that depend on a template, and a delete that unlinks Services while they keep requiring a document. Writes are gated by the create/edit/delete completion template team permissions instead of the Admin role.
21 lines
661 B
C#
21 lines
661 B
C#
using System.Security.Claims;
|
|
using SeaHaven.Services.DTOs;
|
|
|
|
namespace SeaHaven.Services.Interfaces
|
|
{
|
|
public interface IWorkOrderCompletionService
|
|
{
|
|
Task EnsureCanUploadCompletionDocAsync(
|
|
int workOrderId,
|
|
ClaimsPrincipal user,
|
|
string? actorId,
|
|
CancellationToken cancellationToken = default);
|
|
Task<WorkOrderCompletionDto> UploadCompletionDocAsync(
|
|
int workOrderId,
|
|
WorkOrderCompletionDocUploadDto request,
|
|
string fileUrl,
|
|
ClaimsPrincipal user,
|
|
string? actorId,
|
|
CancellationToken cancellationToken = default);
|
|
}
|
|
}
|