feat(scripts): ScriptAlarm.IsMesReportable + Alarms.MesReportableAsync() mirrored on both compile surfaces

Claude-Session: https://claude.ai/code/session_01Y5ef34iUUMjmwnMpL9xgmB
This commit is contained in:
Joseph Doherty
2026-09-11 10:12:47 -04:00
parent ce8fc092c8
commit 17d9a4cd2c
8 changed files with 92 additions and 4 deletions
@@ -55,6 +55,10 @@ namespace ZB.MOM.WW.ScadaBridge.Commons.Types.Scripts;
/// True for a placeholder row standing in for a CONFIGURED native source binding that
/// currently holds no conditions. Scripts enumerating real alarms should filter these out.
/// </param>
/// <param name="IsMesReportable">
/// True when the deployed configuration flags the alarm as MES-reportable (template
/// checkbox or instance override). Always false for native conditions.
/// </param>
public sealed record ScriptAlarm(
string Name,
string SourceReference,
@@ -76,4 +80,5 @@ public sealed record ScriptAlarm(
DateTimeOffset? AckTime,
string CurrentValue,
string LimitValue,
bool IsConfiguredPlaceholder);
bool IsConfiguredPlaceholder,
bool IsMesReportable = false);