Files
project-manager/web/src/types.ts
T

45 lines
851 B
TypeScript
Raw Normal View History

export interface User {
id: number
email: string
email_verified: boolean
email_verified_at: string | null
/** A confirmed-but-not-yet-applied email change is waiting on this address. */
pending_email: string | null
created_at: string | null
}
export interface AuthResponse {
user: User
token: string
expires_at: string
}
export interface Project {
id: number
title: string
description: string
owner_id: number
card_count: number
completed_count: number
created_at: string
updated_at: string
}
export interface Card {
id: number
project_id: number
text: string
complete: boolean
position: number
created_at: string
updated_at: string
}
/** Shape of every error body returned by the API. */
export interface ApiErrorBody {
error: {
message: string
details?: Record<string, string[]>
}
}