2026-06-29 17:22:31 -03:00
|
|
|
using Data.SeaHavenIndustries.Enums;
|
|
|
|
|
|
|
|
|
|
namespace SeaHaven.Services.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IWorkOrderAuditService
|
|
|
|
|
{
|
|
|
|
|
Task LogAsync(
|
|
|
|
|
int workOrderId,
|
|
|
|
|
AuditActionType action,
|
|
|
|
|
AuditEventType eventType,
|
|
|
|
|
AuditActorType actorType,
|
|
|
|
|
string fieldName,
|
|
|
|
|
string? oldValue,
|
|
|
|
|
string? newValue,
|
|
|
|
|
string? actorId = null,
|
|
|
|
|
int? dispatchId = null,
|
|
|
|
|
string? correlationId = null);
|
|
|
|
|
|
|
|
|
|
Task LogStatusChangedAsync(int workOrderId, string? oldStatus, string? newStatus, string? actorId);
|
|
|
|
|
Task LogAssignmentChangedAsync(int workOrderId, string? oldValue, string? newValue, string? actorId);
|
|
|
|
|
Task LogSyncRejectedAsync(int workOrderId, string fieldName, string? oldValue, string? newValue);
|
2026-07-09 14:08:48 -03:00
|
|
|
Task LogWeekRolledAsync(int workOrderId, int oldCarriedOver, int newCarriedOver, string correlationId);
|
2026-07-07 11:26:13 -03:00
|
|
|
|
2026-07-09 09:54:53 -03:00
|
|
|
Task StageFieldChangedAsync(int workOrderId, string fieldName, string? oldValue, string? newValue, string? actorId, int? dispatchId = null);
|
|
|
|
|
Task StageStatusChangedAsync(int workOrderId, string? oldStatus, string? newStatus, string? actorId);
|
|
|
|
|
Task StageAssignmentChangedAsync(int workOrderId, string? oldValue, string? newValue, string? actorId);
|
|
|
|
|
Task StageCreatedAsync(int workOrderId, string? actorId, string? woNumber);
|
2026-06-29 17:22:31 -03:00
|
|
|
}
|
|
|
|
|
}
|