mainPageContent(): Promise<
{
authors: {
data: {
approveStatus: boolean;
biggerProfilePic: string
| null;
bio: string | null;
birthDate: Date | null;
createdAt: Date;
id: string;
name: string;
nationality: string | null;
openLibraryId: string | null;
smallerProfilePic: string | null;
subjects: string | null;
topWorks: string | null;
updatedAt: Date;
}[];
subtitle: string;
title: string;
}[];
books: {
data: (
{
author: { name: string }
| null;
comments: {
bookId: string;
createdAt: Date;
id: string;
text: string;
userId: string;
}[];
genres: (
{ genre: { name: ... } } & { bookId: string; genreId: string }
)[];
isbns: { bookId: string; id: string; isbnNumber: string }[];
statistics:
| {
averageRating: number;
bookId: string;
id: string;
ratingCount: number;
readersCount: number;
reviewCount: number;
wantToReadCount: number;
}
| null;
} & {
approveStatus: boolean;
authorId: string
| null;
biggerCoverPic: string;
createdAt: Date;
description: string;
googleBookId: string | null;
id: string;
latestPublicationYear: number | null;
openLibraryId: string | null;
originalPublicationYear: number | null;
originalPublisher: string | null;
pageNumber: number | null;
smallerCoverPic: string;
title: string;
updatedAt: Date;
}
)[];
subtitle: string;
title: string;
}[];
},
>