mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-05 15:22:08 +00:00
27 lines
836 B
C#
27 lines
836 B
C#
|
|
namespace SeaHaven.Services.Interfaces
|
||
|
|
{
|
||
|
|
public interface IWorkOrderReconciliationService
|
||
|
|
{
|
||
|
|
Task<WorkOrderReconciliationTriggerResult> TriggerAsync(
|
||
|
|
string reason,
|
||
|
|
CancellationToken cancellationToken);
|
||
|
|
|
||
|
|
Task<WorkOrderReconciliationStatus> GetStatusAsync(CancellationToken cancellationToken);
|
||
|
|
|
||
|
|
Task<bool> RunPendingAsync(CancellationToken cancellationToken);
|
||
|
|
}
|
||
|
|
|
||
|
|
public sealed record WorkOrderReconciliationTriggerResult(bool Queued, Guid RunId);
|
||
|
|
|
||
|
|
public sealed record WorkOrderReconciliationStatus(
|
||
|
|
Guid? RunId,
|
||
|
|
string State,
|
||
|
|
string? Reason,
|
||
|
|
DateTimeOffset? RequestedAt,
|
||
|
|
DateTimeOffset? StartedAt,
|
||
|
|
DateTimeOffset? CompletedAt,
|
||
|
|
int WorkOrdersProcessed,
|
||
|
|
int CommentsProcessed,
|
||
|
|
string? ErrorCode);
|
||
|
|
}
|