3937b0c4c6
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
20 lines
551 B
TypeScript
20 lines
551 B
TypeScript
import { NextApiHandler } from "next";
|
|
import { Session } from "next-auth";
|
|
|
|
import { Credential } from "@calcom/prisma/client";
|
|
|
|
export type AppDeclarativeHandler = {
|
|
appType: string;
|
|
slug: string;
|
|
variant: string;
|
|
supportsMultipleInstalls: false;
|
|
handlerType: "add";
|
|
createCredential: (arg: { user: Session["user"]; appType: string; slug: string }) => Promise<Credential>;
|
|
supportsMultipleInstalls: boolean;
|
|
redirect?: {
|
|
newTab?: boolean;
|
|
url: string;
|
|
};
|
|
};
|
|
export type AppHandler = AppDeclarativeHandler | NextApiHandler;
|