
* ⬆️ Bump tailwindcss from 2.2.14 to 2.2.15 Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 2.2.14 to 2.2.15. - [Release notes](https://github.com/tailwindlabs/tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md) - [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v2.2.14...v2.2.15) --- updated-dependencies: - dependency-name: tailwindcss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * updating cal will provide a zoom meeting url * updating cal will provide a zoom meeting url * modifying how daily emails send * modifying how daily emails send * daily table * migration updates * daily table * rebasing updates * updating Daily references to a new table * updating internal notes * merge updates, adding Daily references to book/events.ts * updated video email templates to remove Daily specific references * updating the events.ts and refactoring in the event manager * removing the package-lock * changing calendso video powered by Daily.co to cal video powered by Daily.co * updating some of the internal Daily notes * added a modal for when the call/ link is invalid * removing handle errors raw from the Daily video client * prettier formatting fixes * Added the Daily location to calendar events and updated Cal video references to Daily.co video * updating references to create in event manager to check for Daily video * fixing spacing on the cancel booking modal and adding Daily references in the event manager * formatting fixes * updating the readme file * adding a daily interface in the event manager * adding daily to the location labels * added a note to cal event parser * resolving yarn merge conflicts * updating dailyReturn to DailyReturnType * removing prettier auto and refactoring integrations: daily in the event manager * removing changes to estlintrc.json * updating read me formatting * indent space for Daily ReadMe section * resolving the merge conflicts in the yarn file Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lola-Ojabowale <lola.ojabowale@gmail.com>
45 lines
1.5 KiB
TypeScript
45 lines
1.5 KiB
TypeScript
import { AdditionInformation } from "@lib/emails/EventMail";
|
|
|
|
import { CalendarEvent } from "../calendarClient";
|
|
import { VideoCallData } from "../videoClient";
|
|
import EventAttendeeMail from "./EventAttendeeMail";
|
|
import { getFormattedMeetingId, getIntegrationName } from "./helpers";
|
|
|
|
export default class VideoEventAttendeeMail extends EventAttendeeMail {
|
|
videoCallData: VideoCallData;
|
|
|
|
constructor(
|
|
calEvent: CalendarEvent,
|
|
uid: string,
|
|
videoCallData: VideoCallData,
|
|
additionInformation: AdditionInformation = null
|
|
) {
|
|
super(calEvent, uid);
|
|
this.videoCallData = videoCallData;
|
|
this.additionInformation = additionInformation;
|
|
}
|
|
|
|
/**
|
|
* Adds the video call information to the mail body.
|
|
*
|
|
* @protected
|
|
*/
|
|
protected getAdditionalBody(): string {
|
|
const meetingPassword = this.videoCallData.password;
|
|
const meetingId = getFormattedMeetingId(this.videoCallData);
|
|
|
|
if (meetingId && meetingPassword) {
|
|
return `
|
|
<strong>Video call provider:</strong> ${getIntegrationName(this.videoCallData)}<br />
|
|
<strong>Meeting ID:</strong> ${getFormattedMeetingId(this.videoCallData)}<br />
|
|
<strong>Meeting Password:</strong> ${this.videoCallData.password}<br />
|
|
<strong>Meeting URL:</strong> <a href="${this.videoCallData.url}">${this.videoCallData.url}</a><br />
|
|
`;
|
|
}
|
|
|
|
return `
|
|
<strong>Video call provider:</strong> ${getIntegrationName(this.videoCallData)}<br />
|
|
<strong>Meeting URL:</strong> <a href="${this.videoCallData.url}">${this.videoCallData.url}</a><br />
|
|
`;
|
|
}
|
|
}
|