import { ICustomizableEmailTemplate, IEmailTemplate, IEmailTemplateSaveInput, IPagination, LanguagesEnum } from '@metad/contracts'; import { QueryBus, CommandBus } from '@nestjs/cqrs'; import { FindOptionsWhere, UpdateResult } from 'typeorm'; import { CrudController, PaginationParams } from './../core/crud'; import { EmailTemplate } from './email-template.entity'; import { EmailTemplateService } from './email-template.service'; import { BaseQueryDTO } from '../core/dto'; export declare class EmailTemplateController extends CrudController { private readonly emailTemplateService; private readonly queryBus; private readonly commandBus; constructor(emailTemplateService: EmailTemplateService, queryBus: QueryBus, commandBus: CommandBus); /** * GET count for email templates in the same tenant * * @param options * @returns */ getCount(options: FindOptionsWhere): Promise; pagination(filter: PaginationParams): Promise>; findTemplate(data: any, themeLanguage: LanguagesEnum): Promise; generatePreview(data: string): Promise; saveTemplate(data: IEmailTemplateSaveInput): Promise; /** * GET email templates in the same tenant * * @param options * @returns */ findAlls(options: BaseQueryDTO): Promise>; findById(id: string): Promise; update(id: string, input: IEmailTemplateSaveInput): Promise; delete(id: string): Promise; }