first commit
This commit is contained in:
16
calcom/packages/app-store/mock-payment-app/api/add.ts
Normal file
16
calcom/packages/app-store/mock-payment-app/api/add.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
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",
|
||||
createCredential: ({ appType, user, slug, teamId }) =>
|
||||
createDefaultInstallation({ appType, user: user, slug, key: {}, teamId }),
|
||||
};
|
||||
|
||||
export default handler;
|
||||
1
calcom/packages/app-store/mock-payment-app/api/index.ts
Normal file
1
calcom/packages/app-store/mock-payment-app/api/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default as add } from "./add";
|
||||
Reference in New Issue
Block a user