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

1.0 KB
Raw Blame
import { createPiece } from '@activepieces/pieces-framework';
import { everhourAuth } from './lib/auth';
import { createTaskAction } from './lib/actions/create-task';
import { startTimerAction } from './lib/actions/start-timer';
import { stopTimerAction } from './lib/actions/stop-timer';
import { createCustomApiCallAction } from '@activepieces/pieces-common';

export const everhour = createPiece({
  displayName: 'Everhour',
  description: 'Time tracking software that integrates into project management tools to track billable hours, set budgets, and monitor spending.',
  logoUrl: 'https://cdn.activepieces.com/pieces/everhour.png',
  minimumSupportedRelease: '0.36.1',
  authors: ['Slim-Hady'],
  auth: everhourAuth,
  actions: [
    createTaskAction,
    startTimerAction,
    stopTimerAction,
    createCustomApiCallAction({
      baseUrl: () => `https://api.everhour.com/`,
      auth: everhourAuth,
      authMapping: async (auth) => {
        return {
          'X-Api-Key': `${auth.secret_text}`,
        };
      },
    }),
  ],
  triggers: [],
});