export const eventTypes = {
  EMAIL_SEND: "Email envoyé",
  NOTIFICATION: "Notification",
  USER_ACTION: "Action utilisateur",
  SYSTEM_EVENT: "Evenement système",
  CUSTOM: "Personnalisé",
};

export type EventType = (typeof eventTypes)[keyof typeof eventTypes];

export interface EventDTO {
  id: string;
  name: string;
  description?: string;
  entityId?: string;
  entityType?: string;
  type: EventType;
  status?: string;
  priority?: string;
  createdAt: Date;
  updatedAt: Date;
  metadata?: Record<string, any>;
  tags?: string;
}

export interface SearchEventDTO {
  q?: string;
  type?: EventType;
  entityId?: string;
  entityType?: string;
  status?: string;
  priority?: string;
  tags?: string[];
  startDate?: string;
  endDate?: string;
  limit?: number;
  offset?: number;
}
