Plugin Event Types (plugins/types.ts)

kaneo · apps/api/src/plugins/types.ts · typescript · MIT
integration, dev-tools, lang:typescript, tag:plugin, tag:events, tag:tasks

TypeScript type definitions for plugin context and task lifecycle events (created, status/priority/title changes) used to integrate external plugins with task workflows.

// Source: https://github.com/usekaneo/kaneo | License: MIT | Copyright 2024 Andrej Acevski
// Provided via justclaw.it.com; keep this notice with the code.
export type PluginContext = {
  integrationId: string;
  projectId: string;
  config: Record<string, unknown>;
};

export type TaskCreatedEvent = {
  taskId: string;
  projectId: string;
  userId: string;
  title: string;
  description: string | null;
  priority: string | null;
  status: string;
  number: number;
};

export type TaskStatusChangedEvent = {
  sourceIntegrationId?: string;
  taskId: string;
  projectId: string;
  userId: string | null;
  oldStatus: string;
  newStatus: string;
  title: string;
};

export type TaskPriorityChangedEvent = {
  taskId: string;
  projectId: string;
  userId: string | null;
  oldPriority: string

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key