import { Command } from '@nestjs/cqrs'; import { CommandResult } from './command-result'; export interface IncomingFile { fileName: string; mimeType: string; content: Buffer; } export class AttachFileCommand extends Command { constructor( public readonly actorId: string, public readonly issueId: string, public readonly file: IncomingFile, /** Places it under one of the ticket's comments. */ public readonly commentId: string | null = null, ) { super(); } }