backend
    Preparing search index...
    Index

    Constructors

    Methods

    • Parameters

      • commentId: string
      • session: any

      Returns Promise<{ commentId: string; userId: string }>

    • Parameters

      Returns Promise<
          {
              user: {
                  biggerProfilePic: string
                  | null;
                  nickname: string | null;
                  smallerProfilePic: string | null;
              };
          } & {
              bookId: string;
              createdAt: Date;
              id: string;
              text: string;
              userId: string;
          },
      >

    • Parameters

      • commentId: string
      • session: any

      Returns Promise<
          {
              bookId: string;
              createdAt: Date;
              id: string;
              text: string;
              userId: string;
          },
      >

    • Parameters

      • bookId: string

      Returns Promise<
          (
              {
                  user: {
                      email: string;
                      nickname: string
                      | null;
                      smallerProfilePic: string | null;
                  };
              } & {
                  bookId: string;
                  createdAt: Date;
                  id: string;
                  text: string;
                  userId: string;
              }
          )[],
      >

    • Parameters

      • session: any

      Returns Promise<
          (
              {
                  _count: { votes: number };
                  book: {
                      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;
                  };
              } & {
                  bookId: string;
                  createdAt: Date;
                  id: string;
                  text: string;
                  userId: string;
              }
          )[],
      >

    • Parameters

      • bookId: string
      • session: any

      Returns Promise<{ addedAt: Date; bookId: string; id: string; userId: string }>

    • Parameters

      • authorId: string
      • session: any

      Returns Promise<{ authorId: string; userId: string }>

    • Parameters

      • bookId: string
      • session: any

      Returns Promise<{ bookId: string; userId: string }>

    • Parameters

      Returns Promise<{ bookId: string; createdAt: Date; score: number; userId: string }>

    • Parameters

      • commentId: string
      • session: any

      Returns Promise<{ commentId: string; userId: string }>

    • Parameters

      • authorId: string
      • session: any

      Returns Promise<{ authorId: string; userId: string }>

    • Parameters

      • bookId: string
      • session: any

      Returns Promise<{ bookId: string; userId: string }>

    • Parameters

      Returns Promise<
          {
              bookId: string;
              createdAt: Date;
              id: string;
              text: string;
              userId: string;
          },
      >

    • Parameters

      Returns Promise<{ bookId: string; createdAt: Date; score: number; userId: string }>