import { ConversationEvent } from "./ConversationEvent"; export class ConversationStartedEvent extends ConversationEvent { public static eventName = "conversation.ConversationStartedEvent"; public static eventVersion = 0; readonly platform: string; readonly channelId: string; readonly channelUserId: string; readonly contactId: string; readonly status: "NEW" | "WAITING" | "ACTIVE" | "ENDED"; constructor({ tenantId, conversationId, platform, channelId, channelUserId, contactId, status, }: { tenantId: string; conversationId: string; platform: string; channelId: string; channelUserId: string; contactId: string; status: "NEW" | "WAITING" | "ACTIVE" | "ENDED"; }) { super({ eventName: ConversationStartedEvent.eventName, eventVersion: ConversationStartedEvent.eventVersion, tenantId, conversationId, }); this.platform = platform; this.channelUserId = channelUserId; this.channelId = channelId; this.status = status; this.contactId = contactId; } }