hunk.code_window:     const subject = await this.renderContent(command.subject, payload);
       const html = await this.compileTemplate.execute(
         CompileTemplateCommand.create({
           templateId: isEditorMode ? 'basic' : 'custom',
           customTemplate: !isEditorMode ? (content as string) : undefined,
  
hunk.labels: keep replace keep keep keep keep keep
hunk.after_edit:     try {
         [organization, content] = await Promise.all([
           this.organizationRepository.findById(command.organizationId),
           this.getContent(isEditorMode, command.content, payload),
         ]);
         subject = await this.renderContent(command.subject, payload);
       } catch (e) {
         throw new ApiException(e?.message || `Message content could not be generated`);
       }
  
hunk.file_path: apps/api/src/app/content-templates/usecases/parse-preview/preview-email.usecase.ts
hunk.type: replace
file: import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
  
  class Branding {
    @ApiPropertyOptional()
    fontFamily?: string;
    @ApiPropertyOptional()
    fontColor?: string;
    @ApiPropertyOptional()
    contentBackground?: string;
    @ApiProperty()
    logo: string;
    @ApiProperty()
    color: string;
    @ApiPropertyOptional({
      enum: ['ltr', 'rtl'],
    })
    direction?: 'ltr' | 'rtl';
  }
  
  export class OrganizationResponseDto {
    @ApiProperty()
    _id: string;
    @ApiProperty()
    name: string;
    @ApiProperty()
    branding: Branding;
  }
  