@acanthis-dec/core 1.3.0 → 1.4.0

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 +17 -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,6 +80,9 @@ 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
  }
76
87
  interface ReadingProgress {
77
88
  platform: string;
@@ -86,6 +97,11 @@ interface ReadingProgress {
86
97
  totalParagraphs: number;
87
98
  deviceLabel: string;
88
99
  updatedAt: number;
100
+ historyHiddenAt?: number | null | undefined;
101
+ }
102
+ interface CachedGenreItem {
103
+ name: string;
104
+ count: number;
89
105
  }
90
106
  interface ExploreFilterOption {
91
107
  value: string;
@@ -158,4 +174,4 @@ interface ExplorePage {
158
174
  hasNextPage: boolean;
159
175
  }
160
176
  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 };
177
+ export type { BookshelfCategory, BookshelfItem, CachedGenreItem, Chapter, ChapterContent, ContentNode, DescrambleCoefficients, 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.0",
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",