- 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>
58 lines
1.6 KiB
TypeScript
58 lines
1.6 KiB
TypeScript
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: [],
|
|
});
|