Files
grimmory/booklore-ui/src/app/book/model/book.model.ts
T
aditya.chandel 1abe138dd1 Move book card to own component
WIP: Edit Book's shelf functionality
2024-12-20 23:49:32 -07:00

64 lines
1.1 KiB
TypeScript

export interface Book {
id: number;
libraryId: number;
metadata: BookMetadata;
shelves?: Shelf[];
}
export interface BookMetadata {
thumbnail: string;
title: string;
subtitle?: string;
authors: Author[];
categories: Category[];
publisher: string;
publishedDate: string;
isbn10: string;
description: string;
pageCount: number;
language: string;
googleBookId: string;
}
export interface Author {
id: number;
name: string;
}
export interface Category {
id: number;
name: string;
}
export interface Shelf {
id: number;
name: string;
}
export interface BookWithNeighborsDTO {
currentBook: Book;
previousBookId: number | null;
nextBookId: number | null;
}
export interface BookUpdateEvent {
libraryId: number;
filename: string;
book: {
id: number;
libraryId: number;
fileName: string;
addedOn: string;
metadata: BookMetadata;
};
parsingStatus: string;
}
export interface BookSetting {
pageNumber: number;
zoom: number | string;
sidebar_visible: boolean;
spread: 'off' | 'even' | 'odd';
}