using ZB.MOM.WW.ScadaBridge.Commons.Entities.Audit;
namespace ZB.MOM.WW.ScadaBridge.Commons.Messages.Audit;
///
/// Akka message sent to the central SiteCallAuditActor carrying one row to
/// be persisted via ISiteCallAuditRepository.UpsertAsync. The repository
/// performs an insert-if-not-exists then monotonic update — duplicate gRPC
/// packets and reconciliation pulls can both feed the actor without rolling
/// state back.
///
///
/// Lives in ZB.MOM.WW.ScadaBridge.Commons rather than ZB.MOM.WW.ScadaBridge.SiteCallAudit
/// so the gRPC server in ZB.MOM.WW.ScadaBridge.Communication can construct it
/// without taking a project reference on the actor's host project — needed
/// once the IngestCachedTelemetry RPC that will Tell this command is added.
///
public sealed record UpsertSiteCallCommand(SiteCall SiteCall);