UNPKG

planka-webhook-types

Version:

TypeScript type definitions for Planka webhook payloads

26 lines (25 loc) 566 B
import type { Model } from "./model"; import type { Project } from "./project"; export interface Board extends Model { position: number; name: string; projectId: string; } export type BoardCreated = { event: "boardCreate"; data: { item: Board; included: { projects: [Project]; }; }; }; export type BoardDeleted = Omit<BoardCreated, "event"> & { event: "boardDelete"; }; export type BoardUpdated = Omit<BoardCreated, "event"> & { event: "boardUpdate"; prevData: { item: Board; }; };