- 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>
28 lines
918 B
TypeScript
28 lines
918 B
TypeScript
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
|
|
import { createWootricSurvey } from './lib/actions/create-survey';
|
|
import { OAuth2GrantType } from '@activepieces/shared';
|
|
|
|
export const WOOTRIC_API_URL = 'https://api.wootric.com';
|
|
export const WOOTRIC_IMAGE_URL =
|
|
'https://assets-production.wootric.com/assets/wootric-is-now-inmoment-250x108-85cb4900c62ff4d33200abafee7d63372d410abc5bf0cab90e80a07d4f4e5a31.png';
|
|
|
|
export const wootricAuth = PieceAuth.OAuth2({
|
|
required: true,
|
|
grantType: OAuth2GrantType.CLIENT_CREDENTIALS,
|
|
authUrl: '',
|
|
tokenUrl: `${WOOTRIC_API_URL}/oauth/token`,
|
|
scope: [],
|
|
});
|
|
|
|
export const wootric = createPiece({
|
|
displayName: 'Wootric',
|
|
description: 'Measure and boost customer happiness',
|
|
|
|
auth: wootricAuth,
|
|
minimumSupportedRelease: '0.30.0',
|
|
logoUrl: WOOTRIC_IMAGE_URL,
|
|
authors: ["abuaboud"],
|
|
actions: [createWootricSurvey],
|
|
triggers: [],
|
|
});
|