mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* refactor: remove-zapier-setup-screen * remove setup page files, related config and update readme * make zapier a redirecting app * update readme * add check for missing website * add noopener,noreferrer for _blank links
23 lines
765 B
TypeScript
23 lines
765 B
TypeScript
import { createDefaultInstallation } from "@calcom/app-store/_utils/installation";
|
|
import type { AppDeclarativeHandler } from "@calcom/types/AppHandler";
|
|
|
|
import appConfig from "../config.json";
|
|
|
|
const handler: AppDeclarativeHandler = {
|
|
appType: appConfig.type,
|
|
variant: appConfig.variant,
|
|
slug: appConfig.slug,
|
|
supportsMultipleInstalls: false,
|
|
handlerType: "add",
|
|
redirect: {
|
|
newTab: true,
|
|
url: "https://zapier.com/apps/calcom/integrations",
|
|
},
|
|
// Creates minimal credential record for tracking purposes only
|
|
// No actual credentials are stored since this is a redirect app
|
|
createCredential: ({ appType, user, slug, teamId }) =>
|
|
createDefaultInstallation({ appType, user: user, slug, key: {}, teamId }),
|
|
};
|
|
|
|
export default handler;
|