40 lines
887 B
TypeScript
40 lines
887 B
TypeScript
export interface User {
|
|
id: string;
|
|
email: string;
|
|
name: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
}
|
|
export interface UserProfile extends User {
|
|
bio?: string;
|
|
avatarUrl?: string;
|
|
}
|
|
export interface ApiResponse<T> {
|
|
success: boolean;
|
|
data?: T;
|
|
error?: string;
|
|
message?: string;
|
|
}
|
|
export interface PaginatedResponse<T> extends ApiResponse<T[]> {
|
|
page: number;
|
|
pageSize: number;
|
|
totalPages: number;
|
|
totalItems: number;
|
|
}
|
|
export type Nullable<T> = T | null;
|
|
export type Optional<T> = T | undefined;
|
|
export type ID = string | number;
|
|
export declare enum Status {
|
|
Active = "active",
|
|
Inactive = "inactive",
|
|
Pending = "pending",
|
|
Archived = "archived"
|
|
}
|
|
export declare enum HttpMethod {
|
|
GET = "GET",
|
|
POST = "POST",
|
|
PUT = "PUT",
|
|
PATCH = "PATCH",
|
|
DELETE = "DELETE"
|
|
}
|
|
//# sourceMappingURL=types.d.ts.map
|