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,47 @@
|
||||
|
||||
|
||||
import { createPiece } from "@activepieces/pieces-framework";
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { createCustomApiCallAction } from "@activepieces/pieces-common";
|
||||
import { uscreenAuth } from "./lib/common/auth";
|
||||
import { uscreenPublisherApiUrl } from "./lib/common/client";
|
||||
|
||||
import { assignUserAccess } from "./lib/actions/assign-user-access";
|
||||
import { createUser } from "./lib/actions/create-user";
|
||||
|
||||
import { paidOrder } from "./lib/triggers/paid-order";
|
||||
import { newUser } from "./lib/triggers/new-user";
|
||||
import { beganToPlayVideo } from "./lib/triggers/began-to-play-video";
|
||||
import { canceledSubscription } from "./lib/triggers/canceled-subscription";
|
||||
import { userUpdated } from "./lib/triggers/user-updated";
|
||||
|
||||
export const uscreen = createPiece({
|
||||
displayName: "Uscreen",
|
||||
description: "All-in-one video monetization platform for creating, hosting, and selling online courses, memberships, and video content.",
|
||||
auth: uscreenAuth,
|
||||
minimumSupportedRelease: '0.36.1',
|
||||
logoUrl: "https://cdn.activepieces.com/pieces/uscreen.png",
|
||||
categories: [PieceCategory.COMMERCE, PieceCategory.MARKETING],
|
||||
authors: ['srimalleswari205','sanket-a11y'],
|
||||
actions: [
|
||||
createUser,
|
||||
assignUserAccess,
|
||||
createCustomApiCallAction({
|
||||
auth: uscreenAuth,
|
||||
baseUrl: () => uscreenPublisherApiUrl,
|
||||
authMapping: async (auth) => {
|
||||
return {
|
||||
'X-Store-Token': `${auth.secret_text}`,
|
||||
'Accept': 'application/json'
|
||||
}
|
||||
}
|
||||
})
|
||||
],
|
||||
triggers: [
|
||||
paidOrder,
|
||||
newUser,
|
||||
beganToPlayVideo,
|
||||
canceledSubscription,
|
||||
userUpdated
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user