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,41 @@
|
||||
import {
|
||||
createPiece,
|
||||
OAuth2PropertyValue,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
||||
import { formStackAuth } from './lib/common/auth';
|
||||
|
||||
import { createSubmission } from './lib/actions/create-submission';
|
||||
import { findFormByNameOrId } from './lib/actions/find-form-by-name-or-id';
|
||||
import { getSubmissionDetails } from './lib/actions/get-submission-details';
|
||||
import { findSubmissionByFieldValue } from './lib/actions/find-submission-by-field-value';
|
||||
|
||||
import { newSubmission } from './lib/triggers/new-submission';
|
||||
import { newForm } from './lib/triggers/new-form';
|
||||
import { BASE_URL } from './lib/common/client';
|
||||
|
||||
export const formstack = createPiece({
|
||||
displayName: 'Formstack',
|
||||
auth: formStackAuth,
|
||||
minimumSupportedRelease: '0.36.1',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/formstack.png',
|
||||
authors: ['Sanket6652', 'onyedikachi-david'],
|
||||
actions: [
|
||||
createSubmission,
|
||||
findFormByNameOrId,
|
||||
getSubmissionDetails,
|
||||
findSubmissionByFieldValue,
|
||||
createCustomApiCallAction({
|
||||
baseUrl: () => BASE_URL,
|
||||
auth: formStackAuth,
|
||||
authMapping: async (auth) => {
|
||||
const authValue = auth as OAuth2PropertyValue;
|
||||
|
||||
return {
|
||||
Authorization: `Bearer ${authValue.access_token}`,
|
||||
};
|
||||
},
|
||||
}),
|
||||
],
|
||||
triggers: [newSubmission, newForm],
|
||||
});
|
||||
Reference in New Issue
Block a user