- 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>
44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
|
import { createPiece, OAuth2PropertyValue, PieceAuth } from '@activepieces/pieces-framework';
|
|
import { completeTaskAction } from './lib/actions/complete-task';
|
|
import { createTaskAction } from './lib/actions/create-task';
|
|
import { deleteTaskAction } from './lib/actions/delete-task';
|
|
import { findTaskAction } from './lib/actions/find-task';
|
|
import { getProjectAction } from './lib/actions/get-project-by-id';
|
|
import { getTaskAction } from './lib/actions/get-task';
|
|
import { updateTaskAction } from './lib/actions/update-task';
|
|
import { newTaskCreatedTrigger } from './lib/triggers/new-task-created';
|
|
|
|
export const ticktickAuth = PieceAuth.OAuth2({
|
|
authUrl: 'https://ticktick.com/oauth/authorize',
|
|
tokenUrl: 'https://ticktick.com/oauth/token',
|
|
required: true,
|
|
scope: ['tasks:read', 'tasks:write'],
|
|
});
|
|
|
|
export const ticktick = createPiece({
|
|
displayName: 'TickTick',
|
|
logoUrl: 'https://cdn.activepieces.com/pieces/ticktick.png',
|
|
auth: ticktickAuth,
|
|
authors: ['onyedikachi-david', 'kishanprmr'],
|
|
actions: [
|
|
createTaskAction,
|
|
updateTaskAction,
|
|
getTaskAction,
|
|
deleteTaskAction,
|
|
completeTaskAction,
|
|
findTaskAction,
|
|
getProjectAction,
|
|
createCustomApiCallAction({
|
|
auth:ticktickAuth,
|
|
baseUrl:()=>'https://api.ticktick.com/open/v1',
|
|
authMapping:async (auth)=>{
|
|
return {
|
|
Authorization:`Bearer ${(auth).access_token}`
|
|
}
|
|
}
|
|
})
|
|
],
|
|
triggers: [newTaskCreatedTrigger],
|
|
});
|