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,53 @@
|
||||
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
||||
import {
|
||||
OAuth2PropertyValue,
|
||||
PieceAuth,
|
||||
createPiece,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { googleContactsAddContactAction } from './lib/action/create-contact';
|
||||
import { googleContactsUpdateContactAction } from './lib/action/update-contact';
|
||||
import { googleContactsSearchContactsAction } from './lib/action/search-contact';
|
||||
import { googleContactsCommon } from './lib/common';
|
||||
import { googleContactNewOrUpdatedContact } from './lib/trigger/new-contact';
|
||||
|
||||
export const googleContactsAuth = PieceAuth.OAuth2({
|
||||
description: '',
|
||||
|
||||
authUrl: 'https://accounts.google.com/o/oauth2/auth',
|
||||
tokenUrl: 'https://oauth2.googleapis.com/token',
|
||||
required: true,
|
||||
scope: ['https://www.googleapis.com/auth/contacts'],
|
||||
});
|
||||
|
||||
export const googleContacts = createPiece({
|
||||
minimumSupportedRelease: '0.30.0',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/google-contacts.png',
|
||||
categories: [PieceCategory.SALES_AND_CRM],
|
||||
actions: [
|
||||
googleContactsAddContactAction,
|
||||
googleContactsUpdateContactAction,
|
||||
googleContactsSearchContactsAction,
|
||||
createCustomApiCallAction({
|
||||
baseUrl: () => googleContactsCommon.baseUrl,
|
||||
auth: googleContactsAuth,
|
||||
authMapping: async (auth) => ({
|
||||
Authorization: `Bearer ${(auth).access_token}`,
|
||||
}),
|
||||
}),
|
||||
],
|
||||
displayName: 'Google Contacts',
|
||||
description: 'Stay connected and organized',
|
||||
|
||||
authors: [
|
||||
'Abdallah-Alwarawreh',
|
||||
'Salem-Alaa',
|
||||
'kishanprmr',
|
||||
'MoShizzle',
|
||||
'khaledmashaly',
|
||||
'abuaboud',
|
||||
'ikus060',
|
||||
],
|
||||
triggers: [googleContactNewOrUpdatedContact],
|
||||
auth: googleContactsAuth,
|
||||
});
|
||||
Reference in New Issue
Block a user