Add Activepieces integration for workflow automation

- Add Activepieces fork with SmoothSchedule custom piece
- Create integrations app with Activepieces service layer
- Add embed token endpoint for iframe integration
- Create Automations page with embedded workflow builder
- Add sidebar visibility fix for embed mode
- Add list inactive customers endpoint to Public API
- Include SmoothSchedule triggers: event created/updated/cancelled
- Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
poduck
2025-12-18 22:59:37 -05:00
parent 9848268d34
commit 3aa7199503
16292 changed files with 1284892 additions and 4708 deletions

View File

@@ -0,0 +1,33 @@
{
"extends": [
"../../../../.eslintrc.base.json"
],
"ignorePatterns": [
"!**/*"
],
"overrides": [
{
"files": [
"*.ts",
"*.tsx",
"*.js",
"*.jsx"
],
"rules": {}
},
{
"files": [
"*.ts",
"*.tsx"
],
"rules": {}
},
{
"files": [
"*.js",
"*.jsx"
],
"rules": {}
}
]
}

View File

@@ -0,0 +1,7 @@
# pieces-gameball
This library was generated with [Nx](https://nx.dev).
## Building
Run `nx build pieces-gameball` to build the library.

View File

@@ -0,0 +1,4 @@
{
"name": "@activepieces/piece-gameball",
"version": "0.0.5"
}

View File

@@ -0,0 +1,65 @@
{
"name": "pieces-gameball",
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/pieces/community/gameball/src",
"projectType": "library",
"release": {
"version": {
"currentVersionResolver": "git-tag",
"preserveLocalDependencyProtocols": false,
"manifestRootsToUpdate": [
"dist/{projectRoot}"
]
}
},
"tags": [],
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/packages/pieces/community/gameball",
"tsConfig": "packages/pieces/community/gameball/tsconfig.lib.json",
"packageJson": "packages/pieces/community/gameball/package.json",
"main": "packages/pieces/community/gameball/src/index.ts",
"assets": [
"packages/pieces/community/gameball/*.md",
{
"input": "packages/pieces/community/gameball/src/i18n",
"output": "./src/i18n",
"glob": "**/!(i18n.json)"
}
],
"buildableProjectDepsInPackageJsonType": "dependencies",
"updateBuildableProjectDepsInPackageJson": true
},
"dependsOn": [
"^build",
"prebuild"
]
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": [
"{options.outputFile}"
]
},
"prebuild": {
"executor": "nx:run-commands",
"options": {
"cwd": "packages/pieces/community/gameball",
"command": "bun install --no-save --silent"
},
"dependsOn": [
"^build"
]
}
}
}

View File

@@ -0,0 +1,7 @@
{
"Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information": "Bitte nutze deinen Gameball api Schlüssel. Besuche [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) für weitere Informationen",
"Send event": "Ereignis senden",
"Send an event to gameball": "Sende ein Event an Gameball",
"Your Player Unique Id": "Deine einzigartige Spieler-Id",
"Event Name": "Ereignisname"
}

View File

@@ -0,0 +1,7 @@
{
"Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information": "Utiliza tu clave de gameball api. Visita [centro de ayuda](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) para más información",
"Send event": "Enviar evento",
"Send an event to gameball": "Enviar un evento a gameball",
"Your Player Unique Id": "Tu Id Único de Jugador",
"Event Name": "Nombre del evento"
}

View File

@@ -0,0 +1,7 @@
{
"Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information": "Veuillez utiliser votre clé api de gameball. Visitez [centre d'aide](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) pour plus d'informations",
"Send event": "Envoyer un événement",
"Send an event to gameball": "Envoyer un événement à gameball",
"Your Player Unique Id": "Identifiant unique de votre joueur",
"Event Name": "Nom de l'événement"
}

View File

@@ -0,0 +1,7 @@
{
"Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information": "Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information",
"Send event": "イベントを送信",
"Send an event to gameball": "ゲームボールにイベントを送信する",
"Your Player Unique Id": "あなたのプレイヤー固有ID",
"Event Name": "イベント名"
}

