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-formsite
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Building
|
||||
|
||||
Run `nx build pieces-formsite` to build the library.
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "@activepieces/piece-formsite",
|
||||
"version": "0.0.1",
|
||||
"type": "commonjs",
|
||||
"main": "./src/index.js",
|
||||
"types": "./src/index.d.ts",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"name": "pieces-formsite",
|
||||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/pieces/community/formsite/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/formsite",
|
||||
"tsConfig": "packages/pieces/community/formsite/tsconfig.lib.json",
|
||||
"packageJson": "packages/pieces/community/formsite/package.json",
|
||||
"main": "packages/pieces/community/formsite/src/index.ts",
|
||||
"assets": [
|
||||
"packages/pieces/community/formsite/*.md",
|
||||
{
|
||||
"input": "packages/pieces/community/formsite/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/formsite",
|
||||
"command": "bun install --no-save --silent"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/eslint:lint",
|
||||
"outputs": [
|
||||
"{options.outputFile}"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
|
||||
import { newFormResult } from './lib/triggers/new-form-result';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
|
||||
export const formsiteAuth = PieceAuth.SecretText({
|
||||
displayName: 'API Key',
|
||||
description: 'Formsite API Key',
|
||||
required: true,
|
||||
});
|
||||
|
||||
export const formsite = createPiece({
|
||||
displayName: 'Formsite',
|
||||
auth: PieceAuth.None(),
|
||||
description:
|
||||
'Formsite is an online form builder that allows you to create forms and surveys easily.',
|
||||
categories: [PieceCategory.SALES_AND_CRM],
|
||||
minimumSupportedRelease: '0.36.1',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/formsite.png',
|
||||
authors: ['sanket-a11y'],
|
||||
actions: [],
|
||||
triggers: [newFormResult],
|
||||
});
|
||||
@@ -0,0 +1,68 @@
|
||||
import { formsiteAuth } from '../..';
|
||||
import {
|
||||
createTrigger,
|
||||
Property,
|
||||
TriggerStrategy,
|
||||
} from '@activepieces/pieces-framework';
|
||||
|
||||
export const newFormResult = createTrigger({
|
||||
auth: formsiteAuth,
|
||||
name: 'newFormResult',
|
||||
displayName: 'New Form Result',
|
||||
description: 'Trigger when a new form result is submitted',
|
||||
props: {
|
||||
instruction: Property.MarkDown({
|
||||
value: `
|
||||
**Enable Basic Authentication:**
|
||||
1. Login to your Formbricks account
|
||||
2. Open the form you want to connect
|
||||
3. Change tab to *From Settings* -> *Integrations* -> *Server Post*
|
||||
4. Enable *Server Post* and set the URL to the webhook URL generated after you save the trigger.
|
||||
\`\`\`text
|
||||
{{webhookUrl}}
|
||||
\`\`\`
|
||||
5. Select Message format as *JSON*
|
||||
6. Save the settings
|
||||
`,
|
||||
}),
|
||||
},
|
||||
sampleData: {
|
||||
user_ip: '::1',
|
||||
date_start: '2025-12-15T12:59:48.416Z',
|
||||
user_referrer: 'N/A',
|
||||
user_os: 'Windows (deprecated)',
|
||||
result_status: 'Complete',
|
||||
date_finish: '2025-12-15T12:59:51.695Z',
|
||||
date_update: '2025-12-15T12:59:51.701Z',
|
||||
user_browser: 'Chrome',
|
||||
id: '19086671',
|
||||
items: [
|
||||
{
|
||||
id: '0',
|
||||
position: 0,
|
||||
value: 'dasas',
|
||||
},
|
||||
{
|
||||
values: [
|
||||
{
|
||||
position: 0,
|
||||
value: 'Choice A',
|
||||
},
|
||||
],
|
||||
id: '1',
|
||||
position: 1,
|
||||
},
|
||||
],
|
||||
user_device: 'Desktop',
|
||||
},
|
||||
type: TriggerStrategy.WEBHOOK,
|
||||
async onEnable(context) {
|
||||
// implement webhook creation logic
|
||||
},
|
||||
async onDisable(context) {
|
||||
// implement webhook deletion logic
|
||||
},
|
||||
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