- 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>
36 lines
1.4 KiB
TypeScript
36 lines
1.4 KiB
TypeScript
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
|
import { createPiece } from '@activepieces/pieces-framework';
|
|
import { PieceCategory } from '@activepieces/shared';
|
|
import { assignBadgeAction } from './lib/actions/assign-badge';
|
|
import { createDiscussionAction } from './lib/actions/create-discussion';
|
|
import { createQuestionAction } from './lib/actions/create-question';
|
|
import { revokeBadgeAction } from './lib/actions/revoke-badge';
|
|
import { bettermodeAuth } from './lib/auth';
|
|
import { getAuthToken } from './lib/api';
|
|
|
|
export const bettermode = createPiece({
|
|
displayName: 'Bettermode',
|
|
description: 'Feature-rich engagement platform. Browse beautifully designed templates, each flexible for precise customization to your needs.',
|
|
auth: bettermodeAuth,
|
|
minimumSupportedRelease: '0.30.0',
|
|
logoUrl: 'https://cdn.activepieces.com/pieces/bettermode.png',
|
|
categories: [PieceCategory.MARKETING],
|
|
authors: ["joeworkman","kishanprmr","MoShizzle","abuaboud"],
|
|
actions: [
|
|
createDiscussionAction,
|
|
createQuestionAction,
|
|
assignBadgeAction,
|
|
revokeBadgeAction,
|
|
createCustomApiCallAction({
|
|
baseUrl: (auth) => auth ? auth.props.region : '', // replace with the actual base URL
|
|
auth: bettermodeAuth,
|
|
authMapping: async (auth) => ({
|
|
Authorization: `Bearer ${(await getAuthToken(auth.props)).token}`,
|
|
}),
|
|
}),
|
|
],
|
|
triggers: [],
|
|
});
|
|
|
|
// Bettermode API docs: https://developers.bettermode.com/
|