Interface EmailCampaignsService
interface EmailCampaignsService { getCampaignEmailsForTrip(tripId: string): Promise<CampaignEmailStatus[]>; getHtmlPreview( emailHookId: string, templateVariables: Record<string | symbol, unknown>, recipientVariables: Record<string | symbol, string>, ): Promise<HtmlPreviewResponse>; sendTest( emailHookId: string, templateVariables: Record<string | symbol, unknown>, recipientVariables: Record<string | symbol, string>, ): Promise<string>;} Methods
getHtmlPreview
- getHtmlPreview(
emailHookId: string,
templateVariables: Record<string | symbol, unknown>,
recipientVariables: Record<string | symbol, string>,
): Promise<HtmlPreviewResponse> Parameters
- emailHookId: string
- templateVariables: Record<string | symbol, unknown>
- recipientVariables: Record<string | symbol, string>
sendTest
- sendTest(
emailHookId: string,
templateVariables: Record<string | symbol, unknown>,
recipientVariables: Record<string | symbol, string>,
): Promise<string> Parameters
- emailHookId: string
- templateVariables: Record<string | symbol, unknown>
- recipientVariables: Record<string | symbol, string>
Returns Promise<string>
Retrieves the emails campaigns associated to the Trip Id