Add controlled FAQ auto-replies with test mode and durable sending limits
This commit is contained in:
@@ -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; } = "";
|
||||
|
||||
Reference in New Issue
Block a user