import { AutowiredEvent } from '@task-stream/api/shared/domain'; import { TrackerEvent } from './tracker.event'; /** * The release was archived. Its unfinished tickets move to `moveTo` (an * open release of the same project) or, when null, leave it. Events stored * before `moveTo` existed read as null. */ @AutowiredEvent export class ReleaseArchivedEvent extends TrackerEvent { constructor( actorId: string, releaseId: string, projectId: string, readonly moveTo: string | null = null, ) { super(actorId, releaseId, projectId); } }