chore: remove replicated types

This commit is contained in:
Joel 2024-10-22 17:29:58 +08:00
parent 5fddb23516
commit 583b0e9f97
1 changed files with 13 additions and 20 deletions

View File

@ -88,20 +88,20 @@ export type PluginDetail = {
}
export type Plugin = {
'type': PluginType
'org': string
'name': string
'version': string
'latest_version': string
'icon': string
'label': Record<Locale, string>
'brief': Record<Locale, string>
type: PluginType
org: string
name: string
version: string
latest_version: string
icon: string
label: Record<Locale, string>
brief: Record<Locale, string>
// Repo readme.md content
'introduction': string
'repository': string
'category': string
'install_count': number
'endpoint': {
introduction: string
repository: string
category: string
install_count: number
endpoint: {
settings: CredentialFormSchemaBase[]
}
}
@ -117,13 +117,6 @@ export type Permissions = {
canDebugger: PermissionType
}
export enum InstallStep {
url = 'url',
version = 'version',
package = 'package',
installed = 'installed'
}
// endpoint
export type CreateEndpointRequest = {
plugin_unique_identifier: string