Options
All
  • Public
  • Public/Protected
  • All
Menu

Book table service.

Hierarchy

  • BookService

Index

Constructors

constructor

Methods

bookExists

  • bookExists(bookID: string): Promise<boolean>
  • Determine whether or not a book exists.

    Parameters

    • bookID: string

      The book's ID.

    Returns Promise<boolean>

    Whether or not the book exists.

createBook

  • createBook(options: CreateBookOptions): Promise<NBBook>

deleteBook

  • deleteBook(bookID: string, sold: boolean): Promise<void>

editBook

  • editBook(bookID: string, options: EditBookOptions): Promise<NBBook>

getBook

  • getBook(bookID: string): Promise<NBBook>

getBookUser

  • getBookUser(bookID: string): Promise<NBUser>

searchBooks

  • searchBooks(options: SearchBooksOptions, sortID: number): Promise<NBBook[]>
  • Search for books.

    Parameters

    • options: SearchBooksOptions

      The search options.

    • sortID: number

      The ID of the search sort option.

    Returns Promise<NBBook[]>

    All books matching the search parameters.

Generated using TypeDoc