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,50 @@
|
||||
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
||||
import {
|
||||
createPiece,
|
||||
OAuth2PropertyValue,
|
||||
PiecePropValueSchema,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { getEmailDetailsAction } from './lib/actions/get-email-details';
|
||||
import { markEmailAsReadAction } from './lib/actions/mark-email-as-read';
|
||||
import { markEmailAsUnreadAction } from './lib/actions/mark-email-as-unread';
|
||||
import { archiveEmailAction } from './lib/actions/archive-email';
|
||||
import { unarchiveEmailAction } from './lib/actions/unarchive-email';
|
||||
import { moveEmailAction } from './lib/actions/move-email';
|
||||
import { sendEmailAction } from './lib/actions/send-email';
|
||||
import { zohoMailAuth } from './lib/common/auth';
|
||||
import { newEmailReceivedTrigger } from './lib/triggers/new-email-received-trigger';
|
||||
|
||||
export const zohoMail = createPiece({
|
||||
displayName: 'Zoho Mail',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/zoho-mail.png',
|
||||
auth: zohoMailAuth,
|
||||
authors: ['onyedikachi-david', 'kishanprmr', 'kdurek'],
|
||||
description:
|
||||
'Zoho Mail is a powerful email service that allows you to manage your email, contacts, and calendars efficiently.',
|
||||
minimumSupportedRelease: '0.36.1',
|
||||
categories: [PieceCategory.COMMUNICATION],
|
||||
actions: [
|
||||
getEmailDetailsAction,
|
||||
markEmailAsReadAction,
|
||||
markEmailAsUnreadAction,
|
||||
archiveEmailAction,
|
||||
unarchiveEmailAction,
|
||||
moveEmailAction,
|
||||
sendEmailAction,
|
||||
createCustomApiCallAction({
|
||||
auth: zohoMailAuth,
|
||||
baseUrl: (auth) => {
|
||||
const authValue = auth as PiecePropValueSchema<typeof zohoMailAuth>;
|
||||
const location = authValue.props?.['location'] ?? 'zoho.com';
|
||||
return `https://mail.${location}/api`;
|
||||
},
|
||||
authMapping: async (auth) => {
|
||||
return {
|
||||
Authorization: `Zoho-oauthtoken ${(auth as OAuth2PropertyValue).access_token}`,
|
||||
};
|
||||
},
|
||||
}),
|
||||
],
|
||||
triggers: [newEmailReceivedTrigger],
|
||||
});
|
||||
Reference in New Issue
Block a user