- 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>
53 lines
1.9 KiB
TypeScript
53 lines
1.9 KiB
TypeScript
import { createPiece, PieceAuth, Property ,PiecePropValueSchema, Piece} from "@activepieces/pieces-framework";
|
|
import { getPageContent } from "./lib/actions/get-page-content";
|
|
import { newPageTrigger } from "./lib/triggers/new-page";
|
|
import { PieceCategory } from "@activepieces/shared";
|
|
import { createCustomApiCallAction } from "@activepieces/pieces-common";
|
|
import { createPageFromTemplateAction } from "./lib/actions/create-page-from-template";
|
|
|
|
export const confluenceAuth = PieceAuth.CustomAuth({
|
|
description: 'Please refer to this guide to get your api credentials: https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account',
|
|
required: true,
|
|
props: {
|
|
username: PieceAuth.SecretText({
|
|
displayName: 'Account Email',
|
|
required: true,
|
|
description: 'Account email for basic auth',
|
|
}),
|
|
password: PieceAuth.SecretText({
|
|
displayName: 'API token',
|
|
required: true,
|
|
description: 'API token for basic auth',
|
|
}),
|
|
confluenceDomain: Property.ShortText({
|
|
displayName: 'Confluence Domain',
|
|
required: true,
|
|
description: 'Example value - https://your-domain.atlassian.net',
|
|
}),
|
|
},
|
|
});
|
|
|
|
export const confluence = createPiece({
|
|
displayName: "Confluence",
|
|
auth: confluenceAuth,
|
|
minimumSupportedRelease: '0.30.0',
|
|
logoUrl: "https://cdn.activepieces.com/pieces/confluence.png",
|
|
authors: ["geekyme"],
|
|
actions: [getPageContent,createPageFromTemplateAction,
|
|
createCustomApiCallAction({
|
|
baseUrl:(auth)=>{
|
|
return `${ auth?.props.confluenceDomain?? ''}/wiki/api/v2`;
|
|
},
|
|
auth: confluenceAuth,
|
|
authMapping: async (auth) => {
|
|
const authValue = auth.props
|
|
return {
|
|
Authorization: `Basic ${Buffer.from(`${authValue.username}:${authValue.password}`).toString('base64')}`,
|
|
};
|
|
},
|
|
})
|
|
],
|
|
categories: [PieceCategory.CONTENT_AND_FILES],
|
|
triggers: [newPageTrigger],
|
|
});
|