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:
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"extends": ["../../../../.eslintrc.json"],
|
||||
"ignorePatterns": ["!**/*"],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.ts", "*.tsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# pieces-activepieces
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Building
|
||||
|
||||
Run `nx build pieces-activepieces` to build the library.
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "@activepieces/piece-activepieces",
|
||||
"version": "0.3.1"
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"name": "pieces-activepieces",
|
||||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/pieces/community/activepieces/src",
|
||||
"projectType": "library",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:tsc",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
"options": {
|
||||
"outputPath": "dist/packages/pieces/community/activepieces",
|
||||
"tsConfig": "packages/pieces/community/activepieces/tsconfig.lib.json",
|
||||
"packageJson": "packages/pieces/community/activepieces/package.json",
|
||||
"main": "packages/pieces/community/activepieces/src/index.ts",
|
||||
"assets": [
|
||||
"packages/pieces/community/activepieces/*.md",
|
||||
{
|
||||
"input": "packages/pieces/community/activepieces/src/i18n",
|
||||
"output": "./src/i18n",
|
||||
"glob": "**/!(i18n.json)"
|
||||
}
|
||||
],
|
||||
"buildableProjectDepsInPackageJsonType": "dependencies",
|
||||
"updateBuildableProjectDepsInPackageJson": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build",
|
||||
"prebuild"
|
||||
]
|
||||
},
|
||||
"publish": {
|
||||
"command": "node tools/scripts/publish.mjs pieces-activepieces {args.ver} {args.tag}",
|
||||
"dependsOn": [
|
||||
"build"
|
||||
]
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/eslint:lint",
|
||||
"outputs": [
|
||||
"{options.outputFile}"
|
||||
]
|
||||
},
|
||||
"prebuild": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"cwd": "packages/pieces/community/activepieces",
|
||||
"command": "bun install --no-save --silent"
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"Open source no-code business automation": "Open Source no-code Business Automation",
|
||||
"Base URL": "Basis-URL",
|
||||
"API Key": "API-Schlüssel",
|
||||
"\nActivepieces Platform API is available under the Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n": "\nActivepieces Platform-API ist unter der Plattform-Edition verfügbar.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Hinweis**: Der API-Schlüssel ist im Plattform-Dashboard verfügbar.\n\n",
|
||||
"Create Project": "Projekt erstellen",
|
||||
"Update Project": "Projekt aktualisieren",
|
||||
"List Projects": "Projekte auflisten",
|
||||
"Custom API Call": "Eigener API-Aufruf",
|
||||
"Create a new project": "Neues Projekt erstellen",
|
||||
"Update a project": "Projekt aktualisieren",
|
||||
"List all projects": "Alle Projekte auflisten",
|
||||
"Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
|
||||
"Display Name": "Anzeigename",
|
||||
"Id": "Id",
|
||||
"Notify Status": "Benachrichtigungsstatus",
|
||||
"Team Members": "Teammitglieder",
|
||||
"Method": "Methode",
|
||||
"Headers": "Kopfzeilen",
|
||||
"Query Parameters": "Abfrageparameter",
|
||||
"Body": "Körper",
|
||||
"Response is Binary ?": "Antwort ist binär?",
|
||||
"No Error on Failure": "Kein Fehler bei Fehler",
|
||||
"Timeout (in seconds)": "Timeout (in Sekunden)",
|
||||
"Id of the project": "Id des Projekts",
|
||||
"Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
|
||||
"Enable for files like PDFs, images, etc..": "Aktivieren für Dateien wie PDFs, Bilder, etc..",
|
||||
"Always notify": "Immer benachrichtigen",
|
||||
"Never notify": "Nie benachrichtigen",
|
||||
"GET": "ERHALTEN",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "LÖSCHEN",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"Open source no-code business automation": "Código Abierto no-código automatización de negocios",
|
||||
"Base URL": "URL base",
|
||||
"API Key": "Clave API",
|
||||
"\nActivepieces Platform API is available under the Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n": "\nLa API de Plataforma Activepieces está disponible en la Edición de Plataforma.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Nota**: La clave API está disponible en el panel de Plataforma.\n\n",
|
||||
"Create Project": "Crear proyecto",
|
||||
"Update Project": "Actualizar proyecto",
|
||||
"List Projects": "Lista de proyectos",
|
||||
"Custom API Call": "Llamada API personalizada",
|
||||
"Create a new project": "Crear un nuevo proyecto",
|
||||
"Update a project": "Actualizar un proyecto",
|
||||
"List all projects": "Listar todos los proyectos",
|
||||
"Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
|
||||
"Display Name": "Mostrar nombre",
|
||||
"Id": "Id",
|
||||
"Notify Status": "Notificar estado",
|
||||
"Team Members": "Miembros del equipo",
|
||||
"Method": "Método",
|
||||
"Headers": "Encabezados",
|
||||
"Query Parameters": "Parámetros de consulta",
|
||||
"Body": "Cuerpo",
|
||||
"Response is Binary ?": "¿Respuesta es binaria?",
|
||||
"No Error on Failure": "No hay ningún error en fallo",
|
||||
"Timeout (in seconds)": "Tiempo de espera (en segundos)",
|
||||
"Id of the project": "Id del proyecto",
|
||||
"Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
|
||||
"Enable for files like PDFs, images, etc..": "Activar para archivos como PDF, imágenes, etc.",
|
||||
"Always notify": "Notificar siempre",
|
||||
"Never notify": "Nunca notificar",
|
||||
"GET": "RECOGER",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "BORRAR",
|
||||
"HEAD": "LIMPIO"
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"Open source no-code business automation": "Automatisation professionnelle no-code et open source",
|
||||
"Base URL": "URL de base",
|
||||
"API Key": "Clé API",
|
||||
"\nActivepieces Platform API is available under the Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n": "\nL'API de la plateforme Activepieces est disponible dans l'édition de la Platfeorme.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note** : La clé API est disponible dans le tableau de bord de la plateforme.\n\n",
|
||||
"Create Project": "Créer un projet",
|
||||
"Update Project": "Mettre à jour le projet",
|
||||
"List Projects": "Lister les projets",
|
||||
"Custom API Call": "Appel d'API personnalisé",
|
||||
"Create a new project": "Créer un nouveau projet",
|
||||
"Update a project": "Mettre à jour un projet",
|
||||
"List all projects": "Lister tous les projets",
|
||||
"Make a custom API call to a specific endpoint": "Passer un appel API personnalisé à un endpoint spécifique",
|
||||
"Display Name": "Nom affiché",
|
||||
"Id": "Id",
|
||||
"Notify Status": "Notifier le statut",
|
||||
"Team Members": "Membres de l'équipe",
|
||||
"Method": "Méthode",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Paramètres de requête",
|
||||
"Body": "Body",
|
||||
"Response is Binary ?": "La réponse est Binaire ?",
|
||||
"No Error on Failure": "Aucune erreur en cas d'échec",
|
||||
"Timeout (in seconds)": "Délai d'expiration (en secondes)",
|
||||
"Id of the project": "Id du projet",
|
||||
"Authorization headers are injected automatically from your connection.": "Les headers d'autorisation sont injectés automatiquement à partir de votre connexion.",
|
||||
"Enable for files like PDFs, images, etc..": "Activer pour les fichiers comme les PDF, les images, etc.",
|
||||
"Always notify": "Toujours notifier",
|
||||
"Never notify": "Ne jamais notifier",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"Open source no-code business automation": "オープンソースコードのない業務自動化",
|
||||
"Base URL": "ベースURL",
|
||||
"API Key": "API キー",
|
||||
"\nActivepieces Platform API is available under the Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n": "\nActiveepieces Platform API is available under the Platform Edition.\n(https://www.activeeces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n",
|
||||
"Create Project": "プロジェクトを作成",
|
||||
"Update Project": "プロジェクトを更新",
|
||||
"List Projects": "プロジェクト一覧",
|
||||
"Custom API Call": "カスタムAPI通話",
|
||||
"Create a new project": "新しいプロジェクトを作成",
|
||||
"Update a project": "プロジェクトを更新",
|
||||
"List all projects": "すべてのプロジェクトの一覧",
|
||||
"Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
|
||||
"Display Name": "表示名",
|
||||
"Id": "Id",
|
||||
"Notify Status": "ステータスを通知する",
|
||||
"Team Members": "チーム メンバー",
|
||||
"Method": "方法",
|
||||
"Headers": "ヘッダー",
|
||||
"Query Parameters": "クエリパラメータ",
|
||||
"Body": "本文",
|
||||
"Response is Binary ?": "応答はバイナリですか?",
|
||||
"No Error on Failure": "失敗時にエラーはありません",
|
||||
"Timeout (in seconds)": "タイムアウト(秒)",
|
||||
"Id of the project": "プロジェクトの Id",
|
||||
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
|
||||
"Enable for files like PDFs, images, etc..": "PDF、画像などのファイルを有効にします。",
|
||||
"Always notify": "常に通知",
|
||||
"Never notify": "通知しない",
|
||||
"GET": "取得",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "削除",
|
||||
"HEAD": "頭"
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"Open source no-code business automation": "Open source zakelijke automatisering zonder code",
|
||||
"Base URL": "Basis URL",
|
||||
"API Key": "API Sleutel",
|
||||
"\nActivepieces Platform API is available under the Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n": "\nActivepieces Platform API is beschikbaar onder de Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Let op**: De API Key is beschikbaar in het Platform Dashboard.\n\n",
|
||||
"Create Project": "Project aanmaken",
|
||||
"Update Project": "Project bijwerken",
|
||||
"List Projects": "Projecten weergeven",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Create a new project": "Maak een nieuw project",
|
||||
"Update a project": "Update een project",
|
||||
"List all projects": "Toon alle projecten",
|
||||
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
|
||||
"Display Name": "Weergavenaam",
|
||||
"Id": "Id",
|
||||
"Notify Status": "Notificatie status",
|
||||
"Team Members": "Team leden",
|
||||
"Method": "Methode",
|
||||
"Headers": "Kopteksten",
|
||||
"Query Parameters": "Query parameters",
|
||||
"Body": "Lichaam",
|
||||
"Response is Binary ?": "Antwoord is binair?",
|
||||
"No Error on Failure": "Geen fout bij fout",
|
||||
"Timeout (in seconds)": "Time-out (in seconden)",
|
||||
"Id of the project": "Id van het project",
|
||||
"Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
|
||||
"Enable for files like PDFs, images, etc..": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc..",
|
||||
"Always notify": "Altijd melden",
|
||||
"Never notify": "Nooit melden",
|
||||
"GET": "KRIJG",
|
||||
"POST": "POSTE",
|
||||
"PATCH": "BEKIJK",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "VERWIJDEREN",
|
||||
"HEAD": "HOOFD"
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"Open source no-code business automation": "Automação de código aberto sem código aberto",
|
||||
"Base URL": "URL Base",
|
||||
"API Key": "Chave de API",
|
||||
"\nActivepieces Platform API is available under the Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n": "\nActivepieces Platform API está disponível sob a Edição de Plataforma.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Nota**: A API Key está disponível no Painel da Plataforma.\n\n",
|
||||
"Create Project": "Criar Projeto",
|
||||
"Update Project": "Atualizar Projeto",
|
||||
"List Projects": "Listar Projetos",
|
||||
"Custom API Call": "Chamada de API personalizada",
|
||||
"Create a new project": "Criar um novo projeto",
|
||||
"Update a project": "Atualizar um projeto",
|
||||
"List all projects": "Listar todos os projetos",
|
||||
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
|
||||
"Display Name": "Nome de Exibição",
|
||||
"Id": "Id",
|
||||
"Notify Status": "Notificar Status",
|
||||
"Team Members": "Membros da equipe",
|
||||
"Method": "Método",
|
||||
"Headers": "Cabeçalhos",
|
||||
"Query Parameters": "Parâmetros da consulta",
|
||||
"Body": "Conteúdo",
|
||||
"Response is Binary ?": "A resposta é binária ?",
|
||||
"No Error on Failure": "Nenhum erro no Failure",
|
||||
"Timeout (in seconds)": "Tempo limite (em segundos)",
|
||||
"Id of the project": "ID do projeto",
|
||||
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
|
||||
"Enable for files like PDFs, images, etc..": "Habilitar para arquivos como PDFs, imagens, etc..",
|
||||
"Always notify": "Sempre notificar",
|
||||
"Never notify": "Nunca notificar",
|
||||
"GET": "OBTER",
|
||||
"POST": "POSTAR",
|
||||
"PATCH": "COMPRAR",
|
||||
"PUT": "COLOCAR",
|
||||
"DELETE": "EXCLUIR",
|
||||
"HEAD": "CABEÇA"
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"Activepieces Platform": "Платформа активных частей",
|
||||
"Open source no-code business automation": "Открытый исходный код бизнес-автоматизация",
|
||||
"Base URL": "Базовый URL",
|
||||
"API Key": "Ключ API",
|
||||
"\nActivepieces Platform API is available under the Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n": "\nActivepieces Platform API доступен под версией платформы.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Примечание**: API ключ доступен в панели управления платформой.\n\n",
|
||||
"Create Project": "Создать проект",
|
||||
"Update Project": "Обновить проект",
|
||||
"List Projects": "Список проектов",
|
||||
"Custom API Call": "Пользовательский вызов API",
|
||||
"Create a new project": "Создать новый проект",
|
||||
"Update a project": "Изменить проект",
|
||||
"List all projects": "Список всех проектов",
|
||||
"Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
|
||||
"Display Name": "Показать имя",
|
||||
"Id": "Id",
|
||||
"Notify Status": "Статус уведомления",
|
||||
"Tasks": "Задачи",
|
||||
"Team Members": "Члены команды",
|
||||
"Method": "Метод",
|
||||
"Headers": "Заголовки",
|
||||
"Query Parameters": "Параметры запроса",
|
||||
"Body": "Тело",
|
||||
"No Error on Failure": "Нет ошибок при ошибке",
|
||||
"Timeout (in seconds)": "Таймаут (в секундах)",
|
||||
"Id of the project": "Id проекта",
|
||||
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
|
||||
"Always notify": "Всегда уведомлять",
|
||||
"Never notify": "Никогда не уведомлять",
|
||||
"GET": "ПОЛУЧИТЬ",
|
||||
"POST": "ПОСТ",
|
||||
"PATCH": "ПАТЧ",
|
||||
"PUT": "ПОКУПИТЬ",
|
||||
"DELETE": "УДАЛИТЬ",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"Open source no-code business automation": "Open source no-code business automation",
|
||||
"Base URL": "Base URL",
|
||||
"API Key": "API Key",
|
||||
"\nActivepieces Platform API is available under the Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n": "\nActivepieces Platform API is available under the Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n",
|
||||
"Create Project": "Create Project",
|
||||
"Update Project": "Update Project",
|
||||
"List Projects": "List Projects",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Create a new project": "Create a new project",
|
||||
"Update a project": "Update a project",
|
||||
"List all projects": "List all projects",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Display Name": "Display Name",
|
||||
"Id": "Id",
|
||||
"Notify Status": "Notify Status",
|
||||
"Team Members": "Team Members",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"Response is Binary ?": "Response is Binary ?",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"Id of the project": "Id of the project",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
||||
"Always notify": "Always notify",
|
||||
"Never notify": "Never notify",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"Activepieces Platform": "Activepieces Platform",
|
||||
"Open source no-code business automation": "Open source no-code business automation",
|
||||
"Base URL": "Base URL",
|
||||
"API Key": "API Key",
|
||||
"\nActivepieces Platform API is available under the Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n": "\nActivepieces Platform API is available under the Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n",
|
||||
"Create Project": "Create Project",
|
||||
"Update Project": "Update Project",
|
||||
"List Projects": "List Projects",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Create a new project": "Create a new project",
|
||||
"Update a project": "Update a project",
|
||||
"List all projects": "List all projects",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Display Name": "Display Name",
|
||||
"Id": "Id",
|
||||
"Notify Status": "Notify Status",
|
||||
"Tasks": "Tasks",
|
||||
"Team Members": "Team Members",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"Id of the project": "Id of the project",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"Always notify": "Always notify",
|
||||
"Never notify": "Never notify",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"Open source no-code business automation": "Open source no-code business automation",
|
||||
"Base URL": "基本网址",
|
||||
"API Key": "API 密钥",
|
||||
"\nActivepieces Platform API is available under the Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n": "\nActivepieces Platform API is available under the Platform Edition.\n(https://www.activepieces.com/docs/admin-console/overview)\n\n**Note**: The API Key is available in the Platform Dashboard.\n\n",
|
||||
"Create Project": "Create Project",
|
||||
"Update Project": "Update Project",
|
||||
"List Projects": "List Projects",
|
||||
"Custom API Call": "自定义 API 呼叫",
|
||||
"Create a new project": "Create a new project",
|
||||
"Update a project": "Update a project",
|
||||
"List all projects": "List all projects",
|
||||
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
|
||||
"Display Name": "显示名称",
|
||||
"Id": "Id",
|
||||
"Notify Status": "Notify Status",
|
||||
"Team Members": "Team Members",
|
||||
"Method": "方法",
|
||||
"Headers": "信头",
|
||||
"Query Parameters": "查询参数",
|
||||
"Body": "正文内容",
|
||||
"Response is Binary ?": "Response is Binary ?",
|
||||
"No Error on Failure": "失败时没有错误",
|
||||
"Timeout (in seconds)": "超时(秒)",
|
||||
"Id of the project": "Id of the project",
|
||||
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
|
||||
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
||||
"Always notify": "Always notify",
|
||||
"Never notify": "Never notify",
|
||||
"GET": "获取",
|
||||
"POST": "帖子",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "弹出",
|
||||
"DELETE": "删除",
|
||||
"HEAD": "黑色"
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
import {
|
||||
createPiece,
|
||||
PieceAuth,
|
||||
Property,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { createProject } from './lib/actions/create-project';
|
||||
import { listProject } from './lib/actions/list-project';
|
||||
import { updateProject } from './lib/actions/update-project';
|
||||
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
||||
|
||||
const markdown = `
|
||||
Activepieces Platform API is available under the Platform Edition.
|
||||
(https://www.activepieces.com/docs/admin-console/overview)
|
||||
|
||||
**Note**: The API Key is available in the Platform Dashboard.
|
||||
|
||||
`;
|
||||
|
||||
export const activePieceAuth = PieceAuth.CustomAuth({
|
||||
description: markdown,
|
||||
required: true,
|
||||
props: {
|
||||
baseApiUrl: Property.ShortText({
|
||||
displayName: 'Base URL',
|
||||
required: true,
|
||||
defaultValue: 'https://cloud.activepieces.com/api/v1',
|
||||
}),
|
||||
apiKey: PieceAuth.SecretText({
|
||||
displayName: 'API Key',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
||||
export const activepieces = createPiece({
|
||||
displayName: 'Activepieces Platform',
|
||||
description: 'Open source no-code business automation',
|
||||
auth: activePieceAuth,
|
||||
minimumSupportedRelease: '0.30.0',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/activepieces.png',
|
||||
authors: ['doskyft', 'abuaboud', 'AdamSelene'],
|
||||
actions: [
|
||||
createProject,
|
||||
updateProject,
|
||||
listProject,
|
||||
createCustomApiCallAction({
|
||||
baseUrl: (auth) => {
|
||||
return `${auth?.props.baseApiUrl}`;
|
||||
},
|
||||
auth: activePieceAuth,
|
||||
authMapping: async (auth) => ({
|
||||
Authorization: `Bearer ${auth.props.apiKey}`,
|
||||
}),
|
||||
}),
|
||||
],
|
||||
triggers: [],
|
||||
});
|
||||
@@ -0,0 +1,36 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import {
|
||||
AuthenticationType,
|
||||
httpClient,
|
||||
HttpMethod,
|
||||
} from '@activepieces/pieces-common';
|
||||
import { activePieceAuth } from '../../index';
|
||||
|
||||
export const createProject = createAction({
|
||||
name: 'create_project',
|
||||
auth: activePieceAuth,
|
||||
displayName: 'Create Project',
|
||||
description: 'Create a new project',
|
||||
props: {
|
||||
display_name: Property.ShortText({
|
||||
displayName: 'Display Name',
|
||||
description: undefined,
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run({ propsValue, auth }) {
|
||||
const response = await httpClient.sendRequest<string[]>({
|
||||
method: HttpMethod.POST,
|
||||
url: `${auth.props.baseApiUrl}/projects`,
|
||||
authentication: {
|
||||
type: AuthenticationType.BEARER_TOKEN,
|
||||
token: auth.props.apiKey,
|
||||
},
|
||||
body: {
|
||||
displayName: propsValue['display_name'],
|
||||
},
|
||||
});
|
||||
|
||||
return response.body;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,27 @@
|
||||
import { createAction } from '@activepieces/pieces-framework';
|
||||
import {
|
||||
AuthenticationType,
|
||||
httpClient,
|
||||
HttpMethod,
|
||||
} from '@activepieces/pieces-common';
|
||||
import { activePieceAuth } from '../../index';
|
||||
|
||||
export const listProject = createAction({
|
||||
name: 'list_project',
|
||||
auth: activePieceAuth,
|
||||
displayName: 'List Projects',
|
||||
description: 'List all projects',
|
||||
props: {},
|
||||
async run({ auth }) {
|
||||
const response = await httpClient.sendRequest<string[]>({
|
||||
method: HttpMethod.GET,
|
||||
url: `${auth.props.baseApiUrl}/projects`,
|
||||
authentication: {
|
||||
type: AuthenticationType.BEARER_TOKEN,
|
||||
token: auth.props.apiKey,
|
||||
},
|
||||
});
|
||||
|
||||
return response.body;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,66 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import {
|
||||
AuthenticationType,
|
||||
httpClient,
|
||||
HttpMethod,
|
||||
} from '@activepieces/pieces-common';
|
||||
import { activePieceAuth } from '../../index';
|
||||
|
||||
export const updateProject = createAction({
|
||||
name: 'update_project',
|
||||
auth: activePieceAuth,
|
||||
displayName: 'Update Project',
|
||||
description: 'Update a project',
|
||||
props: {
|
||||
id: Property.ShortText({
|
||||
displayName: 'Id',
|
||||
description: 'Id of the project',
|
||||
required: true,
|
||||
}),
|
||||
display_name: Property.ShortText({
|
||||
displayName: 'Display Name',
|
||||
description: undefined,
|
||||
required: true,
|
||||
}),
|
||||
notify_status: Property.StaticDropdown({
|
||||
displayName: 'Notify Status',
|
||||
description: undefined,
|
||||
required: true,
|
||||
options: {
|
||||
options: [
|
||||
{
|
||||
label: 'Always notify',
|
||||
value: 'ALWAYS',
|
||||
},
|
||||
{
|
||||
label: 'Never notify',
|
||||
value: 'NEVER',
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
team_members: Property.Number({
|
||||
displayName: 'Team Members',
|
||||
description: undefined,
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run({ propsValue, auth }) {
|
||||
const response = await httpClient.sendRequest<string[]>({
|
||||
method: HttpMethod.POST,
|
||||
url: `${auth.props.baseApiUrl}/projects/${propsValue['id']}`,
|
||||
authentication: {
|
||||
type: AuthenticationType.BEARER_TOKEN,
|
||||
token: auth.props.apiKey,
|
||||
},
|
||||
body: {
|
||||
displayName: propsValue['display_name'],
|
||||
plan: {
|
||||
teamMembers: propsValue['team_members'],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
return response.body;
|
||||
},
|
||||
});
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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"]
|
||||
}
|
||||
Reference in New Issue
Block a user