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,54 @@
|
||||
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
||||
import {
|
||||
createPiece,
|
||||
PieceAuth,
|
||||
Property,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { createNewUser } from './lib/actions/create-new-user';
|
||||
|
||||
export const brilliantDirectoriesAuth = PieceAuth.CustomAuth({
|
||||
required: true,
|
||||
description: `
|
||||
Brilliant Directories Authentication.
|
||||
|
||||
Please enter your API key which can be generated from here: https://ww2.managemydirectory.com/admin/apiSettings
|
||||
|
||||
Then enter your brilliant directories website instance URL appended with /api like the example.
|
||||
`,
|
||||
props: {
|
||||
api_key: PieceAuth.SecretText({
|
||||
displayName: 'API Key',
|
||||
description: 'The api key of the brilliant directories account account',
|
||||
required: true,
|
||||
}),
|
||||
site_url: Property.ShortText({
|
||||
displayName: 'Instance Url',
|
||||
description: 'The url of the brilliant directories instance.',
|
||||
required: true,
|
||||
defaultValue: 'https://yoursitehere.com/api',
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
||||
export const brilliantDirectories = createPiece({
|
||||
displayName: 'Brilliant Directories',
|
||||
description: 'All-in-one membership software',
|
||||
|
||||
auth: brilliantDirectoriesAuth,
|
||||
minimumSupportedRelease: '0.30.0',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/brilliant-directories.png',
|
||||
categories: [],
|
||||
authors: ["ShayPunter","dennisrongo","kishanprmr","MoShizzle","abuaboud"],
|
||||
actions: [
|
||||
createNewUser,
|
||||
createCustomApiCallAction({
|
||||
baseUrl: (auth) => auth?.props?.site_url || '',
|
||||
auth: brilliantDirectoriesAuth,
|
||||
authMapping: async (auth) => ({
|
||||
'X-Api-Key': `${auth.props.api_key}`,
|
||||
}),
|
||||
}),
|
||||
],
|
||||
triggers: [],
|
||||
});
|
||||
Reference in New Issue
Block a user