@acanthis-dec/core 1.3.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.mts +19 -1
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -63,6 +63,14 @@ interface NovelSourceDescriptor {
63
63
  name: string;
64
64
  capabilities: SourceCapability[];
65
65
  }
66
+ interface BookshelfCategory {
67
+ id: string;
68
+ name: string;
69
+ sortOrder: number;
70
+ createdAt: number;
71
+ updatedAt: number;
72
+ deletedAt: number | null;
73
+ }
66
74
  interface BookshelfItem {
67
75
  platform: string;
68
76
  novelId: string;
@@ -72,7 +80,11 @@ interface BookshelfItem {
72
80
  addedAt: number;
73
81
  updatedAt: number;
74
82
  deletedAt: number | null;
83
+ categoryIds?: string[] | undefined;
84
+ genres?: string[] | undefined;
85
+ status?: NovelStatus | undefined;
75
86
  }
87
+ type DeviceKind = "desktop" | "mobile" | "unknown";
76
88
  interface ReadingProgress {
77
89
  platform: string;
78
90
  novelId: string;
@@ -85,7 +97,13 @@ interface ReadingProgress {
85
97
  paragraphIndex: number;
86
98
  totalParagraphs: number;
87
99
  deviceLabel: string;
100
+ deviceKind?: DeviceKind | undefined;
88
101
  updatedAt: number;
102
+ historyHiddenAt?: number | null | undefined;
103
+ }
104
+ interface CachedGenreItem {
105
+ name: string;
106
+ count: number;
89
107
  }
90
108
  interface ExploreFilterOption {
91
109
  value: string;
@@ -158,4 +176,4 @@ interface ExplorePage {
158
176
  hasNextPage: boolean;
159
177
  }
160
178
  export declare function runTimeout<T>(callback: () => T | Promise<T>, delayTime: number): Promise<T>;
161
- export type { BookshelfItem, Chapter, ChapterContent, ContentNode, DescrambleCoefficients, ExploreChannelOption, ExploreFilterGroup, ExploreFilterOption, ExploreHomeData, ExploreNovelItem, ExplorePage, ExploreRankingOption, ExploreSchema, ExploreSection, ExploreSectionLayout, ExploreSectionMoreTarget, LcgConfig, Novel, NovelInfo, NovelSearchResult, NovelSourceDescriptor, NovelStatus, ReadingProgress, SourceCapability, Volume };
179
+ export type { BookshelfCategory, BookshelfItem, CachedGenreItem, Chapter, ChapterContent, ContentNode, DescrambleCoefficients, DeviceKind, ExploreChannelOption, ExploreFilterGroup, ExploreFilterOption, ExploreHomeData, ExploreNovelItem, ExplorePage, ExploreRankingOption, ExploreSchema, ExploreSection, ExploreSectionLayout, ExploreSectionMoreTarget, LcgConfig, Novel, NovelInfo, NovelSearchResult, NovelSourceDescriptor, NovelStatus, ReadingProgress, SourceCapability, Volume };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acanthis-dec/core",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "description": "The core package of Acanthis project, including some platform-independent utils and type definitions.",
5
5
  "author": "ConstasJ <constasj@qq.com>",
6
6
  "license": "MIT",