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,51 @@
|
||||
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
|
||||
import { captureScreenshot } from './lib/actions/capture-screenshot';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import {
|
||||
createCustomApiCallAction,
|
||||
httpClient,
|
||||
HttpMethod,
|
||||
} from '@activepieces/pieces-common';
|
||||
|
||||
export const peekshotAuth = PieceAuth.SecretText({
|
||||
displayName: 'API Key',
|
||||
required: true,
|
||||
description: `You can obtain your API key by navigating to [API Keys](https://dashboard.peekshot.com/dashboard/api-keys) menu.`,
|
||||
validate: async ({ auth }) => {
|
||||
try {
|
||||
await httpClient.sendRequest({
|
||||
method: HttpMethod.GET,
|
||||
url: 'https://api.peekshot.com/api/v1/projects',
|
||||
headers: {
|
||||
'x-api-key': auth,
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
return { valid: true };
|
||||
} catch {
|
||||
return { valid: false, error: 'Invalid API Key.' };
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
export const peekshot = createPiece({
|
||||
displayName: 'PeekShot',
|
||||
auth: peekshotAuth,
|
||||
minimumSupportedRelease: '0.36.1',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/peekshot.png',
|
||||
categories: [PieceCategory.PRODUCTIVITY],
|
||||
authors: ['balwant1707'],
|
||||
actions: [
|
||||
captureScreenshot,
|
||||
createCustomApiCallAction({
|
||||
auth: peekshotAuth,
|
||||
baseUrl: () => 'https://api.peekshot.com/api/v1',
|
||||
authMapping: async (auth) => {
|
||||
return {
|
||||
'x-api-key': auth.secret_text,
|
||||
};
|
||||
},
|
||||
}),
|
||||
],
|
||||
triggers: [],
|
||||
});
|
||||
Reference in New Issue
Block a user