View File

@@ -0,0 +1,7 @@
{
"Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information": "Gebruik uw gameball api sleutel. bezoek [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) voor meer informatie",
"Send event": "Gebeurtenis verzenden",
"Send an event to gameball": "Stuur een gebeurtenis naar gameball",
"Your Player Unique Id": "Unieke Id van uw speler",
"Event Name": "Naam van gebeurtenis"
}

View File

@@ -0,0 +1,7 @@
{
"Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information": "Por favor, use sua chave de api de gameball. visite [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) para obter mais informações",
"Send event": "Enviar evento",
"Send an event to gameball": "Enviar um evento para o gameball",
"Your Player Unique Id": "Seu ID único de jogador",
"Event Name": "Nome do Evento"
}

View File

@@ -0,0 +1,8 @@
{
"Gameball": "Геймбол",
"Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information": "Пожалуйста, используйте ключ api геймбола. Посетите [Центр поддержки](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) для получения дополнительной информации",
"Send event": "Отправить событие",
"Send an event to gameball": "Отправить событие в геймбол",
"Your Player Unique Id": "Уникальный Id игрока",
"Event Name": "Название события"
}

View File

@@ -0,0 +1,7 @@
{
"Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information": "Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information",
"Send event": "Send event",
"Send an event to gameball": "Send an event to gameball",
"Your Player Unique Id": "Your Player Unique Id",
"Event Name": "Event Name"
}

View File

@@ -0,0 +1,8 @@
{
"Gameball": "Gameball",
"Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information": "Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information",
"Send event": "Send event",
"Send an event to gameball": "Send an event to gameball",
"Your Player Unique Id": "Your Player Unique Id",
"Event Name": "Event Name"
}

View File

@@ -0,0 +1,7 @@
{
"Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information": "Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information",
"Send event": "Send event",
"Send an event to gameball": "Send an event to gameball",
"Your Player Unique Id": "Your Player Unique Id",
"Event Name": "Event Name"
}

View File

@@ -0,0 +1,19 @@
import { createPiece, PieceAuth } from "@activepieces/pieces-framework";
import { sendEvent } from "./lib/actions/send-event";
export const gameballAuth = PieceAuth.SecretText({
displayName: 'API Key',
required: true,
description: 'Please use your gameball api key. visit [help center](https://help.gameball.co/en/articles/3467114-get-your-account-integration-details-api-key-and-transaction-key) for more information',
});
export const gameball = createPiece({
displayName: "Gameball",
auth: gameballAuth,
minimumSupportedRelease: '0.30.0',
logoUrl: "https://cdn.activepieces.com/pieces/gameball.png",
authors: ["Raamyy"],
actions: [sendEvent],
triggers: [],
});

View File

@@ -0,0 +1,40 @@
import { createAction, Property } from '@activepieces/pieces-framework';
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
import { gameballAuth } from '../..';
export const sendEvent = createAction({
// auth: check https://www.activepieces.com/docs/developers/piece-reference/authentication,
name: 'sendEvent',
auth: gameballAuth,
displayName: 'Send event',
description: 'Send an event to gameball',
props: {
playerUniqueId: Property.ShortText({
displayName: 'Your Player Unique Id',
required: true,
}),
eventName: Property.ShortText({
displayName: 'Event Name',
required: true,
}),
},
async run(context) {
const res = await httpClient.sendRequest<string[]>({
method: HttpMethod.POST,
url: 'https://api.gameball.co/api/v3.0/integrations/event',
headers: {
APIKey: context.auth.secret_text, // Pass API key in headers
},
// update the event body with eventmetadata if requested in the future.
body: {
"playerUniqueId": context.propsValue.playerUniqueId,
"events": {
[context.propsValue.eventName]: {
}
}
}
});
return res.body;
},
});

View File

@@ -0,0 +1,19 @@
{
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "../../../../dist/out-tsc",
"declaration": true,
"types": ["node"]
},
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}