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,33 @@
|
||||
{
|
||||
"extends": [
|
||||
"../../../../.eslintrc.base.json"
|
||||
],
|
||||
"ignorePatterns": [
|
||||
"!**/*"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"*.ts",
|
||||
"*.tsx",
|
||||
"*.js",
|
||||
"*.jsx"
|
||||
],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.ts",
|
||||
"*.tsx"
|
||||
],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.js",
|
||||
"*.jsx"
|
||||
],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# pieces-formspark
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Building
|
||||
|
||||
Run `nx build pieces-formspark` to build the library.
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "@activepieces/piece-formspark",
|
||||
"version": "0.0.2",
|
||||
"type": "commonjs",
|
||||
"main": "./src/index.js",
|
||||
"types": "./src/index.d.ts",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"name": "pieces-formspark",
|
||||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/pieces/community/formspark/src",
|
||||
"projectType": "library",
|
||||
"release": {
|
||||
"version": {
|
||||
"manifestRootsToUpdate": [
|
||||
"dist/{projectRoot}"
|
||||
],
|
||||
"currentVersionResolver": "git-tag",
|
||||
"fallbackCurrentVersionResolver": "disk"
|
||||
}
|
||||
},
|
||||
"tags": [],
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:tsc",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
"options": {
|
||||
"outputPath": "dist/packages/pieces/community/formspark",
|
||||
"tsConfig": "packages/pieces/community/formspark/tsconfig.lib.json",
|
||||
"packageJson": "packages/pieces/community/formspark/package.json",
|
||||
"main": "packages/pieces/community/formspark/src/index.ts",
|
||||
"assets": [
|
||||
"packages/pieces/community/formspark/*.md",
|
||||
{
|
||||
"input": "packages/pieces/community/formspark/src/i18n",
|
||||
"output": "./src/i18n",
|
||||
"glob": "**/!(i18n.json)"
|
||||
}
|
||||
],
|
||||
"buildableProjectDepsInPackageJsonType": "dependencies",
|
||||
"updateBuildableProjectDepsInPackageJson": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"prebuild",
|
||||
"^build"
|
||||
]
|
||||
},
|
||||
"nx-release-publish": {
|
||||
"options": {
|
||||
"packageRoot": "dist/{projectRoot}"
|
||||
}
|
||||
},
|
||||
"prebuild": {
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
],
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"cwd": "packages/pieces/community/formspark",
|
||||
"command": "bun install --no-save --silent"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/eslint:lint",
|
||||
"outputs": [
|
||||
"{options.outputFile}"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"New Submission": "Neue Einreichung",
|
||||
"Triggers when form receives a new submission.": "Auslöser wenn Formular eine neue Einreichung erhält.",
|
||||
"Markdown": "Markdown",
|
||||
"**Live URL:**\n```text\n{{webhookUrl}}\n```\ngenerate sample data & triggers published flow.\n\n": "**Live URL:**\n```text\n{{webhookUrl}}\n```\ngeneriere Beispieldaten und löst den veröffentlichten Fluss aus.\n\n",
|
||||
"\nTo set up the trigger for new form submissions, follow these steps:\n\n1. Go to the \"Dashboard\" section.\n2. Select the form where you want the trigger to occur.\n3. Click on the \"Settings\" section.\n4. Find the \"Webhook URL\" field and paste above URL there. \n6. Click on \"Save\".\n": "\nUm den Trigger für neue Formulareinreichungen einzurichten, folgen Sie diesen Schritten:\n\n1. Gehen Sie zum Abschnitt \"Dashboard\".\n2. Wählen Sie das Formular, in dem der Trigger auftreten soll.\n3. Klicken Sie auf den Bereich \"Einstellungen\".\nFinde das Feld \"Webhook URL\" und füge dort oberhalb der URL ein. \n6. Klicke auf \"Speichern\".\n"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"New Submission": "Nuevo envío",
|
||||
"Triggers when form receives a new submission.": "Dispara cuando el formulario recibe un nuevo envío.",
|
||||
"Markdown": "Markdown",
|
||||
"**Live URL:**\n```text\n{{webhookUrl}}\n```\ngenerate sample data & triggers published flow.\n\n": "**URL vivo:**\n```text\n{{webhookUrl}}\n```\ngenerar datos de ejemplo y desencadenadores de flujo publicado.\n\n",
|
||||
"\nTo set up the trigger for new form submissions, follow these steps:\n\n1. Go to the \"Dashboard\" section.\n2. Select the form where you want the trigger to occur.\n3. Click on the \"Settings\" section.\n4. Find the \"Webhook URL\" field and paste above URL there. \n6. Click on \"Save\".\n": "\nTo set up the trigger for new form submissions, follow these steps:\n\n1. Go to the \"Dashboard\" section.\n2. Select the form where you want the trigger to occur.\n3. Click on the \"Settings\" section.\n4. Find the \"Webhook URL\" field and paste above URL there. \n6. Click on \"Save\".\n"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"New Submission": "Nouvelle soumission",
|
||||
"Triggers when form receives a new submission.": "Déclenche lorsque le formulaire reçoit une nouvelle soumission.",
|
||||
"Markdown": "Markdown",
|
||||
"**Live URL:**\n```text\n{{webhookUrl}}\n```\ngenerate sample data & triggers published flow.\n\n": "**URL en direct:**\n```text\n{{webhookUrl}}\n```\ngénérer des exemples de données et déclencher le Flow publié.\n\n",
|
||||
"\nTo set up the trigger for new form submissions, follow these steps:\n\n1. Go to the \"Dashboard\" section.\n2. Select the form where you want the trigger to occur.\n3. Click on the \"Settings\" section.\n4. Find the \"Webhook URL\" field and paste above URL there. \n6. Click on \"Save\".\n": "\nTo set up the trigger for new form submissions, follow these steps:\n\n1. Go to the \"Dashboard\" section.\n2. Select the form where you want the trigger to occur.\n3. Click on the \"Settings\" section.\n4. Find the \"Webhook URL\" field and paste above URL there. \n6. Click on \"Save\".\n"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"New Submission": "新しい提出",
|
||||
"Triggers when form receives a new submission.": "フォームが新しい提出物を受け取ったときにトリガー.",
|
||||
"Markdown": "Markdown",
|
||||
"**Live URL:**\n```text\n{{webhookUrl}}\n```\ngenerate sample data & triggers published flow.\n\n": "**ライブURL:**\n```text\n{{webhookUrl}}\n```\n生成サンプル データと公開されたフローをトリガーします。\n\n",
|
||||
"\nTo set up the trigger for new form submissions, follow these steps:\n\n1. Go to the \"Dashboard\" section.\n2. Select the form where you want the trigger to occur.\n3. Click on the \"Settings\" section.\n4. Find the \"Webhook URL\" field and paste above URL there. \n6. Click on \"Save\".\n": "\nTo set up the trigger for new form submissions, follow these steps:\n\n1. Go to the \"Dashboard\" section.\n2. Select the form where you want the trigger to occur.\n3. Click on the \"Settings\" section.\n4. Find the \"Webhook URL\" field and paste above URL there. \n6. Click on \"Save\".\n"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"New Submission": "Nieuwe inzending",
|
||||
"Triggers when form receives a new submission.": "Triggert wanneer het formulier een nieuwe uitwerking ontvangt.",
|
||||
"Markdown": "Markdown",
|
||||
"**Live URL:**\n```text\n{{webhookUrl}}\n```\ngenerate sample data & triggers published flow.\n\n": "**Live URL:**\n```text\n{{webhookUrl}}\n```\ngenereer sample data & triggers gepubliceerde flow.\n\n",
|
||||
"\nTo set up the trigger for new form submissions, follow these steps:\n\n1. Go to the \"Dashboard\" section.\n2. Select the form where you want the trigger to occur.\n3. Click on the \"Settings\" section.\n4. Find the \"Webhook URL\" field and paste above URL there. \n6. Click on \"Save\".\n": "\nOm de trigger voor nieuwe formulierinzendingen in te stellen, volg je de volgende stappen:\n\n1. Ga naar de \"Dashboard\" sectie.\n2. Selecteer het formulier waar de trigger plaats moet vinden.\n3. Klik op de \"Instellingen\" sectie.\n4. Zoek het \"Webhook URL\" veld en plak daar boven de URL. \n6. Klik op \"Opslaan\".\n"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"New Submission": "Nova Submissão",
|
||||
"Triggers when form receives a new submission.": "Gatilhos quando o formulário receber uma nova submissão.",
|
||||
"Markdown": "Markdown",
|
||||
"**Live URL:**\n```text\n{{webhookUrl}}\n```\ngenerate sample data & triggers published flow.\n\n": "**URL ao vivo:**\n```text\n{{webhookUrl}}\n```\ngera dados de amostra e aciona fluxo publicado.\n\n",
|
||||
"\nTo set up the trigger for new form submissions, follow these steps:\n\n1. Go to the \"Dashboard\" section.\n2. Select the form where you want the trigger to occur.\n3. Click on the \"Settings\" section.\n4. Find the \"Webhook URL\" field and paste above URL there. \n6. Click on \"Save\".\n": "\nPara configurar o gatilho para novas submissões de formulários, siga estas etapas:\n\n1. Vá para a seção \"Painel\".\n2. Selecione o formulário onde você deseja que o gatilho ocorra.\n3. Clique na seção \"Configurações\".\n4. Encontre o campo \"URL do Webhook\" e cole acima da URL. \n6. Clique em \"Salvar\".\n"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"New Submission": "New Submission",
|
||||
"Triggers when form receives a new submission.": "Triggers when form receives a new submission.",
|
||||
"Markdown": "Markdown",
|
||||
"**Live URL:**\n```text\n{{webhookUrl}}\n```\ngenerate sample data & triggers published flow.\n\n": "**Live URL:**\n```text\n{{webhookUrl}}\n```\ngenerate sample data & triggers published flow.\n\n",
|
||||
"\nTo set up the trigger for new form submissions, follow these steps:\n\n1. Go to the \"Dashboard\" section.\n2. Select the form where you want the trigger to occur.\n3. Click on the \"Settings\" section.\n4. Find the \"Webhook URL\" field and paste above URL there. \n6. Click on \"Save\".\n": "\nTo set up the trigger for new form submissions, follow these steps:\n\n1. Go to the \"Dashboard\" section.\n2. Select the form where you want the trigger to occur.\n3. Click on the \"Settings\" section.\n4. Find the \"Webhook URL\" field and paste above URL there. \n6. Click on \"Save\".\n"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"New Submission": "New Submission",
|
||||
"Triggers when form receives a new submission.": "Triggers when form receives a new submission.",
|
||||
"Markdown": "Markdown",
|
||||
"**Live URL:**\n```text\n{{webhookUrl}}\n```\ngenerate sample data & triggers published flow.\n\n": "**Live URL:**\n```text\n{{webhookUrl}}\n```\ngenerate sample data & triggers published flow.\n\n",
|
||||
"\nTo set up the trigger for new form submissions, follow these steps:\n\n1. Go to the \"Dashboard\" section.\n2. Select the form where you want the trigger to occur.\n3. Click on the \"Settings\" section.\n4. Find the \"Webhook URL\" field and paste above URL there. \n6. Click on \"Save\".\n": "\nTo set up the trigger for new form submissions, follow these steps:\n\n1. Go to the \"Dashboard\" section.\n2. Select the form where you want the trigger to occur.\n3. Click on the \"Settings\" section.\n4. Find the \"Webhook URL\" field and paste above URL there. \n6. Click on \"Save\".\n"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { newSubmissionTrigger } from './lib/triggers/new-submission.trigger';
|
||||
|
||||
export const formspark = createPiece({
|
||||
displayName: 'Formspark',
|
||||
auth: PieceAuth.None(),
|
||||
categories: [PieceCategory.FORMS_AND_SURVEYS],
|
||||
minimumSupportedRelease: '0.36.1',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/formspark.png',
|
||||
authors: ['kishanprmr'],
|
||||
actions: [],
|
||||
triggers: [newSubmissionTrigger],
|
||||
});
|
||||
@@ -0,0 +1,52 @@
|
||||
import {
|
||||
createTrigger,
|
||||
PieceAuth,
|
||||
Property,
|
||||
TriggerStrategy,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { MarkdownVariant } from '@activepieces/shared';
|
||||
|
||||
const liveMarkdown = `**Live URL:**
|
||||
\`\`\`text
|
||||
{{webhookUrl}}
|
||||
\`\`\`
|
||||
generate sample data & triggers published flow.
|
||||
|
||||
`;
|
||||
|
||||
const markdown = `
|
||||
To set up the trigger for new form submissions, follow these steps:
|
||||
|
||||
1. Go to the "Dashboard" section.
|
||||
2. Select the form where you want the trigger to occur.
|
||||
3. Click on the "Settings" section.
|
||||
4. Find the "Webhook URL" field and paste above URL there.
|
||||
6. Click on "Save".
|
||||
`;
|
||||
|
||||
export const newSubmissionTrigger = createTrigger({
|
||||
name: 'new-submission',
|
||||
displayName: 'New Submission',
|
||||
auth: PieceAuth.None(),
|
||||
description: 'Triggers when form receives a new submission.',
|
||||
props: {
|
||||
liveMarkdown: Property.MarkDown({
|
||||
value: liveMarkdown,
|
||||
variant: MarkdownVariant.BORDERLESS,
|
||||
}),
|
||||
md: Property.MarkDown({
|
||||
value: markdown,
|
||||
}),
|
||||
},
|
||||
type: TriggerStrategy.WEBHOOK,
|
||||
sampleData: undefined,
|
||||
async onEnable(context) {
|
||||
// Empty
|
||||
},
|
||||
async onDisable(context) {
|
||||
// Empty
|
||||
},
|
||||
async run(context) {
|
||||
return [context.payload.body];
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"importHelpers": true,
|
||||
"noImplicitOverride": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noPropertyAccessFromIndexSignature": true
|
||||
},
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../../../dist/out-tsc",
|
||||
"declaration": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user