mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
feat(opds): implement OPDS catalog with cover token auth
This commit is contained in:
@@ -5,3 +5,4 @@ export * from "./library";
|
||||
export * from "./query";
|
||||
export * from "./reader-settings";
|
||||
export * from "./scanner";
|
||||
export * from "./opds";
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
export type OpdsSortOrder = "recent" | "title_asc" | "title_desc" | "author_asc" | "author_desc" | "series_asc" | "series_desc";
|
||||
|
||||
export interface OpdsUser {
|
||||
id: number;
|
||||
userId: number;
|
||||
username: string;
|
||||
sortOrder: OpdsSortOrder;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface CreateOpdsUserRequest {
|
||||
username: string;
|
||||
password: string;
|
||||
sortOrder?: OpdsSortOrder;
|
||||
}
|
||||
|
||||
export interface UpdateOpdsUserRequest {
|
||||
sortOrder: OpdsSortOrder;
|
||||
}
|
||||
Reference in New Issue
Block a user