Skip to content

Scheduling infrastructure for absolutely everyone.

feat: getalby.com app (#11347)

Peer Richelsenadb0530d69ce
diff --git a/packages/app-store/alby/DESCRIPTION.md b/packages/app-store/alby/DESCRIPTION.md
new file mode 100644
index 00000000000..c8612e68943
--- /dev/null
+++ b/packages/app-store/alby/DESCRIPTION.md
@@ -0,0 +1,8 @@
+---
+items:
+ - iframe: { src: https://www.youtube.com/embed/tExtOJqnI0Q }
+ - 1.jpg
+ - 2.png
+---
+
+{DESCRIPTION}
diff --git a/packages/app-store/alby/api/add.ts b/packages/app-store/alby/api/add.ts
new file mode 100644
index 00000000000..6ab31065776
--- /dev/null
+++ b/packages/app-store/alby/api/add.ts
@@ -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, userId: user.id, slug, key: {}, teamId }),
+};
+
+export default handler;
diff --git a/packages/app-store/alby/api/index.ts b/packages/app-store/alby/api/index.ts
new file mode 100644
index 00000000000..4c0d2ead01e
--- /dev/null
+++ b/packages/app-store/alby/api/index.ts
@@ -0,0 +1 @@
+export { default as add } from "./add";
diff --git a/packages/app-store/alby/components/.gitkeep b/packages/app-store/alby/components/.gitkeep
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/packages/app-store/alby/config.json b/packages/app-store/alby/config.json
new file mode 100644
index 00000000000..800fd462780
--- /dev/null
+++ b/packages/app-store/alby/config.json
@@ -0,0 +1,17 @@
+{
+ "/*": "Don't modify slug - If required, do it using cli edit command",
+ "name": "Alby",
+ "slug": "alby",
+ "type": "alby_payment",
+ "logo": "icon.svg",
+ "url": "https://example.com/link",
+ "variant": "payment",
+ "categories": ["payment"],
+ "publisher": "Alby",
+ "email": "[email protected]",
+ "description": "Your Bitcoin & Nostr companion for the web. Use Alby to charge Satoshi for your Cal.com meetings.\r",
+ "isTemplate": false,
+ "__createdUsingCli": true,
+ "__template": "basic",
+ "dirName": "alby"
+}
diff --git a/packages/app-store/alby/index.ts b/packages/app-store/alby/index.ts
new file mode 100644
index 00000000000..d7f36022040
--- /dev/null
+++ b/packages/app-store/alby/index.ts
@@ -0,0 +1 @@
+export * as api from "./api";
diff --git a/packages/app-store/alby/package.json b/packages/app-store/alby/package.json
new file mode 100644
index 00000000000..2c6d62a181b
--- /dev/null
+++ b/packages/app-store/alby/package.json
@@ -0,0 +1,14 @@
+{
+ "$schema": "https://json.schemastore.org/package.json",
+ "private": true,
+ "name": "@calcom/alby",
+ "version": "0.0.0",
+ "main": "./index.ts",
+ "dependencies": {
+ "@calcom/lib": "*"
+ },
+ "devDependencies": {
+ "@calcom/types": "*"
+ },
+ "description": "Your Bitcoin & Nostr companion for the web. Use Alby to charge Satoshi for your Cal.com meetings.\r"
+}
diff --git a/packages/app-store/alby/static/1.jpg b/packages/app-store/alby/static/1.jpg
new file mode 100644
index 00000000000..a93b145b349
Binary files /dev/null and b/packages/app-store/alby/static/1.jpg differ
diff --git a/packages/app-store/alby/static/2.png b/packages/app-store/alby/static/2.png
new file mode 100644
index 00000000000..7ecb1c19fc4
Binary files /dev/null and b/packages/app-store/alby/static/2.png differ
diff --git a/packages/app-store/alby/static/icon.svg b/packages/app-store/alby/static/icon.svg
new file mode 100644
index 00000000000..b214f9e0a2e
--- /dev/null
+++ b/packages/app-store/alby/static/icon.svg
@@ -0,0 +1,12 @@
+<svg width="554" height="554" viewBox="0 0 554 554" fill="none" xmlns="http://www.w3.org/2000/svg">
+<rect width="554" height="554" rx="64" fill="white"/>
+<path d="M127.7 202.4C107.431 202.4 90.9999 185.969 90.9999 165.7C90.9999 145.431 107.431 129 127.7 129C147.969 129 164.4 145.431 164.4 165.7C164.4 185.969 147.969 202.4 127.7 202.4Z" fill="black"/>
+<path d="M121.6 160.2L190.1 228.7" stroke="black" stroke-width="18.3"/>
+<path d="M427.2 202.4C447.469 202.4 463.9 185.969 463.9 165.7C463.9 145.431 447.469 129 427.2 129C406.931 129 390.5 145.431 390.5 165.7C390.5 185.969 406.931 202.4 427.2 202.4Z" fill="black"/>
+<path d="M434 160.2L365.5 228.7" stroke="black" stroke-width="18.3"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M138.1 384.6C128.451 380.122 120.543 372.597 115.592 363.182C110.641 353.768 108.922 342.987 110.7 332.5C127.3 240 196.2 170.6 278.7 170.6C361.4 170.6 430.5 240.3 446.8 333.2C448.539 343.695 446.779 354.47 441.792 363.867C436.805 373.263 428.866 380.759 419.2 385.2C375.441 405.799 327.664 416.454 279.3 416.4C228.8 416.4 180.9 405 138.1 384.6Z" fill="#FFDF6F"/>
+<path d="M119.8 334.2C135.8 244.7 201.8 179.8 278.8 179.8V161.5C190.6 161.5 118.8 235.3 101.7 330.9L119.7 334.1L119.8 334.2ZM278.8 179.8C355.8 179.8 422 245.1 437.8 334.8L455.8 331.6C439 235.6 367 161.5 278.8 161.5V179.8ZM415.3 376.9C372.76 396.917 326.314 407.265 279.3 407.2V425.5C330.7 425.5 379.4 414 423.1 393.5L415.3 376.9ZM279.3 407.2C230.2 407.2 183.7 396.1 142.1 376.3L134.2 392.9C178.2 413.9 227.4 425.5 279.3 425.5V407.2ZM437.8 334.8C440.8 352.1 431.6 369.3 415.3 376.9L423.1 393.5C446.5 382.5 460.4 357.5 455.8 331.5L437.8 334.8ZM101.7 330.8C99.5558 343.269 101.577 356.098 107.451 367.303C113.325 378.509 122.725 387.47 134.2 392.8L142.1 376.3C134.267 372.688 127.84 366.599 123.81 358.973C119.78 351.347 118.371 342.606 119.8 334.1L101.6 330.9L101.7 330.8Z" fill="black"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M173.4 361.6C157.5 355.1 148.1 338.2 153.6 321.9C170.6 271.7 220.2 235.4 278.7 235.4C337.2 235.4 386.8 271.7 403.8 321.9C409.4 338.2 399.9 355.1 384 361.6C350.559 375.19 314.796 382.153 278.7 382.1C241.5 382.1 205.9 374.8 173.4 361.6Z" fill="black"/>
+<path d="M320.9 338.1C337.8 338.1 351.5 327.176 351.5 313.7C351.5 300.224 337.8 289.3 320.9 289.3C304 289.3 290.3 300.224 290.3 313.7C290.3 327.176 304 338.1 320.9 338.1Z" fill="white"/>
+<path d="M233.4 338.1C250.3 338.1 264 327.176 264 313.7C264 300.224 250.3 289.3 233.4 289.3C216.5 289.3 202.8 300.224 202.8 313.7C202.8 327.176 216.5 338.1 233.4 338.1Z" fill="white"/>
+</svg>
diff --git a/packages/app-store/apps.metadata.generated.ts b/packages/app-store/apps.metadata.generated.ts
index c9c05fa1707..87b7ae5de30 100644
--- a/packages/app-store/apps.metadata.generated.ts
+++ b/packages/app-store/apps.metadata.generated.ts
@@ -2,6 +2,7 @@
This file is autogenerated using the command `yarn app-store:build --watch`.
Don't modify this file manually.
**/
+import alby_config_json from "./alby/config.json";
import amie_config_json from "./amie/config.json";
import { metadata as applecalendar__metadata_ts } from "./applecalendar/_metadata";
import around_config_json from "./around/config.json";
@@ -73,6 +74,7 @@ import zohocrm_config_json from "./zohocrm/config.json";
import { metadata as zoomvideo__metadata_ts } from "./zoomvideo/_metadata";
export const appStoreMetadata = {
+ alby: alby_config_json,
amie: amie_config_json,
applecalendar: applecalendar__metadata_ts,
around: around_config_json,
diff --git a/packages/app-store/apps.server.generated.ts b/packages/app-store/apps.server.generated.ts
index e37b6e7113f..4f17a0f13b0 100644
--- a/packages/app-store/apps.server.generated.ts
+++ b/packages/app-store/apps.server.generated.ts
@@ -3,6 +3,7 @@
Don't modify this file manually.
**/
export const apiHandlers = {
+ alby: import("./alby/api"),
amie: import("./amie/api"),
applecalendar: import("./applecalendar/api"),
around: import("./around/api"),