Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

869 B
Raw Blame
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
import { importInvoice } from './lib/actions/import-invoice';
import { tidelyAuth } from './lib/common/auth';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { create } from 'domain';
import { createAPlan } from './lib/actions/create-a-plan';

export const tidely = createPiece({
  displayName: 'Tidely',
  auth: tidelyAuth,
  minimumSupportedRelease: '0.36.1',
  logoUrl: 'https://cdn.activepieces.com/pieces/tidely.png',
  authors: ['sanket-a11y'],
  actions: [
    importInvoice,
    createAPlan,
    createCustomApiCallAction({
      auth: tidelyAuth,
      baseUrl: () => 'https://api.tidely.com/api/v1',
      authMapping: async (auth) => {
        return {
          'X-Authorization': auth.secret_text,
        };
      },
    }),
  ],
  triggers: [],
});