- 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>
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
|
|
import { launchPhantom } from './lib/actions/launch-phantom';
|
|
import { phantombusterAuth } from './lib/common/auth';
|
|
import { newOutput } from './lib/triggers/new-output';
|
|
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
|
import { BASE_URL } from './lib/common/client';
|
|
import { PieceCategory } from '@activepieces/shared';
|
|
|
|
export const phantombuster = createPiece({
|
|
displayName: 'PhantomBuster',
|
|
auth: phantombusterAuth,
|
|
minimumSupportedRelease: '0.36.1',
|
|
logoUrl: 'https://cdn.activepieces.com/pieces/phantombuster.png',
|
|
description: 'Automate your web scraping and web automation tasks',
|
|
categories: [PieceCategory.MARKETING, PieceCategory.SALES_AND_CRM],
|
|
authors: ['sanket-a11y'],
|
|
actions: [
|
|
launchPhantom,
|
|
createCustomApiCallAction({
|
|
auth: phantombusterAuth,
|
|
baseUrl: () => BASE_URL,
|
|
authMapping: async (auth) => {
|
|
const apiKey = auth;
|
|
return {
|
|
'X-Phantombuster-Key': `${apiKey.secret_text}`,
|
|
'Content-Type': 'application/json',
|
|
};
|
|
},
|
|
}),
|
|
],
|
|
triggers: [newOutput],
|
|
});
|