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-22 18:36:13 +00:00
|
|
|
case "stripe_payment":
|
|
|
|
return "Stripe";
|
2021-09-11 07:54:13 +00:00
|
|
|
case "apple_calendar":
|
|
|
|
return "Apple Calendar";
|
2021-10-07 16:12:39 +00:00
|
|
|
case "daily_video":
|
|
|
|
return "Daily";
|
2021-08-19 12:27:01 +00:00
|
|
|
}
|
2021-04-10 12:02:35 +00:00
|
|
|
}
|
|
|
|
|
2021-09-22 18:36:13 +00:00
|
|
|
export function getIntegrationType(name: string): string {
|
2021-08-19 12:27:01 +00:00
|
|
|
if (name.endsWith("_calendar")) {
|
|
|
|
return "Calendar";
|
|
|
|
}
|
2021-09-22 18:36:13 +00:00
|
|
|
if (name.endsWith("_payment")) {
|
|
|
|
return "Payment";
|
|
|
|
}
|
2021-08-19 12:27:01 +00:00
|
|
|
return "Unknown";
|
2021-04-21 22:10:48 +00:00
|
|
|
}
|