import dayjs, { Dayjs } from "dayjs";
import EventOrganizerMail from "./EventOrganizerMail";
export default class EventOrganizerRescheduledMail extends EventOrganizerMail {
/**
* Returns the email text as HTML representation.
*
* @protected
*/
protected getHtmlRepresentation(): string {
return (
`
${this.calEvent.language("hi_user_name", { userName: this.calEvent.organizer.name })},
${this.calEvent.language("event_has_been_rescheduled")}
${this.calEvent.language("event_type")}:
${this.calEvent.type}
${this.calEvent.language("invitee_email")}:
${this.calEvent.attendees[0].email}
` +
this.getAdditionalBody() +
(this.calEvent.location
? `
${this.calEvent.language("location")}:
${this.calEvent.location}
`
: "") +
`
${this.calEvent.language("invitee_timezone")}:
${this.calEvent.attendees[0].timeZone}
${this.calEvent.language("additional_notes")}:
${this.calEvent.description}
` +
this.getAdditionalFooter() +
`
`
);
}
/**
* Returns the payload object for the nodemailer.
*
* @protected
*/
protected getNodeMailerPayload(): Record