- 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>
56 lines
2.2 KiB
TypeScript
56 lines
2.2 KiB
TypeScript
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
|
import { createPiece } from '@activepieces/pieces-framework';
|
|
import { respondIoAuth } from './lib/common/auth';
|
|
import { addCommentToConversation } from './lib/actions/add-comment-to-conversation';
|
|
import { addTagToContact } from './lib/actions/add-tag-to-contact';
|
|
import { assignOrUnassignConversation } from './lib/actions/assign-or-unassign-conversation';
|
|
import { createContact } from './lib/actions/create-contact';
|
|
import { createOrUpdateContact } from './lib/actions/create-or-update-contact';
|
|
import { deleteContact } from './lib/actions/delete-contact';
|
|
import { findContact } from './lib/actions/find-contact';
|
|
import { openConversation } from './lib/actions/open-conversation';
|
|
import { contactTagUpdatedTrigger } from './lib/triggers/contact-tag-updated';
|
|
import { contactUpdatedTrigger } from './lib/triggers/contact-updated';
|
|
import { conversationClosedTrigger } from './lib/triggers/conversation-closed';
|
|
import { conversationOpenedTrigger } from './lib/triggers/conversation-opened';
|
|
import { newContactTrigger } from './lib/triggers/new-contact';
|
|
import { newIncomingMessageTrigger } from './lib/triggers/new-incoming-message';
|
|
import { newOutgoingMessageTrigger } from './lib/triggers/new-outgoing-message';
|
|
|
|
export const respondIo = createPiece({
|
|
displayName: 'Respond.io',
|
|
auth: respondIoAuth,
|
|
minimumSupportedRelease: '0.36.1',
|
|
logoUrl: 'https://cdn.activepieces.com/pieces/respond-io.png',
|
|
authors: ['aryel780'],
|
|
actions: [
|
|
addCommentToConversation,
|
|
addTagToContact,
|
|
assignOrUnassignConversation,
|
|
createContact,
|
|
createOrUpdateContact,
|
|
deleteContact,
|
|
findContact,
|
|
openConversation,
|
|
createCustomApiCallAction({
|
|
auth: respondIoAuth,
|
|
baseUrl: () => 'https://api.respond.io/v2',
|
|
authMapping: async (auth) => {
|
|
const { token } = auth.props;
|
|
return {
|
|
Authorization: `Bearer ${token}`,
|
|
};
|
|
},
|
|
}),
|
|
],
|
|
triggers: [
|
|
contactTagUpdatedTrigger,
|
|
contactUpdatedTrigger,
|
|
conversationClosedTrigger,
|
|
conversationOpenedTrigger,
|
|
newContactTrigger,
|
|
newIncomingMessageTrigger,
|
|
newOutgoingMessageTrigger,
|
|
],
|
|
});
|