mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
feat(kobo): add Kobo device sync with kepubify and collection support
This commit is contained in:
@@ -3,6 +3,7 @@ export type Collection = {
|
||||
name: string;
|
||||
icon: string | null;
|
||||
description: string | null;
|
||||
syncToKobo: boolean;
|
||||
bookCount: number;
|
||||
memberCount?: number;
|
||||
createdAt: string;
|
||||
|
||||
@@ -6,3 +6,4 @@ export * from "./query";
|
||||
export * from "./reader-settings";
|
||||
export * from "./scanner";
|
||||
export * from "./opds";
|
||||
export * from "./kobo";
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
export interface KoboDevice {
|
||||
id: number;
|
||||
name: string;
|
||||
lastSeenAt: string | null;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface KoboDeviceWithToken extends KoboDevice {
|
||||
token: string;
|
||||
}
|
||||
|
||||
export interface KoboSyncSettings {
|
||||
readingThreshold: number;
|
||||
finishedThreshold: number;
|
||||
convertToKepub: boolean;
|
||||
twoWayProgressSync: boolean;
|
||||
forceEnableHyphenation: boolean;
|
||||
kepubConversionLimitMb: number;
|
||||
}
|
||||
|
||||
export interface CreateKoboDeviceRequest {
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface RenameKoboDeviceRequest {
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface UpdateKoboSyncSettingsRequest {
|
||||
readingThreshold?: number;
|
||||
finishedThreshold?: number;
|
||||
convertToKepub?: boolean;
|
||||
twoWayProgressSync?: boolean;
|
||||
forceEnableHyphenation?: boolean;
|
||||
kepubConversionLimitMb?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user