import { randomUUID } from 'crypto'; import { DomainEvent } from '../../../../shared/domain/DomainEvent'; export class ReportFailed implements DomainEvent { readonly eventId = randomUUID(); readonly eventName = 'reporting.report_failed'; readonly occurredOn = new Date(); constructor(readonly aggregateId: string, readonly payload: Record) {} }