From 583b0e9f979b754e26d31e04f705260df1e042a6 Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 22 Oct 2024 17:29:58 +0800 Subject: [PATCH] chore: remove replicated types --- web/app/components/plugins/types.ts | 33 ++++++++++++----------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/web/app/components/plugins/types.ts b/web/app/components/plugins/types.ts index adf8c5a0f5..936b8d1860 100644 --- a/web/app/components/plugins/types.ts +++ b/web/app/components/plugins/types.ts @@ -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 - 'brief': Record + type: PluginType + org: string + name: string + version: string + latest_version: string + icon: string + label: Record + brief: Record // 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