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,57 @@
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
import { findUserByCustomFieldAction } from './lib/actions/find-user-by-custom-field';
import { createSubscriberAction } from './lib/actions/create-subscriber';
import { sendContentToUserAction } from './lib/actions/send-content-to-user';
import { setCustomFieldAction } from './lib/actions/set-custom-fields';
import { removeTagFromUserAction } from './lib/actions/remove-tag-from-user';
import { addTagToUserAction } from './lib/actions/add-tag-to-user';
import { findUserByNameAction } from './lib/actions/find-user-by-name';
import { PieceCategory } from '@activepieces/shared';
import { AuthenticationType, httpClient, HttpMethod } from '@activepieces/pieces-common';
import { BASE_URL } from './lib/common/props';
export const manychatAuth = PieceAuth.SecretText({
displayName: 'API Key',
required: true,
description: `You can create an API key by navigating to **Setting -> Extensions -> API**.`,
validate: async ({ auth }) => {
try {
await httpClient.sendRequest({
method: HttpMethod.GET,
url: `${BASE_URL}/page/getInfo`,
authentication: {
type: AuthenticationType.BEARER_TOKEN,
token: auth
},
});
return {
valid: true,
};
} catch (e) {
return {
valid: false,
error: 'Invalid API Key',
};
}
},
});
export const manychat = createPiece({
displayName: 'Manychat',
description: 'Automations for Instagram, WhatsApp, TikTok, and Messenger marketing.',
categories: [PieceCategory.MARKETING],
auth: manychatAuth,
minimumSupportedRelease: '0.36.1',
logoUrl: 'https://cdn.activepieces.com/pieces/manychat.png',
authors: ['neo773', 'kishanprmr'],
actions: [
addTagToUserAction,
createSubscriberAction,
findUserByCustomFieldAction,
findUserByNameAction,
removeTagFromUserAction,
sendContentToUserAction,
setCustomFieldAction,
],
triggers: [],
});