backend
    Preparing search index...
    Index

    Constructors

    Methods

    • Parameters

      • id: string

      Returns Promise<
          {
              approveStatus: boolean;
              biggerProfilePic: string
              | null;
              biggerProfilePicKey: string | null;
              bio: string | null;
              birthDate: Date | null;
              createdAt: Date;
              id: string;
              name: string;
              nationality: string | null;
              openLibraryId: string | null;
              smallerProfilePic: string | null;
              smallerProfilePicKey: string | null;
              subjects: string | null;
              topWorks: string | null;
              updatedAt: Date;
          },
      >

    • Parameters

      Returns Promise<
          {
              approveStatus: boolean;
              biggerProfilePic: string
              | null;
              biggerProfilePicKey: string | null;
              bio: string | null;
              birthDate: Date | null;
              createdAt: Date;
              id: string;
              name: string;
              nationality: string | null;
              openLibraryId: string | null;
              smallerProfilePic: string | null;
              smallerProfilePicKey: string | null;
              subjects: string | null;
              topWorks: string | null;
              updatedAt: Date;
          },
      >

    • Parameters

      • id: string

      Returns Promise<
          {
              approveStatus: boolean;
              biggerProfilePic: string
              | null;
              biggerProfilePicKey: string | null;
              bio: string | null;
              birthDate: Date | null;
              createdAt: Date;
              id: string;
              name: string;
              nationality: string | null;
              openLibraryId: string | null;
              smallerProfilePic: string | null;
              smallerProfilePicKey: string | null;
              subjects: string | null;
              topWorks: string | null;
              updatedAt: Date;
          },
      >

    • Parameters

      • id: string
      • session: any

      Returns Promise<
          {
              _count: { favoritedBy: number };
              approveStatus: boolean;
              biggerProfilePic: string | null;
              biggerProfilePicKey: string | null;
              bio: string | null;
              birthDate: Date | null;
              books: (
                  {
                      genres: { genre: { name: string } }[];
                      statistics:
                          | {
                              averageRating: number;
                              bookId: string;
                              id: string;
                              ratingCount: number;
                              readersCount: number;
                              reviewCount: number;
                              wantToReadCount: number;
                          }
                          | null;
                  } & {
                      approveStatus: boolean;
                      authorId: string
                      | null;
                      biggerCoverPic: string;
                      biggerCoverPicKey: string | null;
                      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;
                      smallerCoverPicKey: string | null;
                      title: string;
                      updatedAt: Date;
                  }
              )[];
              createdAt: Date;
              id: string;
              isFavoritedbyCurrentUser: boolean;
              name: string;
              nationality: string
              | null;
              openLibraryId: string | null;
              smallerProfilePic: string | null;
              smallerProfilePicKey: string | null;
              subjects: string | null;
              topWorks: string | null;
              updatedAt: Date;
          },
      >

    • Parameters

      • id: string

      Returns Promise<
          {
              approveStatus: boolean;
              biggerProfilePic: string
              | null;
              biggerProfilePicKey: string | null;
              bio: string | null;
              birthDate: Date | null;
              commonCount: number;
              createdAt: Date;
              id: string;
              name: string;
              nationality: string | null;
              openLibraryId: string | null;
              smallerProfilePic: string | null;
              smallerProfilePicKey: string | null;
              subjects: string | null;
              topWorks: string | null;
              updatedAt: Date;
          }[],
      >

    • Parameters

      • id: string

      Returns Promise<
          {
              _count: { books: number };
              approveStatus: boolean;
              biggerProfilePic: string | null;
              biggerProfilePicKey: string | null;
              bio: string | null;
              birthDate: Date | null;
              commonCount: number;
              createdAt: Date;
              id: string;
              name: string;
              nationality: string | null;
              openLibraryId: string | null;
              smallerProfilePic: string | null;
              smallerProfilePicKey: string | null;
              subjects: string | null;
              topWorks: string | null;
              updatedAt: Date;
          }[],
      >

    • Returns Promise<
          {
              dataQuality: { totalWithBio: number; totalWithPic: number };
              moderation: { approved: number; pending: number };
              topAuthors: { _count: { favoritedBy: number }; name: string }[];
          },
      >

    • Parameters

      • OptionalolId: string
      • Optionalid: string

      Returns Promise<
          {
              approveStatus: boolean;
              biggerProfilePic: string
              | null;
              biggerProfilePicKey: string | null;
              bio: string | null;
              birthDate: Date | null;
              createdAt: Date;
              id: string;
              name: string;
              nationality: string | null;
              openLibraryId: string | null;
              smallerProfilePic: string | null;
              smallerProfilePicKey: string | null;
              subjects: string | null;
              topWorks: string | null;
              updatedAt: Date;
          },
      >

    • Parameters

      Returns Promise<
          {
              approveStatus: boolean;
              biggerProfilePic: string
              | null;
              biggerProfilePicKey: string | null;
              bio: string | null;
              birthDate: Date | null;
              createdAt: Date;
              id: string;
              name: string;
              nationality: string | null;
              openLibraryId: string | null;
              smallerProfilePic: string | null;
              smallerProfilePicKey: string | null;
              subjects: string | null;
              topWorks: string | null;
              updatedAt: Date;
          },
      >