Add controlled FAQ auto-replies with test mode and durable sending limits

This commit is contained in:
wolf-demon
2026-09-15 09:50:52 +01:00
parent ad57a8b1bd
commit 5a93c35b18
20 changed files with 389 additions and 16 deletions
+15
View File
@@ -9,6 +9,9 @@ public abstract class TenantDocument : ITenantDocument
}
public class Hotel : TenantDocument
{
public string AutoReplyMode {get;set;}="Off";
public string AutoReplyEpoch {get;set;}="";
public DateTime AutoReplySince {get;set;}=DateTime.UtcNow;
public bool PaymentsEnabled { get; set; }
public bool PmsUpdatesEnabled { get; set; }
public bool AiDraftsEnabled { get; set; }
@@ -38,10 +41,15 @@ public class KnowledgeEntry : TenantDocument
}
public class Conversation : TenantDocument
{
public bool AutoReplyHeadersEligible {get;set;}
public DateTime? AutoReplyCheckedAt {get;set;}
public string AutoReplyDetail {get;set;}="";
public bool AutoReplyMatched {get;set;}
public string ReplyAddress { get; set; } = "";
public string RfcMessageId { get; set; } = "";
public string[] DraftSources { get; set; } = [];
public string DraftReviewNote { get; set; } = "";
public Delivery? RejectedAutomaticReply {get;set;}
public Delivery? Delivery { get; set; }
public string MailboxId { get; set; } = "";
public string ProviderMessageId { get; set; } = "";
@@ -95,6 +103,13 @@ public record SendInput(long Version, string Recipient);
public record ReplyControlsInput(long Version, bool AiDraftsEnabled, bool StaffSendingEnabled);
public class Delivery
{
public bool Automatic {get;set;}
public string AutoRuleId {get;set;}="";
public long AutoRuleVersion {get;set;}
public string AutoKnowledgeId {get;set;}="";
public long AutoKnowledgeVersion {get;set;}
public string AutoDay {get;set;}="";
public string AutoEpoch {get;set;}="";
public string Id { get; set; } = Guid.NewGuid().ToString("N");
public string State { get; set; } = "Pending";
public string Recipient { get; set; } = "";