mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-01 13:10:44 -03:00
55 lines
938 B
TypeScript
55 lines
938 B
TypeScript
export interface Post {
|
|
_id: string;
|
|
authorId: string;
|
|
content: string;
|
|
imageUrl?: string;
|
|
parentPostId?: string;
|
|
likesCount: number;
|
|
repliesCount: number;
|
|
createdAt: string;
|
|
updatedAt?: Date;
|
|
isEdited: boolean;
|
|
visibility: string;
|
|
hashtags?: string[];
|
|
}
|
|
|
|
export interface User {
|
|
_id: string;
|
|
displayName: string;
|
|
username: string;
|
|
email: string;
|
|
passwordHash: string;
|
|
bio?: string;
|
|
profileImageUrl?: string;
|
|
createdAt: Date;
|
|
followersCount: number;
|
|
followingCount: number;
|
|
refreshTokens: RefreshToken[];
|
|
}
|
|
|
|
export interface Sesion {
|
|
accessToken: string?;
|
|
message: string;
|
|
url: string;
|
|
displayName: string;
|
|
username: string;
|
|
}
|
|
|
|
export interface LoginDto {
|
|
username: string?;
|
|
password: string?;
|
|
}
|
|
|
|
export interface RegisterDto {
|
|
username: string?;
|
|
email: string?;
|
|
password: string?;
|
|
displayName: string?;
|
|
}
|
|
|
|
export interface CreatePostDto {
|
|
content: string;
|
|
imageUrl: string?;
|
|
parentPostId: string?;
|
|
}
|