
* Adds Stripe integration * Moves Stripe instrucctions to ee * Adds NEXT_PUBLIC_APP_URL variable * Adds fallback for NEXT_PUBLIC_APP_URL * Throws error objects instead * Improved error handling * Removes deprecated method * Bug fixing * Payment refactoring * PaymentPage fixes * Fixes preview links * More preview link fixes * Fixes client links Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com>
28 lines
655 B
TypeScript
28 lines
655 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";
|
|
default:
|
|
return "Unknown";
|
|
}
|
|
}
|
|
|
|
export function getIntegrationType(name: string): string {
|
|
if (name.endsWith("_calendar")) {
|
|
return "Calendar";
|
|
}
|
|
if (name.endsWith("_payment")) {
|
|
return "Payment";
|
|
}
|
|
return "Unknown";
|
|
}
|