14 lines
380 B
TypeScript
14 lines
380 B
TypeScript
import { randomUUID } from 'crypto';
|
|
import { DomainEvent } from '../../../../shared/domain/DomainEvent';
|
|
|
|
export class FindingResolved implements DomainEvent {
|
|
readonly eventId = randomUUID();
|
|
readonly eventName = 'finding.resolved';
|
|
readonly occurredOn = new Date();
|
|
|
|
constructor(
|
|
readonly aggregateId: string,
|
|
readonly payload: Record<string, unknown>
|
|
) {}
|
|
}
|