Files
smoothschedule/activepieces-fork/packages/pieces/community/microsoft-365-people/src/index.ts
poduck 3aa7199503 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>
2025-12-18 22:59:37 -05:00

38 lines
1.4 KiB
TypeScript

import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { createPiece, OAuth2PropertyValue } from '@activepieces/pieces-framework';
import { createContact } from './lib/actions/create-contact';
import { createContactFolder } from './lib/actions/create-contact-folder';
import { deleteContact } from './lib/actions/delete-contact';
import { getContactFolder } from './lib/actions/get-contact-folder';
import { searchContacts } from './lib/actions/search-contacts';
import { updateContact } from './lib/actions/update-contact';
import { microsoft365PeopleAuth } from './lib/common/auth';
import { newOrUpdatedContact } from './lib/triggers/new-or-updated-contact';
export const microsoft365People = createPiece({
displayName: 'Microsoft 365 People',
description: 'Manage contacts in Microsoft 365 People',
auth: microsoft365PeopleAuth,
minimumSupportedRelease: '0.36.1',
logoUrl: 'https://cdn.activepieces.com/pieces/microsoft-365-people.png',
authors: ['LuizDMM'],
actions: [
createContact,
deleteContact,
updateContact,
createContactFolder,
getContactFolder,
// Search Actions
searchContacts,
// Custom API call
createCustomApiCallAction({
auth: microsoft365PeopleAuth,
baseUrl: () => 'https://graph.microsoft.com/v1.0/',
authMapping: async (auth) => ({
Authorization: `Bearer ${(auth as OAuth2PropertyValue).access_token}`,
}),
}),
],
triggers: [newOrUpdatedContact],
});