2021-08-19 12:27:01 +00:00
|
|
|
export function getIntegrationName(name: string) {
|
|
|
|
switch (name) {
|
|
|
|
case "google_calendar":
|
|
|
|
return "Google Calendar";
|
|
|
|
case "office365_calendar":
|
|
|
|
return "Office 365 Calendar";
|
|
|
|
case "zoom_video":
|
|
|
|
return "Zoom";
|
|
|
|
case "caldav_calendar":
|
|
|
|
return "CalDav Server";
|
2021-09-11 07:54:13 +00:00
|
|
|
case "apple_calendar":
|
|
|
|
return "Apple Calendar";
|
2021-08-19 12:27:01 +00:00
|
|
|
default:
|
|
|
|
return "Unknown";
|
|
|
|
}
|
2021-04-10 12:02:35 +00:00
|
|
|
}
|
|
|
|
|
2021-08-19 12:27:01 +00:00
|
|
|
export function getIntegrationType(name: string) {
|
|
|
|
if (name.endsWith("_calendar")) {
|
|
|
|
return "Calendar";
|
|
|
|
}
|
|
|
|
return "Unknown";
|
2021-04-21 22:10:48 +00:00
|
|
|
}
|