UNPKG

planka-webhook-types

Version:

TypeScript type definitions for Planka webhook payloads

32 lines (31 loc) 735 B
import type { Board } from "./board"; import type { Card } from "./card"; import type { List } from "./list"; import type { Project } from "./project"; export interface Task { id: string; createdAt: string; updatedAt: any; position: number; name: string; isCompleted: boolean; cardId: string; } export type TaskCreated = { event: "taskCreate"; data: { item: Task; included: { projects: [Project]; boards: [Board]; lists: [List]; cards: [Card]; }; }; }; export type TaskUpdated = Omit<TaskCreated, "event"> & { event: "taskUpdate"; }; export type TaskDeleted = Omit<TaskCreated, "event"> & { event: "taskDelete"; };