emailengine-client
Version:
A TypeScript client for the EmailEngine API
53 lines (52 loc) • 1.44 kB
TypeScript
import { Options } from "../../../../misc/Options";
/**
* Create a new stored template. Templates can be used when sending emails as the content of the message.
*/
export declare class CreateTemplateOptions extends Options {
/**
* Override the EENGINE_TIMEOUT environment variable for a single API request (in milliseconds)
*/
'x-ee-timeout'?: number | undefined;
/**
* Create Template Details
*/
'body': {
/**
* Account ID. Use null for public templates.
*/
'account': string | undefined;
/**
* Name of the template
*/
'name': string | undefined;
/**
* Optional description of the template
*/
'description'?: string | undefined;
/**
* Markup language for HTML ("html", "markdown" or "mjml")
*/
'format'?: string;
/**
* Template content
*/
'content': {
/**
* Message subject
*/
'subject'?: string | undefined;
/**
* Message Text
*/
'text'?: string | undefined;
/**
* Message HTML
*/
'html'?: string | undefined;
/**
* Preview text appears in the inbox after the subject line
*/
'previewText'?: string | undefined;
};
};
}