@shisho/plugin-types 0.0.18 → 0.0.20
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/hooks.d.ts +8 -0
- package/metadata.d.ts +2 -0
- package/package.json +1 -1
package/hooks.d.ts
CHANGED
|
@@ -56,9 +56,17 @@ export interface SearchResult {
|
|
|
56
56
|
imageUrl?: string;
|
|
57
57
|
releaseDate?: string;
|
|
58
58
|
publisher?: string;
|
|
59
|
+
subtitle?: string;
|
|
60
|
+
series?: string;
|
|
61
|
+
seriesNumber?: number;
|
|
62
|
+
genres?: string[];
|
|
63
|
+
tags?: string[];
|
|
64
|
+
narrators?: string[];
|
|
59
65
|
identifiers?: Array<{ type: string; value: string }>;
|
|
60
66
|
/** Opaque data passed back to enrich(). Use this to store internal IDs. */
|
|
61
67
|
providerData?: unknown;
|
|
68
|
+
/** Full metadata for passthrough pattern. If provided, enrich() can return it as-is. */
|
|
69
|
+
metadata?: ParsedMetadata;
|
|
62
70
|
}
|
|
63
71
|
|
|
64
72
|
/** Result returned from metadataEnricher.search(). */
|
package/metadata.d.ts
CHANGED
|
@@ -46,6 +46,8 @@ export interface ParsedMetadata {
|
|
|
46
46
|
releaseDate?: string;
|
|
47
47
|
/** MIME type of cover image (e.g., "image/jpeg"). */
|
|
48
48
|
coverMimeType?: string;
|
|
49
|
+
/** Public URL for cover image. Server downloads at apply time. Lower precedence than coverData. */
|
|
50
|
+
coverUrl?: string;
|
|
49
51
|
/** Cover image data as ArrayBuffer. */
|
|
50
52
|
coverData?: ArrayBuffer;
|
|
51
53
|
/** 0-indexed page number for CBZ cover. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shisho/plugin-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "TypeScript type definitions for Shisho plugin development",
|
|
5
5
|
"homepage": "https://github.com/shishobooks/shisho/blob/master/packages/plugin-types/README.md",
|
|
6
6
|
"types": "index.d.ts",
|