@ooneex/image 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.
- package/dist/index.d.ts +68 -1
- package/dist/index.js.map +1 -1
- package/package.json +12 -6
- package/dist/ooneex-image-0.0.1.tgz +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -20,4 +20,71 @@ interface IImage extends IBase {
|
|
|
20
20
|
context?: string;
|
|
21
21
|
contextId?: string;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
interface IImageShared extends IBase {
|
|
24
|
+
image?: IImage;
|
|
25
|
+
imageId?: string;
|
|
26
|
+
sharedWith?: string;
|
|
27
|
+
sharedById?: string;
|
|
28
|
+
permission?: string;
|
|
29
|
+
expiresAt?: string;
|
|
30
|
+
}
|
|
31
|
+
interface IImageLiked extends IBase {
|
|
32
|
+
image?: IImage;
|
|
33
|
+
imageId?: string;
|
|
34
|
+
likedBy?: string;
|
|
35
|
+
likedById?: string;
|
|
36
|
+
}
|
|
37
|
+
interface IImageComment extends IBase {
|
|
38
|
+
image?: IImage;
|
|
39
|
+
imageId?: string;
|
|
40
|
+
comment: string;
|
|
41
|
+
commentedBy?: string;
|
|
42
|
+
commentedById?: string;
|
|
43
|
+
parentCommentId?: string;
|
|
44
|
+
}
|
|
45
|
+
interface IImageDisliked extends IBase {
|
|
46
|
+
image?: IImage;
|
|
47
|
+
imageId?: string;
|
|
48
|
+
dislikedBy?: string;
|
|
49
|
+
dislikedById?: string;
|
|
50
|
+
}
|
|
51
|
+
interface IImageSaved extends IBase {
|
|
52
|
+
image?: IImage;
|
|
53
|
+
imageId?: string;
|
|
54
|
+
savedBy?: string;
|
|
55
|
+
savedById?: string;
|
|
56
|
+
}
|
|
57
|
+
interface IImageReport extends IBase {
|
|
58
|
+
image?: IImage;
|
|
59
|
+
imageId?: string;
|
|
60
|
+
reason: string;
|
|
61
|
+
description?: string;
|
|
62
|
+
reportedBy?: string;
|
|
63
|
+
reportedById?: string;
|
|
64
|
+
status?: IStatus;
|
|
65
|
+
}
|
|
66
|
+
interface IImageDownloaded extends IBase {
|
|
67
|
+
image?: IImage;
|
|
68
|
+
imageId?: string;
|
|
69
|
+
downloadedBy?: string;
|
|
70
|
+
downloadedById?: string;
|
|
71
|
+
}
|
|
72
|
+
interface IImageViewed extends IBase {
|
|
73
|
+
image?: IImage;
|
|
74
|
+
imageId?: string;
|
|
75
|
+
viewedBy?: string;
|
|
76
|
+
viewedById?: string;
|
|
77
|
+
}
|
|
78
|
+
interface IImageStat extends IBase {
|
|
79
|
+
image?: IImage;
|
|
80
|
+
imageId?: string;
|
|
81
|
+
likesCount?: number;
|
|
82
|
+
dislikesCount?: number;
|
|
83
|
+
commentsCount?: number;
|
|
84
|
+
sharesCount?: number;
|
|
85
|
+
savesCount?: number;
|
|
86
|
+
downloadsCount?: number;
|
|
87
|
+
viewsCount?: number;
|
|
88
|
+
reportsCount?: number;
|
|
89
|
+
}
|
|
90
|
+
export { ImageMimeType, ImageFormatType, IMAGE_MIMES, IMAGE_FORMATS, IImageViewed, IImageStat, IImageShared, IImageSaved, IImageReport, IImageLiked, IImageDownloaded, IImageDisliked, IImageComment, IImage };
|
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 { IStatus } from \"@ooneex/status\";\nimport type { ITag } from \"@ooneex/tag\";\nimport type { IBase, ScalarType } from \"@ooneex/types\";\n\nexport const IMAGE_FORMATS = [\n \"jpeg\",\n \"jpg\",\n \"png\",\n \"webp\",\n \"gif\",\n \"svg\",\n \"avif\",\n \"bmp\",\n \"tiff\",\n \"ico\",\n \"heic\",\n \"heif\",\n] as const;\n\nexport type ImageFormatType = (typeof IMAGE_FORMATS)[number];\n\nexport const IMAGE_MIMES = [\n \"image/jpeg\",\n \"image/png\",\n \"image/webp\",\n \"image/gif\",\n \"image/svg+xml\",\n \"image/avif\",\n \"image/bmp\",\n \"image/x-ms-bmp\",\n \"image/tiff\",\n \"image/vnd.microsoft.icon\",\n \"image/x-icon\",\n \"image/heic\",\n \"image/heif\",\n] as const;\n\nexport type ImageMimeType = (typeof IMAGE_MIMES)[number];\n\nexport interface IImage extends IBase {\n url: string;\n width?: number;\n height?: number;\n alt?: string;\n title?: string;\n // File info\n format?: ImageFormatType;\n mimeType?: ImageMimeType;\n size?: number;\n metadata?: Record<string, ScalarType>;\n status?: IStatus;\n tags?: ITag[];\n context?: string;\n contextId?: string;\n}\n"
|
|
5
|
+
"import type { IStatus } from \"@ooneex/status\";\nimport type { ITag } from \"@ooneex/tag\";\nimport type { IBase, ScalarType } from \"@ooneex/types\";\n\nexport const IMAGE_FORMATS = [\n \"jpeg\",\n \"jpg\",\n \"png\",\n \"webp\",\n \"gif\",\n \"svg\",\n \"avif\",\n \"bmp\",\n \"tiff\",\n \"ico\",\n \"heic\",\n \"heif\",\n] as const;\n\nexport type ImageFormatType = (typeof IMAGE_FORMATS)[number];\n\nexport const IMAGE_MIMES = [\n \"image/jpeg\",\n \"image/png\",\n \"image/webp\",\n \"image/gif\",\n \"image/svg+xml\",\n \"image/avif\",\n \"image/bmp\",\n \"image/x-ms-bmp\",\n \"image/tiff\",\n \"image/vnd.microsoft.icon\",\n \"image/x-icon\",\n \"image/heic\",\n \"image/heif\",\n] as const;\n\nexport type ImageMimeType = (typeof IMAGE_MIMES)[number];\n\nexport interface IImage extends IBase {\n url: string;\n width?: number;\n height?: number;\n alt?: string;\n title?: string;\n // File info\n format?: ImageFormatType;\n mimeType?: ImageMimeType;\n size?: number;\n metadata?: Record<string, ScalarType>;\n status?: IStatus;\n tags?: ITag[];\n context?: string;\n contextId?: string;\n}\n\nexport interface IImageShared extends IBase {\n image?: IImage;\n imageId?: string;\n sharedWith?: string;\n sharedById?: string;\n permission?: string;\n expiresAt?: string;\n}\n\nexport interface IImageLiked extends IBase {\n image?: IImage;\n imageId?: string;\n likedBy?: string;\n likedById?: string;\n}\n\nexport interface IImageComment extends IBase {\n image?: IImage;\n imageId?: string;\n comment: string;\n commentedBy?: string;\n commentedById?: string;\n parentCommentId?: string;\n}\n\nexport interface IImageDisliked extends IBase {\n image?: IImage;\n imageId?: string;\n dislikedBy?: string;\n dislikedById?: string;\n}\n\nexport interface IImageSaved extends IBase {\n image?: IImage;\n imageId?: string;\n savedBy?: string;\n savedById?: string;\n}\n\nexport interface IImageReport extends IBase {\n image?: IImage;\n imageId?: string;\n reason: string;\n description?: string;\n reportedBy?: string;\n reportedById?: string;\n status?: IStatus;\n}\n\nexport interface IImageDownloaded extends IBase {\n image?: IImage;\n imageId?: string;\n downloadedBy?: string;\n downloadedById?: string;\n}\n\nexport interface IImageViewed extends IBase {\n image?: IImage;\n imageId?: string;\n viewedBy?: string;\n viewedById?: string;\n}\n\nexport interface IImageStat extends IBase {\n image?: IImage;\n imageId?: 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": "AAIO,IAAM,EAAgB,CAC3B,OACA,MACA,MACA,OACA,MACA,MACA,OACA,MACA,OACA,MACA,OACA,MACF,EAIa,EAAc,CACzB,aACA,YACA,aACA,YACA,gBACA,aACA,YACA,iBACA,aACA,2BACA,eACA,aACA,YACF",
|
|
8
8
|
"debugId": "BC64A9A7F1E4B77064756E2164756E21",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ooneex/image",
|
|
3
|
-
"description": "",
|
|
4
|
-
"version": "0.0.
|
|
3
|
+
"description": "Image entity types and interfaces for managing digital images with status tracking and tagging support",
|
|
4
|
+
"version": "0.0.4",
|
|
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
|
|
28
|
-
"publish:pack": "bun pm pack --destination ./dist",
|
|
29
|
-
"publish:dry": "bun publish --dry-run"
|
|
27
|
+
"publish": "bun publish --access public || true"
|
|
30
28
|
},
|
|
31
29
|
"dependencies": {},
|
|
32
30
|
"devDependencies": {
|
|
@@ -34,5 +32,13 @@
|
|
|
34
32
|
"@ooneex/tag": "0.0.1",
|
|
35
33
|
"@ooneex/types": "0.0.1"
|
|
36
34
|
},
|
|
37
|
-
"
|
|
35
|
+
"keywords": [
|
|
36
|
+
"bun",
|
|
37
|
+
"graphics",
|
|
38
|
+
"image",
|
|
39
|
+
"images",
|
|
40
|
+
"ooneex",
|
|
41
|
+
"picture",
|
|
42
|
+
"typescript"
|
|
43
|
+
]
|
|
38
44
|
}
|
|
Binary file
|