#nullable enable
using Baya.Application.Models.Common;
using Baya.Application.Models.Messaging;
using Mediator;

namespace Baya.Application.Features.Messaging.Commands.LogEmergencyTicket;

/// <summary>
/// The <b>operational</b> side of the on-site emergency playbook: after the nurse has called the emergency
/// contact (surfaced from the encrypted care instructions, out of platform), this records the aftermath — a
/// <c>category=emergency</c> ticket on the booking, and optionally a <c>support_alerts</c> row. It does
/// <b>not</b> dial anyone and does <b>not</b> expose any phone number; it does not widen the clinical disclosure.
/// </summary>
public record LogEmergencyTicketCommand(long BookingId, string? Body, bool RaiseAlert = true)
    : IRequest<OperationResult<OpenTicketResult>>;
