35 lines
628 B
TypeScript
35 lines
628 B
TypeScript
|
|
export enum AppScreen {
|
|
LIBRARY = 'LIBRARY',
|
|
CATEGORIES = 'CATEGORIES',
|
|
WISHLIST = 'WISHLIST',
|
|
SETTINGS = 'SETTINGS',
|
|
DETAILS = 'DETAILS',
|
|
ADD_BOOK = 'ADD_BOOK',
|
|
SCANNER = 'SCANNER',
|
|
}
|
|
|
|
export interface Book {
|
|
id: string;
|
|
title: string;
|
|
author: string;
|
|
genre: string;
|
|
annotation: string;
|
|
coverUrl?: string;
|
|
pages?: number;
|
|
language?: string;
|
|
publishedYear?: number;
|
|
rating?: number;
|
|
status: 'reading' | 'done' | 'want_to_read';
|
|
progress?: number;
|
|
isFavorite?: boolean;
|
|
}
|
|
|
|
export interface Category {
|
|
id: string;
|
|
name: string;
|
|
count: number;
|
|
icon: string;
|
|
colorClass: string;
|
|
}
|