From a42fd87c0879223b4cd976fd7147a7a26676bc54 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 5 Dec 2024 16:02:10 +0000 Subject: [PATCH] Upate screen endpoints --- packages/frontend-core/src/api/screens.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/frontend-core/src/api/screens.ts b/packages/frontend-core/src/api/screens.ts index 27b4dc482d..bdb01e1427 100644 --- a/packages/frontend-core/src/api/screens.ts +++ b/packages/frontend-core/src/api/screens.ts @@ -1,9 +1,13 @@ -import { Screen } from "@budibase/types" +import { + DeleteScreenResponse, + SaveScreenRequest, + SaveScreenResponse, +} from "@budibase/types" import { BaseAPIClient } from "./types" export interface ScreenEndpoints { - saveScreen: (screen: Screen) => Promise - deleteScreen: (id: string, rev: string) => Promise<{ message: string }> + saveScreen: (screen: SaveScreenRequest) => Promise + deleteScreen: (id: string, rev: string) => Promise } export const buildScreenEndpoints = (API: BaseAPIClient): ScreenEndpoints => ({