Skip to content

Commit

Permalink
feat: create app
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdadev13 committed Apr 25, 2024
1 parent 8fbb1ed commit 208e4db
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/app-store/clic/api/add.ts
@@ -0,0 +1,20 @@
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://clicis.vercel.app",
},
createCredential: ({ appType, user, slug, teamId }) =>
createDefaultInstallation({ appType, user: user, slug, key: {}, teamId }),
};

export default handler;
1 change: 1 addition & 0 deletions packages/app-store/clic/api/index.ts
@@ -0,0 +1 @@
export { default as add } from "./add";
16 changes: 16 additions & 0 deletions packages/app-store/clic/config.json
@@ -0,0 +1,16 @@
{
"/*": "Don't modify slug - If required, do it using cli edit command",
"name": "Clic",
"slug": "clic",
"type": "check_in_automation",
"logo": "icon.svg",
"url": "https://clicis.vercel.app",
"variant": "automation",
"categories": ["automation"],
"publisher": "Chris Pacheco",
"email": "chrispacheco430@gmail.com",
"description": "Create, List and Interact with Your Cal.com links and connections easily.\r\r",
"isTemplate": false,
"__createdUsingCli": true,
"__template": "link-as-an-app"
}
1 change: 1 addition & 0 deletions packages/app-store/clic/index.ts
@@ -0,0 +1 @@
export * as api from "./api";
14 changes: 14 additions & 0 deletions packages/app-store/clic/package.json
@@ -0,0 +1,14 @@
{
"$schema": "https://json.schemastore.org/package.json",
"private": true,
"name": "@calcom/clic",
"version": "0.0.0",
"main": "./index.ts",
"dependencies": {
"@calcom/lib": "*"
},
"devDependencies": {
"@calcom/types": "*"
},
"description": "Create, List and Interact with Your Cal.com links and connections easily.\r\r",
}

0 comments on commit 208e4db

Please sign in to comment.