export type TicketId = string; export type TicketWithStatus = { type: "status"; id: TicketId; level: number; color: string; label: string; timestamp: Date | string; levelConfigId?: string; href?: string; protocol?: string; }; export type TicketWithMessage = { type: "messageBox"; id: TicketId; timestamp: Date | string; levelConfigId?: string; protocol?: string; sentBy: { authUserId: string; userName: string; }; sendingMethods: Array<{ type: "email" | "wpp"; format: "html" | "markdown"; content: string; }>; }; export type TicketWithFeedback = { type: "feedback"; id: TicketId; content: string; score: number; color: string; label: string; timestamp: Date | string; levelConfigId?: string; protocol?: string; }; export type TicketWithInfo = { type: "info"; id: TicketId; content: string; timestamp: Date | string; levelConfigId?: string; protocol?: string; }; export type Ticket = TicketWithStatus | TicketWithMessage | TicketWithFeedback | TicketWithInfo;