@ooneex/video 0.0.1 → 0.0.5

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.
package/dist/index.d.ts CHANGED
@@ -154,6 +154,7 @@ interface IVideo extends IBase {
154
154
  status?: IStatus;
155
155
  context?: string;
156
156
  contextId?: string;
157
+ isYoutube: boolean;
157
158
  }
158
159
  interface IPlaylist extends IBase {
159
160
  name: string;
@@ -170,4 +171,71 @@ interface IVideoProgress extends IBase {
170
171
  completed?: boolean;
171
172
  lastWatched?: string;
172
173
  }
173
- export { VideoResolutionType, VideoQualityType, VideoFormatType, VideoCodecType, IVideoProgress, IVideo, IPlaylist, EVideoResolution, EVideoQuality, EVideoFormat, EVideoCodec, EAudioCodec, EAudioChannels, AudioCodecType, AudioChannelsType };
174
+ interface IVideoShared extends IBase {
175
+ video?: IVideo;
176
+ videoId?: string;
177
+ sharedWith?: string;
178
+ sharedById?: string;
179
+ permission?: string;
180
+ expiresAt?: string;
181
+ }
182
+ interface IVideoLiked extends IBase {
183
+ video?: IVideo;
184
+ videoId?: string;
185
+ likedBy?: string;
186
+ likedById?: string;
187
+ }
188
+ interface IVideoComment extends IBase {
189
+ video?: IVideo;
190
+ videoId?: string;
191
+ comment: string;
192
+ commentedBy?: string;
193
+ commentedById?: string;
194
+ parentCommentId?: string;
195
+ }
196
+ interface IVideoDisliked extends IBase {
197
+ video?: IVideo;
198
+ videoId?: string;
199
+ dislikedBy?: string;
200
+ dislikedById?: string;
201
+ }
202
+ interface IVideoSaved extends IBase {
203
+ video?: IVideo;
204
+ videoId?: string;
205
+ savedBy?: string;
206
+ savedById?: string;
207
+ }
208
+ interface IVideoReport extends IBase {
209
+ video?: IVideo;
210
+ videoId?: string;
211
+ reason: string;
212
+ description?: string;
213
+ reportedBy?: string;
214
+ reportedById?: string;
215
+ status?: IStatus;
216
+ }
217
+ interface IVideoDownloaded extends IBase {
218
+ video?: IVideo;
219
+ videoId?: string;
220
+ downloadedBy?: string;
221
+ downloadedById?: string;
222
+ }
223
+ interface IVideoViewed extends IBase {
224
+ video?: IVideo;
225
+ videoId?: string;
226
+ viewedBy?: string;
227
+ viewedById?: string;
228
+ }
229
+ interface IVideoStat extends IBase {
230
+ video?: IVideo;
231
+ videoId?: string;
232
+ likesCount?: number;
233
+ dislikesCount?: number;
234
+ commentsCount?: number;
235
+ sharesCount?: number;
236
+ savesCount?: number;
237
+ downloadsCount?: number;
238
+ viewsCount?: number;
239
+ reportsCount?: number;
240
+ }
241
+ export { VideoResolutionType, VideoQualityType, VideoFormatType, VideoCodecType, IVideoViewed, IVideoStat, IVideoShared, IVideoSaved, IVideoReport, IVideoProgress, IVideoLiked, IVideoDownloaded, IVideoDisliked, IVideoComment, IVideo, IPlaylist, EVideoResolution, EVideoQuality, EVideoFormat, EVideoCodec, EAudioCodec, EAudioChannels, AudioCodecType, AudioChannelsType };
package/dist/index.js.map CHANGED
@@ -2,7 +2,7 @@
2
2
  "version": 3,
3
3
  "sources": ["src/types.ts"],
4
4
  "sourcesContent": [
5
- "import type { ICategory } from \"@ooneex/category\";\nimport type { IStatus } from \"@ooneex/status\";\nimport type { ITag } from \"@ooneex/tag\";\nimport type { IBase } from \"@ooneex/types\";\n\nexport enum EVideoResolution {\n RES_240P = \"240p\",\n RES_360P = \"360p\",\n RES_480P = \"480p\",\n RES_720P = \"720p\",\n RES_1080P = \"1080p\",\n RES_1440P = \"1440p\",\n RES_2160P = \"2160p\",\n RES_4K = \"4K\",\n RES_8K = \"8K\",\n HD = \"HD\",\n FULL_HD = \"Full HD\",\n ULTRA_HD = \"Ultra HD\",\n RES_1920x1080 = \"1920x1080\",\n RES_1280x720 = \"1280x720\",\n RES_854x480 = \"854x480\",\n RES_640x360 = \"640x360\",\n RES_426x240 = \"426x240\",\n RES_2560x1440 = \"2560x1440\",\n RES_3840x2160 = \"3840x2160\",\n RES_7680x4320 = \"7680x4320\",\n}\n\nexport type VideoResolutionType = `${EVideoResolution}`;\n\nexport enum EVideoQuality {\n QUAL_240P = \"240p\",\n QUAL_360P = \"360p\",\n QUAL_480P = \"480p\",\n QUAL_720P = \"720p\",\n QUAL_1080P = \"1080p\",\n QUAL_1440P = \"1440p\",\n QUAL_2160P = \"2160p\",\n QUAL_4K = \"4K\",\n QUAL_8K = \"8K\",\n HD = \"HD\",\n FULL_HD = \"Full HD\",\n ULTRA_HD = \"Ultra HD\",\n SD = \"SD\",\n LOW = \"Low\",\n MEDIUM = \"Medium\",\n HIGH = \"High\",\n ULTRA_HIGH = \"Ultra High\",\n}\n\nexport type VideoQualityType = `${EVideoQuality}`;\n\nexport enum EVideoFormat {\n MP4 = \"mp4\",\n MKV = \"mkv\",\n AVI = \"avi\",\n MOV = \"mov\",\n WMV = \"wmv\",\n FLV = \"flv\",\n WEBM = \"webm\",\n M4V = \"m4v\",\n THREE_GP = \"3gp\",\n OGV = \"ogv\",\n TS = \"ts\",\n M2TS = \"m2ts\",\n MTS = \"mts\",\n VOB = \"vob\",\n ASF = \"asf\",\n RM = \"rm\",\n RMVB = \"rmvb\",\n F4V = \"f4v\",\n MPG = \"mpg\",\n MPEG = \"mpeg\",\n MP2 = \"mp2\",\n MPE = \"mpe\",\n MPV = \"mpv\",\n M2V = \"m2v\",\n}\n\nexport type VideoFormatType = `${EVideoFormat}`;\n\nexport enum EVideoCodec {\n H264 = \"H.264\",\n H265 = \"H.265\",\n H266 = \"H.266\",\n VP8 = \"VP8\",\n VP9 = \"VP9\",\n AV1 = \"AV1\",\n HEVC = \"HEVC\",\n AVC = \"AVC\",\n MPEG4 = \"MPEG-4\",\n MPEG2 = \"MPEG-2\",\n MPEG1 = \"MPEG-1\",\n XVID = \"XviD\",\n DIVX = \"DivX\",\n WMV = \"WMV\",\n THEORA = \"Theora\",\n PRORES = \"ProRes\",\n DNXHD = \"DNxHD\",\n MJPEG = \"MJPEG\",\n}\n\nexport type VideoCodecType = `${EVideoCodec}`;\n\nexport enum EAudioCodec {\n AAC = \"AAC\",\n MP3 = \"MP3\",\n DTS = \"DTS\",\n DTS_HD = \"DTS-HD\",\n DOLBY_DIGITAL = \"Dolby Digital\",\n DOLBY_DIGITAL_PLUS = \"Dolby Digital Plus\",\n DOLBY_ATMOS = \"Dolby Atmos\",\n FLAC = \"FLAC\",\n ALAC = \"ALAC\",\n OGG = \"OGG\",\n VORBIS = \"Vorbis\",\n OPUS = \"Opus\",\n PCM = \"PCM\",\n WAV = \"WAV\",\n AC3 = \"AC-3\",\n EAC3 = \"EAC-3\",\n TRUE_HD = \"TrueHD\",\n WMA = \"WMA\",\n}\n\nexport type AudioCodecType = `${EAudioCodec}`;\n\nexport enum EAudioChannels {\n MONO = \"mono\",\n STEREO = \"stereo\",\n TWO_ONE = \"2.1\",\n FIVE_ONE = \"5.1\",\n SIX_ONE = \"6.1\",\n SEVEN_ONE = \"7.1\",\n SEVEN_ONE_FOUR = \"7.1.4\",\n NINE_ONE = \"9.1\",\n ELEVEN_ONE = \"11.1\",\n TWENTY_TWO_TWO = \"22.2\",\n}\n\nexport type AudioChannelsType = `${EAudioChannels}`;\n\nexport interface IVideo extends IBase {\n title: string;\n subtitle?: string;\n releaseDate?: string;\n description?: string;\n duration?: number;\n category?: ICategory;\n genres?: string[];\n // File info\n size?: number;\n url?: string;\n posterImage?: string;\n thumbnailImage?: string;\n // Video technical details\n resolution?: EVideoResolution;\n quality?: EVideoQuality;\n format?: EVideoFormat;\n codec?: EVideoCodec;\n bitrate?: number;\n frameRate?: number;\n // Audio details\n audioCodec?: AudioCodecType;\n audioChannels?: AudioChannelsType;\n // Rating and reviews\n averageRating?: number;\n ratingsCount?: number;\n contentRating?: string; // e.g., \"G\", \"PG\", \"PG-13\", \"R\", \"NC-17\"\n tags?: ITag[];\n status?: IStatus;\n context?: string;\n contextId?: string;\n}\n\nexport interface IPlaylist extends IBase {\n name: string;\n description?: string;\n videos?: IVideo[];\n tags?: ITag[];\n status?: IStatus;\n}\n\nexport interface IVideoProgress extends IBase {\n video?: IVideo;\n userId: string;\n currentTime: number;\n duration?: number;\n completed?: boolean;\n lastWatched?: string;\n}\n"
5
+ "import type { ICategory } from \"@ooneex/category\";\nimport type { IStatus } from \"@ooneex/status\";\nimport type { ITag } from \"@ooneex/tag\";\nimport type { IBase } from \"@ooneex/types\";\n\nexport enum EVideoResolution {\n RES_240P = \"240p\",\n RES_360P = \"360p\",\n RES_480P = \"480p\",\n RES_720P = \"720p\",\n RES_1080P = \"1080p\",\n RES_1440P = \"1440p\",\n RES_2160P = \"2160p\",\n RES_4K = \"4K\",\n RES_8K = \"8K\",\n HD = \"HD\",\n FULL_HD = \"Full HD\",\n ULTRA_HD = \"Ultra HD\",\n RES_1920x1080 = \"1920x1080\",\n RES_1280x720 = \"1280x720\",\n RES_854x480 = \"854x480\",\n RES_640x360 = \"640x360\",\n RES_426x240 = \"426x240\",\n RES_2560x1440 = \"2560x1440\",\n RES_3840x2160 = \"3840x2160\",\n RES_7680x4320 = \"7680x4320\",\n}\n\nexport type VideoResolutionType = `${EVideoResolution}`;\n\nexport enum EVideoQuality {\n QUAL_240P = \"240p\",\n QUAL_360P = \"360p\",\n QUAL_480P = \"480p\",\n QUAL_720P = \"720p\",\n QUAL_1080P = \"1080p\",\n QUAL_1440P = \"1440p\",\n QUAL_2160P = \"2160p\",\n QUAL_4K = \"4K\",\n QUAL_8K = \"8K\",\n HD = \"HD\",\n FULL_HD = \"Full HD\",\n ULTRA_HD = \"Ultra HD\",\n SD = \"SD\",\n LOW = \"Low\",\n MEDIUM = \"Medium\",\n HIGH = \"High\",\n ULTRA_HIGH = \"Ultra High\",\n}\n\nexport type VideoQualityType = `${EVideoQuality}`;\n\nexport enum EVideoFormat {\n MP4 = \"mp4\",\n MKV = \"mkv\",\n AVI = \"avi\",\n MOV = \"mov\",\n WMV = \"wmv\",\n FLV = \"flv\",\n WEBM = \"webm\",\n M4V = \"m4v\",\n THREE_GP = \"3gp\",\n OGV = \"ogv\",\n TS = \"ts\",\n M2TS = \"m2ts\",\n MTS = \"mts\",\n VOB = \"vob\",\n ASF = \"asf\",\n RM = \"rm\",\n RMVB = \"rmvb\",\n F4V = \"f4v\",\n MPG = \"mpg\",\n MPEG = \"mpeg\",\n MP2 = \"mp2\",\n MPE = \"mpe\",\n MPV = \"mpv\",\n M2V = \"m2v\",\n}\n\nexport type VideoFormatType = `${EVideoFormat}`;\n\nexport enum EVideoCodec {\n H264 = \"H.264\",\n H265 = \"H.265\",\n H266 = \"H.266\",\n VP8 = \"VP8\",\n VP9 = \"VP9\",\n AV1 = \"AV1\",\n HEVC = \"HEVC\",\n AVC = \"AVC\",\n MPEG4 = \"MPEG-4\",\n MPEG2 = \"MPEG-2\",\n MPEG1 = \"MPEG-1\",\n XVID = \"XviD\",\n DIVX = \"DivX\",\n WMV = \"WMV\",\n THEORA = \"Theora\",\n PRORES = \"ProRes\",\n DNXHD = \"DNxHD\",\n MJPEG = \"MJPEG\",\n}\n\nexport type VideoCodecType = `${EVideoCodec}`;\n\nexport enum EAudioCodec {\n AAC = \"AAC\",\n MP3 = \"MP3\",\n DTS = \"DTS\",\n DTS_HD = \"DTS-HD\",\n DOLBY_DIGITAL = \"Dolby Digital\",\n DOLBY_DIGITAL_PLUS = \"Dolby Digital Plus\",\n DOLBY_ATMOS = \"Dolby Atmos\",\n FLAC = \"FLAC\",\n ALAC = \"ALAC\",\n OGG = \"OGG\",\n VORBIS = \"Vorbis\",\n OPUS = \"Opus\",\n PCM = \"PCM\",\n WAV = \"WAV\",\n AC3 = \"AC-3\",\n EAC3 = \"EAC-3\",\n TRUE_HD = \"TrueHD\",\n WMA = \"WMA\",\n}\n\nexport type AudioCodecType = `${EAudioCodec}`;\n\nexport enum EAudioChannels {\n MONO = \"mono\",\n STEREO = \"stereo\",\n TWO_ONE = \"2.1\",\n FIVE_ONE = \"5.1\",\n SIX_ONE = \"6.1\",\n SEVEN_ONE = \"7.1\",\n SEVEN_ONE_FOUR = \"7.1.4\",\n NINE_ONE = \"9.1\",\n ELEVEN_ONE = \"11.1\",\n TWENTY_TWO_TWO = \"22.2\",\n}\n\nexport type AudioChannelsType = `${EAudioChannels}`;\n\nexport interface IVideo extends IBase {\n title: string;\n subtitle?: string;\n releaseDate?: string;\n description?: string;\n duration?: number;\n category?: ICategory;\n genres?: string[];\n // File info\n size?: number;\n url?: string;\n posterImage?: string;\n thumbnailImage?: string;\n // Video technical details\n resolution?: EVideoResolution;\n quality?: EVideoQuality;\n format?: EVideoFormat;\n codec?: EVideoCodec;\n bitrate?: number;\n frameRate?: number;\n // Audio details\n audioCodec?: AudioCodecType;\n audioChannels?: AudioChannelsType;\n // Rating and reviews\n averageRating?: number;\n ratingsCount?: number;\n contentRating?: string; // e.g., \"G\", \"PG\", \"PG-13\", \"R\", \"NC-17\"\n tags?: ITag[];\n status?: IStatus;\n context?: string;\n contextId?: string;\n isYoutube: boolean;\n}\n\nexport interface IPlaylist extends IBase {\n name: string;\n description?: string;\n videos?: IVideo[];\n tags?: ITag[];\n status?: IStatus;\n}\n\nexport interface IVideoProgress extends IBase {\n video?: IVideo;\n userId: string;\n currentTime: number;\n duration?: number;\n completed?: boolean;\n lastWatched?: string;\n}\n\nexport interface IVideoShared extends IBase {\n video?: IVideo;\n videoId?: string;\n sharedWith?: string;\n sharedById?: string;\n permission?: string;\n expiresAt?: string;\n}\n\nexport interface IVideoLiked extends IBase {\n video?: IVideo;\n videoId?: string;\n likedBy?: string;\n likedById?: string;\n}\n\nexport interface IVideoComment extends IBase {\n video?: IVideo;\n videoId?: string;\n comment: string;\n commentedBy?: string;\n commentedById?: string;\n parentCommentId?: string;\n}\n\nexport interface IVideoDisliked extends IBase {\n video?: IVideo;\n videoId?: string;\n dislikedBy?: string;\n dislikedById?: string;\n}\n\nexport interface IVideoSaved extends IBase {\n video?: IVideo;\n videoId?: string;\n savedBy?: string;\n savedById?: string;\n}\n\nexport interface IVideoReport extends IBase {\n video?: IVideo;\n videoId?: string;\n reason: string;\n description?: string;\n reportedBy?: string;\n reportedById?: string;\n status?: IStatus;\n}\n\nexport interface IVideoDownloaded extends IBase {\n video?: IVideo;\n videoId?: string;\n downloadedBy?: string;\n downloadedById?: string;\n}\n\nexport interface IVideoViewed extends IBase {\n video?: IVideo;\n videoId?: string;\n viewedBy?: string;\n viewedById?: string;\n}\n\nexport interface IVideoStat extends IBase {\n video?: IVideo;\n videoId?: string;\n likesCount?: number;\n dislikesCount?: number;\n commentsCount?: number;\n sharesCount?: number;\n savesCount?: number;\n downloadsCount?: number;\n viewsCount?: number;\n reportsCount?: number;\n}\n"
6
6
  ],
7
7
  "mappings": "AAKO,IAAK,GAAL,CAAK,IAAL,CACL,WAAW,OACX,WAAW,OACX,WAAW,OACX,WAAW,OACX,YAAY,QACZ,YAAY,QACZ,YAAY,QACZ,SAAS,KACT,SAAS,KACT,KAAK,KACL,UAAU,UACV,WAAW,WACX,gBAAgB,YAChB,eAAe,WACf,cAAc,UACd,cAAc,UACd,cAAc,UACd,gBAAgB,YAChB,gBAAgB,YAChB,gBAAgB,cApBN,QAyBL,IAAK,GAAL,CAAK,IAAL,CACL,YAAY,OACZ,YAAY,OACZ,YAAY,OACZ,YAAY,OACZ,aAAa,QACb,aAAa,QACb,aAAa,QACb,UAAU,KACV,UAAU,KACV,KAAK,KACL,UAAU,UACV,WAAW,WACX,KAAK,KACL,MAAM,MACN,SAAS,SACT,OAAO,OACP,aAAa,eAjBH,QAsBL,IAAK,GAAL,CAAK,IAAL,CACL,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,MACN,OAAO,OACP,MAAM,MACN,WAAW,MACX,MAAM,MACN,KAAK,KACL,OAAO,OACP,MAAM,MACN,MAAM,MACN,MAAM,MACN,KAAK,KACL,OAAO,OACP,MAAM,MACN,MAAM,MACN,OAAO,OACP,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,QAxBI,QA6BL,IAAK,GAAL,CAAK,IAAL,CACL,OAAO,QACP,OAAO,QACP,OAAO,QACP,MAAM,MACN,MAAM,MACN,MAAM,MACN,OAAO,OACP,MAAM,MACN,QAAQ,SACR,QAAQ,SACR,QAAQ,SACR,OAAO,OACP,OAAO,OACP,MAAM,MACN,SAAS,SACT,SAAS,SACT,QAAQ,QACR,QAAQ,UAlBE,QAuBL,IAAK,GAAL,CAAK,IAAL,CACL,MAAM,MACN,MAAM,MACN,MAAM,MACN,SAAS,SACT,gBAAgB,gBAChB,qBAAqB,qBACrB,cAAc,cACd,OAAO,OACP,OAAO,OACP,MAAM,MACN,SAAS,SACT,OAAO,OACP,MAAM,MACN,MAAM,MACN,MAAM,OACN,OAAO,QACP,UAAU,SACV,MAAM,QAlBI,QAuBL,IAAK,GAAL,CAAK,IAAL,CACL,OAAO,OACP,SAAS,SACT,UAAU,MACV,WAAW,MACX,UAAU,MACV,YAAY,MACZ,iBAAiB,QACjB,WAAW,MACX,aAAa,OACb,iBAAiB,SAVP",
8
8
  "debugId": "34F41CFD31593DAD64756E2164756E21",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ooneex/video",
3
- "description": "",
4
- "version": "0.0.1",
3
+ "description": "Video entity types and interfaces for managing video content with categories, tags, and status tracking",
4
+ "version": "0.0.5",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -24,9 +24,7 @@
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
+ "npm:publish": "bun publish --tolerate-republish --access public"
30
28
  },
31
29
  "dependencies": {},
32
30
  "devDependencies": {
@@ -35,5 +33,13 @@
35
33
  "@ooneex/tag": "0.0.1",
36
34
  "@ooneex/types": "0.0.1"
37
35
  },
38
- "peerDependencies": {}
36
+ "keywords": [
37
+ "bun",
38
+ "media",
39
+ "ooneex",
40
+ "player",
41
+ "streaming",
42
+ "typescript",
43
+ "video"
44
+ ]
39
45
  }
Binary file