mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 15:23:12 +00:00
35 lines
1.6 KiB
C#
35 lines
1.6 KiB
C#
using Data.SeaHavenIndustries;
|
|
using Data.SeaHavenIndustries.Enums;
|
|
using SeaHaven.DataServices.Interfaces;
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
{
|
|
public interface IWorkOrderDetailDataService
|
|
{
|
|
Task<bool> ExistsAsync(
|
|
int workOrderId,
|
|
CancellationToken cancellationToken = default,
|
|
int? accountId = null);
|
|
Task<WorkOrderDetailExtendedFields?> GetExtendedFieldsAsync(int workOrderId);
|
|
Task<IReadOnlyList<Comments>> GetCommentsAsync(int workOrderId);
|
|
Task<IReadOnlyList<WorkOrderAuditLog>> GetAuditLogsAsync(int workOrderId, int? limit = null);
|
|
Task<IReadOnlyList<WorkOrderAttachments>> GetAttachmentsAsync(
|
|
int workOrderId,
|
|
CancellationToken cancellationToken = default);
|
|
Task<IReadOnlyList<DispatchSignoffRow>> GetDispatchSignoffsAsync(int workOrderId);
|
|
Task<WorkOrder?> GetWorkOrderForMediaAsync(
|
|
int workOrderId,
|
|
CancellationToken cancellationToken = default,
|
|
int? accountId = null);
|
|
}
|
|
|
|
public interface ICompletionDocTemplateDataService
|
|
{
|
|
Task<IReadOnlyList<CompletionDocTemplateRow>> GetActiveAsync(string? serviceKey, WorkOrderType? workOrderType);
|
|
Task<CompletionDocTemplateRow?> GetByIdAsync(int id);
|
|
Task<CompletionDocTemplateRow?> ResolveForWorkOrderAsync(string? trade, WorkOrderType? workOrderType);
|
|
Task<CompletionDocTemplate> CreateAsync(CompletionDocTemplate template);
|
|
Task UpdateAsync(CompletionDocTemplate template);
|
|
Task<bool> DeleteAsync(int id);
|
|
}
|
|
}
|