Skip to content

Commit f39a4e7

Browse files
chore: add metadata types
1 parent 6ed7de0 commit f39a4e7

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export {usePluginElementCounts} from "./composables/usePluginElementCounts";
1111
export {default as RotatingDotsIcon} from "./assets/icons/RotatingDots.vue";
1212

1313
export type {YamlElement} from "./utils/YamlUtilsLegacy";
14-
export type {Plugin} from "./utils/plugins";
14+
export type {Plugin, PluginMetadata, PluginElement} from "./utils/plugins";
1515
export type {JSONSchema, JSONProperty} from "./utils/schemaUtils";
1616

1717
import "./scss/ks-theme-light.scss";

src/utils/plugins.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ export type PluginElement = {
66
// description?: string; - Upcoming
77
}
88

9+
export type PluginMetadata = {
10+
group: string;
11+
artifactGroupId: string;
12+
artifactId: string;
13+
name: string;
14+
title: string;
15+
description?: string;
16+
videos?: string[];
17+
createdBy?: string;
18+
managedBy?: string;
19+
version?: string;
20+
icon?: string;
21+
}
22+
923
export type Plugin = {
1024
name: string;
1125
title: string;
@@ -19,6 +33,7 @@ export type Plugin = {
1933
storages?: string[];
2034
aliases?: string[];
2135
guides?: string[];
36+
manifest?: Record<string, any>;
2237

2338
} & {
2439
[pluginElement: string]: PluginElement[];

0 commit comments

Comments
 (0)