@shisho/plugin-types 0.0.9 → 0.0.10
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/manifest.d.ts +23 -0
- package/package.json +1 -1
package/manifest.d.ts
CHANGED
|
@@ -29,11 +29,34 @@ export interface OutputGeneratorCap {
|
|
|
29
29
|
sourceTypes: string[];
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
/** Valid metadata field names for enricher declarations. */
|
|
33
|
+
export type MetadataField =
|
|
34
|
+
| "title"
|
|
35
|
+
| "subtitle"
|
|
36
|
+
| "authors"
|
|
37
|
+
| "narrators"
|
|
38
|
+
| "series"
|
|
39
|
+
| "seriesNumber"
|
|
40
|
+
| "genres"
|
|
41
|
+
| "tags"
|
|
42
|
+
| "description"
|
|
43
|
+
| "publisher"
|
|
44
|
+
| "imprint"
|
|
45
|
+
| "url"
|
|
46
|
+
| "releaseDate"
|
|
47
|
+
| "cover"
|
|
48
|
+
| "identifiers";
|
|
49
|
+
|
|
32
50
|
/** Metadata enricher capability declaration. */
|
|
33
51
|
export interface MetadataEnricherCap {
|
|
34
52
|
description?: string;
|
|
35
53
|
/** File types this enricher applies to (e.g., ["epub", "cbz"]). */
|
|
36
54
|
fileTypes?: string[];
|
|
55
|
+
/**
|
|
56
|
+
* Metadata fields this enricher may set.
|
|
57
|
+
* Required for enrichers - if omitted, the enricher hook is disabled.
|
|
58
|
+
*/
|
|
59
|
+
fields: MetadataField[];
|
|
37
60
|
}
|
|
38
61
|
|
|
39
62
|
/** Custom identifier type declaration. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shisho/plugin-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
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",
|