import { PartialType, OmitType } from '@nestjs/mapped-types';
import { CreateCommunicationTemplateDto } from './create-communication-template.dto';

/**
 * PATCH shape — inherits every editable field from Create except
 * `channel` and `context` (those are frozen post-create because
 * placeholders in body_template are keyed to the context's data bag).
 */
export class UpdateCommunicationTemplateDto extends PartialType(
  OmitType(CreateCommunicationTemplateDto, ['channel', 'context'] as const),
) {}
