From 8992a1d902761d2872cb62a1083046b263c84052 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 5 Dec 2024 15:40:33 +0000 Subject: [PATCH] Update plugin endpoints --- packages/frontend-core/src/api/plugins.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 => ({