Use date types
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
// 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, };
|
||||
type ApiResponse<T> = { success: boolean, data: T | null, message: string | null, };
|
||||
|
||||
export type CreateProject = { name: string, };
|
||||
type CreateProject = { name: string, };
|
||||
|
||||
export type CreateUser = { email: string, password: string, is_admin: boolean | null, };
|
||||
type CreateUser = { email: string, password: string, is_admin: boolean | null, };
|
||||
|
||||
export type LoginRequest = { email: string, password: string, };
|
||||
type LoginRequest = { email: string, password: string, };
|
||||
|
||||
export type LoginResponse = { user: User, token: string, };
|
||||
type LoginResponse = { user: User, token: string, };
|
||||
|
||||
export type Project = { id: string, name: string, owner_id: string, created_at: string, updated_at: string, };
|
||||
type Project = { id: string, name: string, owner_id: string, created_at: Date, updated_at: Date, };
|
||||
|
||||
export type UpdateProject = { name: string | null, };
|
||||
type UpdateProject = { name: string | null, };
|
||||
|
||||
export type UpdateUser = { email: string | null, password: string | null, is_admin: boolean | null, };
|
||||
type UpdateUser = { email: string | null, password: string | null, is_admin: boolean | null, };
|
||||
|
||||
export type User = { id: string, email: string, is_admin: boolean, created_at: string, updated_at: string, };
|
||||
type User = { id: string, email: string, is_admin: boolean, created_at: Date, updated_at: Date, };
|
||||
|
||||
Reference in New Issue
Block a user