10 lines
371 B
TypeScript
10 lines
371 B
TypeScript
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<string, unknown>) {}
|
|
}
|