fix(filter): update filter options to use CountedOption for read statuses and file types (#448)
* fix(filter): update filter options to use CountedOption for read statuses and file types * fix(specification): validate file types and read statuses, throwing APIException for invalid values
This commit is contained in:
@@ -30,8 +30,8 @@ export interface AppBookSummary {
|
||||
export interface AppFilterOptions {
|
||||
authors: CountedOption[];
|
||||
languages: LanguageOption[];
|
||||
readStatuses: string[];
|
||||
fileTypes: string[];
|
||||
readStatuses: CountedOption[];
|
||||
fileTypes: CountedOption[];
|
||||
categories: CountedOption[];
|
||||
publishers: CountedOption[];
|
||||
series: CountedOption[];
|
||||
@@ -56,9 +56,9 @@ export interface AppBookFilters {
|
||||
shelfId?: number;
|
||||
magicShelfId?: number;
|
||||
unshelved?: boolean;
|
||||
status?: string;
|
||||
status?: string[];
|
||||
search?: string;
|
||||
fileType?: string;
|
||||
fileType?: string[];
|
||||
minRating?: number;
|
||||
maxRating?: number;
|
||||
authors?: string[];
|
||||
|
||||
Reference in New Issue
Block a user