Files
vibe-kanban/shared/types.ts

21 lines
832 B
TypeScript
Raw Normal View History

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 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 Project = { id: string, name: string, owner_id: string, created_at: Date, updated_at: Date, };
2025-06-14 17:36:54 -04:00
2025-06-14 17:49:17 -04:00
type UpdateProject = { name: string | null, };
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, };