- 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.0 KiB
TypeScript
56 lines
2.0 KiB
TypeScript
import { createPiece } from '@activepieces/pieces-framework';
|
|
import { aidbaseAuth } from './lib/common/auth';
|
|
import { emailReceived } from './lib/triggers/email-received';
|
|
import { emailStatusChanged } from './lib/triggers/email-status-changed';
|
|
import { emailPriorityChanged } from './lib/triggers/email-priority-changed';
|
|
import { emailSent } from './lib/triggers/email-sent';
|
|
import { ticketCreated } from './lib/triggers/ticket-created';
|
|
import { ticketPriorityChanged } from './lib/triggers/ticket-priority-changed';
|
|
import { ticketStatusChanged } from './lib/triggers/ticket-status-changed';
|
|
import { ticketNewComment } from './lib/triggers/ticket-new-comment';
|
|
import { addVideo } from './lib/actions/add-video';
|
|
import { addWebsite } from './lib/actions/add-website';
|
|
import { addFaqItem } from './lib/actions/add-faq-item';
|
|
import { createFaq } from './lib/actions/create-faq';
|
|
import { createChatbotReply } from './lib/actions/create-chatbot-reply';
|
|
import { startTraining } from './lib/actions/start-training';
|
|
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
|
import { API_BASE_URL } from './lib/common/client';
|
|
import { PieceCategory } from '@activepieces/shared';
|
|
|
|
export const aidbase = createPiece({
|
|
displayName: 'Aidbase',
|
|
auth: aidbaseAuth,
|
|
minimumSupportedRelease: '0.36.1',
|
|
categories:[PieceCategory.CUSTOMER_SUPPORT, PieceCategory.COMMUNICATION],
|
|
logoUrl: 'https://cdn.activepieces.com/pieces/aidbase.png',
|
|
authors: ['Prabhukiran161', 'sanket-a11y'],
|
|
actions: [
|
|
addVideo,
|
|
addWebsite,
|
|
addFaqItem,
|
|
createFaq,
|
|
createChatbotReply,
|
|
startTraining,
|
|
createCustomApiCallAction({
|
|
auth: aidbaseAuth,
|
|
baseUrl: () => API_BASE_URL,
|
|
authMapping: async (auth) => {
|
|
return {
|
|
Authorization: `Bearer ${auth.secret_text}`,
|
|
};
|
|
},
|
|
}),
|
|
],
|
|
triggers: [
|
|
emailReceived,
|
|
emailStatusChanged,
|
|
emailPriorityChanged,
|
|
emailSent,
|
|
ticketCreated,
|
|
ticketPriorityChanged,
|
|
ticketStatusChanged,
|
|
ticketNewComment,
|
|
],
|
|
});
|