- 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>
43 lines
1.4 KiB
TypeScript
43 lines
1.4 KiB
TypeScript
import { HttpMethod } from '@activepieces/pieces-common';
|
|
import { PieceAuth, createPiece } from '@activepieces/pieces-framework';
|
|
import { PieceCategory } from '@activepieces/shared';
|
|
import { extractDataFromDocumentAction } from './lib/actions/extract-data-from-document';
|
|
import { uploadDocumentAction } from './lib/actions/upload-document-for-parsing';
|
|
import { airparserApiCall } from './lib/common';
|
|
import { documentParsedTrigger } from './lib/triggers/document-parsed';
|
|
|
|
export const airparserAuth = PieceAuth.SecretText({
|
|
displayName: 'API Key',
|
|
required: true,
|
|
description: 'You can find your API key in the Airparser dashboard under Account Settings.',
|
|
validate: async ({ auth }) => {
|
|
try {
|
|
await airparserApiCall({
|
|
apiKey: auth as string,
|
|
method: HttpMethod.GET,
|
|
resourceUri: '/inboxes',
|
|
});
|
|
|
|
return {
|
|
valid: true,
|
|
};
|
|
} catch {
|
|
return {
|
|
valid: false,
|
|
error: 'Invalid API key.',
|
|
};
|
|
}
|
|
},
|
|
});
|
|
|
|
export const airparser = createPiece({
|
|
displayName: 'Airparser',
|
|
description: 'Extract structured data from emails, PDFs, or documents with Airparser.',
|
|
auth: airparserAuth,
|
|
logoUrl: 'https://cdn.activepieces.com/pieces/airparser.png',
|
|
authors: ['krushnarout','kishanprmr'],
|
|
categories: [PieceCategory.PRODUCTIVITY],
|
|
actions: [extractDataFromDocumentAction, uploadDocumentAction],
|
|
triggers: [documentParsedTrigger],
|
|
});
|