Checkpoint

This commit is contained in:
aditya.chandel
2024-12-15 22:41:13 -07:00
parent 0aa1c1b923
commit 767c6604e8
51 changed files with 297 additions and 212 deletions
@@ -1,4 +0,0 @@
export interface Author {
id: number;
name: string;
}
@@ -1,6 +0,0 @@
export interface BookSetting {
pageNumber: number;
zoom: number | string;
sidebar_visible: boolean;
spread: 'off' | 'even' | 'odd';
}
@@ -1,14 +0,0 @@
import {BookMetadata} from './book.model';
export interface BookUpdateEvent {
libraryId: number;
filename: string;
book: {
id: number;
libraryId: number;
fileName: string;
addedOn: string;
metadata: BookMetadata;
};
parsingStatus: string;
}
@@ -17,6 +17,7 @@ export interface PaginatedBooksResponse {
export interface BookMetadata {
thumbnail: string;
title: string;
subtitle?: string;
authors: Author[];
categories: Category[];
publisher: string;
@@ -38,4 +39,29 @@ export interface Category {
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';
}