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