35 lines
815 B
TypeScript
35 lines
815 B
TypeScript
|
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";
|
||
|
case "stripe_payment":
|
||
|
return "Stripe";
|
||
|
case "apple_calendar":
|
||
|
return "Apple Calendar";
|
||
|
case "daily_video":
|
||
|
return "Daily";
|
||
|
case "jitsi_video":
|
||
|
return "Jitsi Meet";
|
||
|
case "huddle01_video":
|
||
|
return "Huddle01";
|
||
|
case "tandem_video":
|
||
|
return "Tandem";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export function getIntegrationType(name: string): string {
|
||
|
if (name.endsWith("_calendar")) {
|
||
|
return "Calendar";
|
||
|
}
|
||
|
if (name.endsWith("_payment")) {
|
||
|
return "Payment";
|
||
|
}
|
||
|
return "Unknown";
|
||
|
}
|