Files
nocodb/packages/nc-gui/composables/usePlugin/interface.ts
2025-06-03 08:41:28 +00:00

64 lines
1.0 KiB
TypeScript

export interface ExtensionManifest {
id: string
title: string
subTitle: string
description: string
entry: string
version: string
iconUrl: string
publisher: {
name: string
email: string
url: string
icon?: {
src: string
width?: number
height?: number
}
}
links: {
title: string
href: string
}[]
config: {
modalSize?: 'xs' | 'sm' | 'md' | 'lg'
contentMinHeight?: string
}
order: number
disabled?: boolean
type: 'extension'
beta?: boolean
onPrem?: boolean
}
export interface ScriptManifest {
id: string
title: string
subTitle: string
description: string
entry: string
version: string
iconUrl: string
publisher: {
name: string
email: string
url: string
icon?: {
src: string
width?: number
height?: number
}
}
links: {
title: string
href: string
}[]
order: number
disabled?: boolean
type: 'script'
beta?: boolean
onPrem?: boolean
}
export type PluginManifest = ExtensionManifest | ScriptManifest