Files
smoothschedule/activepieces-fork/packages/pieces/community/base44/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

48 lines
1.6 KiB
TypeScript

import { createPiece, PieceAuth, Property } from "@activepieces/pieces-framework";
import { PieceCategory } from "@activepieces/shared";
import { createEntity } from "./lib/actions/create-entity";
import { findOrCreateEntity } from "./lib/actions/find-or-create-entity";
import { findEntity } from "./lib/actions/find-entity";
import { entityEvent } from "./lib/triggers/entity-event";
export const base44Auth = PieceAuth.CustomAuth({
description: `Authenticate with your Base44 app using your App ID and API token.
**App ID**: Your Base44 application ID (required)
**Token**: Your Base44 user token or service token (optional but recommended)
You can find these in your Base44 app settings or dashboard.`,
displayName: 'Authentication',
required: true,
props: {
appId: Property.ShortText({
displayName: 'App ID',
description: 'Your Base44 application ID',
required: true,
}),
token: PieceAuth.SecretText({
displayName: 'API Token',
description: 'Your Base44 user token or service token (optional but recommended for full access)',
required: false,
}),
},
});
export const base44 = createPiece({
displayName: "Base44",
description: "Build and manage custom apps with databases and entities",
auth: base44Auth,
minimumSupportedRelease: '0.36.1',
logoUrl: "https://cdn.activepieces.com/pieces/base44.png",
categories: [PieceCategory.DEVELOPER_TOOLS, PieceCategory.PRODUCTIVITY],
authors: ["onyedikachi-david"],
actions: [
createEntity,
findEntity,
findOrCreateEntity,
],
triggers: [
entityEvent,
],
});