2025-06-14 17:36:54 -04:00
|
|
|
// 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
|
|
|
|
|
|
2025-06-14 17:49:17 -04:00
|
|
|
type ApiResponse<T> = { success: boolean, data: T | null, message: string | null, };
|
2025-06-14 17:36:54 -04:00
|
|
|
|
2025-06-14 17:49:17 -04:00
|
|
|
type CreateProject = { name: string, };
|
2025-06-14 17:36:54 -04:00
|
|
|
|
2025-06-14 18:44:34 -04:00
|
|
|
type Project = { id: string, name: string, owner_id: string, created_at: Date, updated_at: Date, };
|
|
|
|
|
|
|
|
|
|
type UpdateProject = { name: string | null, };
|
|
|
|
|
|
|
|
|
|
type CreateTask = { project_id: string, title: string, description: string | null, };
|
|
|
|
|
|
|
|
|
|
type Task = { id: string, project_id: string, title: string, description: string | null, status: TaskStatus, created_at: string, updated_at: string, };
|
|
|
|
|
|
|
|
|
|
type TaskStatus = "Todo" | "InProgress" | "Done" | "Cancelled";
|
|
|
|
|
|
|
|
|
|
type UpdateTask = { title: string | null, description: string | null, status: TaskStatus | null, };
|
|
|
|
|
|
2025-06-14 17:49:17 -04:00
|
|
|
type CreateUser = { email: string, password: string, is_admin: boolean | null, };
|
2025-06-14 17:36:54 -04:00
|
|
|
|
2025-06-14 17:49:17 -04:00
|
|
|
type LoginRequest = { email: string, password: string, };
|
2025-06-14 17:36:54 -04:00
|
|
|
|
2025-06-14 17:49:17 -04:00
|
|
|
type LoginResponse = { user: User, token: string, };
|
2025-06-14 17:36:54 -04:00
|
|
|
|
2025-06-14 17:49:17 -04:00
|
|
|
type UpdateUser = { email: string | null, password: string | null, is_admin: boolean | null, };
|
2025-06-14 17:36:54 -04:00
|
|
|
|
2025-06-14 17:49:17 -04:00
|
|
|
type User = { id: string, email: string, is_admin: boolean, created_at: Date, updated_at: Date, };
|