@mediarithmics/plugins-nodejs-sdk
Version:
This is the mediarithmics nodejs to help plugin developers bootstrapping their plugin without having to deal with most of the plugin boilerplate
11 lines (10 loc) • 720 B
TypeScript
import { BasePlugin, PluginProperty, Creative, EmailRenderRequest, EmailRendererPluginResponse, EmailRendererBaseInstanceContext } from "../../../index";
export declare abstract class EmailRendererPlugin extends BasePlugin {
instanceContext: Promise<EmailRendererBaseInstanceContext>;
fetchCreative(id: string): Promise<Creative>;
fetchCreativeProperties(id: string): Promise<PluginProperty[]>;
protected instanceContextBuilder(creativeId: string): Promise<EmailRendererBaseInstanceContext>;
protected abstract onEmailContents(request: EmailRenderRequest, instanceContext: EmailRendererBaseInstanceContext): Promise<EmailRendererPluginResponse>;
private initEmailContents();
constructor();
}