2026-09-03 18:12:31 +01:00
|
|
|
export interface User {
|
|
|
|
|
id: number
|
|
|
|
|
email: string
|
|
|
|
|
email_verified: boolean
|
|
|
|
|
email_verified_at: string | null
|
|
|
|
|
created_at: string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface AuthResponse {
|
|
|
|
|
user: User
|
|
|
|
|
token: string
|
|
|
|
|
expires_at: string
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-03 18:42:15 +01:00
|
|
|
export interface TodoList {
|
|
|
|
|
id: number
|
|
|
|
|
title: string
|
|
|
|
|
description: string
|
|
|
|
|
owner_id: number
|
|
|
|
|
item_count: number
|
|
|
|
|
completed_count: number
|
|
|
|
|
created_at: string
|
|
|
|
|
updated_at: string
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-03 18:12:31 +01:00
|
|
|
/** Shape of every error body returned by the API. */
|
|
|
|
|
export interface ApiErrorBody {
|
|
|
|
|
error: {
|
|
|
|
|
message: string
|
|
|
|
|
details?: Record<string, string[]>
|
|
|
|
|
}
|
|
|
|
|
}
|