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 {
|
||||
PieceAuth,
|
||||
Property,
|
||||
createPiece,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { getContactFromID } from './lib/actions/get-contact-from-id';
|
||||
import { getTicketStatus } from './lib/actions/get-ticket-status';
|
||||
import { getTickets } from './lib/actions/get-tickets';
|
||||
import { getContacts } from './lib/actions/get-contacts';
|
||||
import { getAllTicketsByStatus } from './lib/actions/get-all-tickets-by-status';
|
||||
|
||||
export const freshdeskAuth = PieceAuth.CustomAuth({
|
||||
props: {
|
||||
base_url: Property.ShortText({
|
||||
displayName: 'Base URL',
|
||||
description: 'Enter the base URL',
|
||||
required: true,
|
||||
}),
|
||||
access_token: Property.ShortText({
|
||||
displayName: 'API Token',
|
||||
description: 'Enter the API token',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
description: `Get the API token by visiting your profile settings and clicking View API key`,
|
||||
required: true,
|
||||
});
|
||||
|
||||
export const freshdesk = createPiece({
|
||||
displayName: 'Freshdesk',
|
||||
description: 'Customer support software',
|
||||
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/freshdesk.png',
|
||||
categories: [PieceCategory.CUSTOMER_SUPPORT],
|
||||
authors: ["buttonsbond","kishanprmr","MoShizzle","AbdulTheActivePiecer","abuaboud"],
|
||||
auth: freshdeskAuth,
|
||||
actions: [
|
||||
getTickets,
|
||||
getContactFromID,
|
||||
getTicketStatus,
|
||||
getContacts,
|
||||
getAllTicketsByStatus,
|
||||
createCustomApiCallAction({
|
||||
baseUrl: (auth) => (auth?.props.base_url ?? ''),
|
||||
auth: freshdeskAuth,
|
||||
authMapping: async (auth) => ({
|
||||
Authorization: (auth.props.access_token),
|
||||
}),
|
||||
}),
|
||||
],
|
||||
triggers: [],
|
||||
});
|
||||
Reference in New Issue
Block a user