import { AutowiredEvent } from '@task-stream/api/shared/domain'; import type { IssueProps } from '../issue/issue'; import { TrackerEvent } from './tracker.event'; /** A ticket was reported (bug, feature, UI change...). */ @AutowiredEvent export class IssueCreatedEvent extends TrackerEvent { constructor( actorId: string, readonly issue: IssueProps, ) { super(actorId, issue.id, issue.projectId); } }