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,54 @@
|
||||
|
||||
import { createPiece, PieceAuth } from "@activepieces/pieces-framework";
|
||||
import { getCandidate } from "./lib/actions/get-candidate";
|
||||
import { getMembers } from "./lib/actions/get-members";
|
||||
import { getJob } from "./lib/actions/get-job";
|
||||
import { getStages } from "./lib/actions/get-stages";
|
||||
import { moveCandidate } from "./lib/actions/move-candidate";
|
||||
import { rateCandidate } from "./lib/actions/rate-candidate";
|
||||
import { newCandidate } from "./lib/triggers/new-candidate";
|
||||
import { createCustomApiCallAction } from "@activepieces/pieces-common";
|
||||
import { PieceCategory } from "@activepieces/shared";
|
||||
|
||||
export const workableAuth = PieceAuth.SecretText({
|
||||
displayName: "API Access Token",
|
||||
description: `
|
||||
1. Click your profile icon in the upper right and navigate to Settings > Integrations > Apps.
|
||||
2. Locate the API Access Tokens section near the top of the page.
|
||||
3. Click the button **+ Generate API token**.
|
||||
4. Select the following scopes:
|
||||
- r_jobs
|
||||
- r_candidates
|
||||
- w_candidates
|
||||
5. Click Generate token to complete the process.
|
||||
`,
|
||||
required: true
|
||||
})
|
||||
|
||||
export const workable = createPiece({
|
||||
displayName: "Workable",
|
||||
auth: workableAuth,
|
||||
minimumSupportedRelease: '0.36.1',
|
||||
logoUrl: "https://cdn.activepieces.com/pieces/workable.png",
|
||||
categories:[PieceCategory.HUMAN_RESOURCES],
|
||||
authors: ['Cloudieunnie'],
|
||||
actions: [
|
||||
getCandidate,
|
||||
getMembers,
|
||||
getJob,
|
||||
getStages,
|
||||
moveCandidate,
|
||||
rateCandidate,
|
||||
createCustomApiCallAction({
|
||||
baseUrl: () => `https://workable.com/spi/v3/`,
|
||||
auth: workableAuth,
|
||||
authMapping: async (auth) => ({
|
||||
Authorization: `Bearer ${auth.secret_text}`,
|
||||
Accept: 'application/json'
|
||||
})
|
||||
})
|
||||
],
|
||||
triggers: [
|
||||
newCandidate
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user