Skip to content

Commit bff28e5

Browse files
authored
discord app (#8101)
1 parent f10ff18 commit bff28e5

File tree

14 files changed

+122
-109
lines changed

14 files changed

+122
-109
lines changed

packages/app-store/apps.metadata.generated.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import campfire_config_json from "./campfire/config.json";
1010
import closecom_config_json from "./closecom/config.json";
1111
import cron_config_json from "./cron/config.json";
1212
import { metadata as dailyvideo__metadata_ts } from "./dailyvideo/_metadata";
13+
import discord_config_json from "./discord/config.json";
1314
import { metadata as exchange2013calendar__metadata_ts } from "./exchange2013calendar/_metadata";
1415
import { metadata as exchange2016calendar__metadata_ts } from "./exchange2016calendar/_metadata";
1516
import exchangecalendar_config_json from "./exchangecalendar/config.json";
@@ -70,6 +71,7 @@ export const appStoreMetadata = {
7071
closecom: closecom_config_json,
7172
cron: cron_config_json,
7273
dailyvideo: dailyvideo__metadata_ts,
74+
discord: discord_config_json,
7375
exchange2013calendar: exchange2013calendar__metadata_ts,
7476
exchange2016calendar: exchange2016calendar__metadata_ts,
7577
exchangecalendar: exchangecalendar_config_json,

packages/app-store/apps.server.generated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const apiHandlers = {
1010
campfire: import("./campfire/api"),
1111
closecom: import("./closecom/api"),
1212
cron: import("./cron/api"),
13+
discord: import("./discord/api"),
1314
exchange2013calendar: import("./exchange2013calendar/api"),
1415
exchange2016calendar: import("./exchange2016calendar/api"),
1516
exchangecalendar: import("./exchangecalendar/api"),
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
items:
3+
- 1.jpg
4+
- 2.jpg
5+
- 3.jpg
6+
- 4.jpg
7+
---
8+
9+
{DESCRIPTION}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { createDefaultInstallation } from "@calcom/app-store/_utils/installation";
2+
import type { AppDeclarativeHandler } from "@calcom/types/AppHandler";
3+
4+
import appConfig from "../config.json";
5+
6+
const handler: AppDeclarativeHandler = {
7+
appType: appConfig.type,
8+
variant: appConfig.variant,
9+
slug: appConfig.slug,
10+
supportsMultipleInstalls: false,
11+
handlerType: "add",
12+
createCredential: ({ appType, user, slug }) =>
13+
createDefaultInstallation({ appType, userId: user.id, slug, key: {} }),
14+
};
15+
16+
export default handler;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as add } from "./add";
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"/*": "Don't modify slug - If required, do it using cli edit command",
3+
"name": "Discord",
4+
"slug": "discord",
5+
"type": "discord_video",
6+
"imageSrc": "/api/app-store/discord/icon.svg",
7+
"logo": "/api/app-store/discord/icon.svg",
8+
"url": "https://discord.com/",
9+
"variant": "conferencing",
10+
"categories": ["video"],
11+
"publisher": "Cal.com, Inc.",
12+
"email": "[email protected]",
13+
"appData": {
14+
"location": {
15+
"type": "integrations:{SLUG}_video",
16+
"label": "{TITLE}",
17+
"linkType": "static",
18+
"organizerInputPlaceholder": "https://discord.gg/420gg69",
19+
"urlRegExp": "^http(s)?:\\/\\/(www\\.)?discord.gg\\/[a-zA-Z0-9]*"
20+
}
21+
},
22+
"description": "Copy your server invite link and start scheduling calls in Discord! Discord is a VoIP and instant messaging social platform. Users have the ability to communicate with voice calls, video calls, text messaging, media and files in private chats or as part of communities.",
23+
"isTemplate": false,
24+
"__createdUsingCli": true,
25+
"__template": "event-type-location-video-static"
26+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * as api from "./api";
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://json.schemastore.org/package.json",
3+
"private": true,
4+
"name": "@calcom/discord",
5+
"version": "0.0.0",
6+
"main": "./index.ts",
7+
"dependencies": {
8+
"@calcom/lib": "*"
9+
},
10+
"devDependencies": {
11+
"@calcom/types": "*"
12+
},
13+
"description": "Discord is a VoIP and instant messaging social platform. Users have the ability to communicate with voice calls, video calls, text messaging, media and files in private chats or as part of communities"
14+
}
181 KB
Loading
221 KB
Loading

0 commit comments

Comments
 (0)