@ooneex/book 0.0.1 → 0.0.4

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.ts +68 -1
  2. package/package.json +12 -6
package/dist/index.d.ts CHANGED
@@ -42,4 +42,71 @@ interface IBook extends IBase {
42
42
  context?: string;
43
43
  contextId?: string;
44
44
  }
45
- export { IPublisher, IBook, IAuthor };
45
+ interface IBookShared extends IBase {
46
+ book?: IBook;
47
+ bookId?: string;
48
+ sharedWith?: string;
49
+ sharedById?: string;
50
+ permission?: string;
51
+ expiresAt?: string;
52
+ }
53
+ interface IBookLiked extends IBase {
54
+ book?: IBook;
55
+ bookId?: string;
56
+ likedBy?: string;
57
+ likedById?: string;
58
+ }
59
+ interface IBookComment extends IBase {
60
+ book?: IBook;
61
+ bookId?: string;
62
+ comment: string;
63
+ commentedBy?: string;
64
+ commentedById?: string;
65
+ parentCommentId?: string;
66
+ }
67
+ interface IBookDisliked extends IBase {
68
+ book?: IBook;
69
+ bookId?: string;
70
+ dislikedBy?: string;
71
+ dislikedById?: string;
72
+ }
73
+ interface IBookSaved extends IBase {
74
+ book?: IBook;
75
+ bookId?: string;
76
+ savedBy?: string;
77
+ savedById?: string;
78
+ }
79
+ interface IBookReport extends IBase {
80
+ book?: IBook;
81
+ bookId?: string;
82
+ reason: string;
83
+ description?: string;
84
+ reportedBy?: string;
85
+ reportedById?: string;
86
+ status?: IStatus;
87
+ }
88
+ interface IBookDownloaded extends IBase {
89
+ book?: IBook;
90
+ bookId?: string;
91
+ downloadedBy?: string;
92
+ downloadedById?: string;
93
+ }
94
+ interface IBookViewed extends IBase {
95
+ book?: IBook;
96
+ bookId?: string;
97
+ viewedBy?: string;
98
+ viewedById?: string;
99
+ }
100
+ interface IBookStat extends IBase {
101
+ book?: IBook;
102
+ bookId?: string;
103
+ likesCount?: number;
104
+ dislikesCount?: number;
105
+ commentsCount?: number;
106
+ sharesCount?: number;
107
+ savesCount?: number;
108
+ downloadsCount?: number;
109
+ viewsCount?: number;
110
+ reportsCount?: number;
111
+ }
112
+ export { IPublisher, IBookViewed, IBookStat, IBookShared, IBookSaved, IBookReport, IBookLiked, IBookDownloaded, IBookDisliked, IBookComment, IBook, IAuthor };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ooneex/book",
3
- "description": "",
4
- "version": "0.0.1",
3
+ "description": "Book entity types and interfaces for managing digital book content with categories, tags, and status tracking",
4
+ "version": "0.0.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -24,9 +24,8 @@
24
24
  "scripts": {
25
25
  "build": "bunup",
26
26
  "lint": "tsgo --noEmit && bunx biome lint",
27
- "publish:prod": "bun publish --tolerate-republish --access public",
28
- "publish:pack": "bun pm pack --destination ./dist",
29
- "publish:dry": "bun publish --dry-run"
27
+ "publish": "bun publish --access public || true",
28
+ "test": "bun test tests"
30
29
  },
31
30
  "dependencies": {},
32
31
  "devDependencies": {
@@ -35,5 +34,12 @@
35
34
  "@ooneex/tag": "0.0.1",
36
35
  "@ooneex/types": "0.0.1"
37
36
  },
38
- "peerDependencies": {}
37
+ "keywords": [
38
+ "book",
39
+ "bun",
40
+ "ebook",
41
+ "ooneex",
42
+ "publishing",
43
+ "typescript"
44
+ ]
39
45
  }