diff --git a/packages/frontend-core/src/api/plugins.ts b/packages/frontend-core/src/api/plugins.ts index 3e05046e4f..5a3a3a3e6a 100644 --- a/packages/frontend-core/src/api/plugins.ts +++ b/packages/frontend-core/src/api/plugins.ts @@ -1,15 +1,18 @@ import { CreatePluginRequest, CreatePluginResponse, - Plugin, + DeletePluginResponse, + FetchPluginResponse, + UploadPluginRequest, + UploadPluginResponse, } from "@budibase/types" import { BaseAPIClient } from "./types" export interface PluginEndpoins { - uploadPlugin: (data: any) => Promise<{ message: string; plugins: any[] }> + uploadPlugin: (data: UploadPluginRequest) => Promise createPlugin: (data: CreatePluginRequest) => Promise - getPlugins: () => Promise - deletePlugin: (pluginId: string) => Promise<{ message: string }> + getPlugins: () => Promise + deletePlugin: (pluginId: string) => Promise } export const buildPluginEndpoints = (API: BaseAPIClient): PluginEndpoins => ({