Files
vibe-kanban/shared/types.ts
Louis Knight-Webb a435e3ce5d Cleanup types
2025-06-15 14:39:45 -04:00

29 lines
1.3 KiB
TypeScript

// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
// Auto-generated from Rust backend types using ts-rs
export type ApiResponse<T> = { success: boolean, data: T | null, message: string | null, };
export type CreateProject = { name: string, };
export type Project = { id: string, name: string, owner_id: string, created_at: Date, updated_at: Date, };
export type UpdateProject = { name: string | null, };
export type CreateTask = { project_id: string, title: string, description: string | null, };
export type TaskStatus = "todo" | "inprogress" | "inreview" | "done" | "cancelled";
export type Task = { id: string, project_id: string, title: string, description: string | null, status: TaskStatus, created_at: string, updated_at: string, };
export type UpdateTask = { title: string | null, description: string | null, status: TaskStatus | null, };
export type CreateUser = { email: string, password: string, is_admin: boolean | null, };
export type LoginRequest = { email: string, password: string, };
export type LoginResponse = { user: User, token: string, };
export type UpdateUser = { email: string | null, password: string | null, is_admin: boolean | null, };
export type User = { id: string, email: string, is_admin: boolean, created_at: Date, updated_at: Date, };