From 9c686cf7ca6a0c2936713b51f17d117b67fe57d7 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 30 Dec 2024 22:47:27 +0100 Subject: [PATCH] Fix types --- packages/types/src/ui/stores/grid/fetch.ts | 23 +++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/packages/types/src/ui/stores/grid/fetch.ts b/packages/types/src/ui/stores/grid/fetch.ts index 490c027a9d..8901acc08b 100644 --- a/packages/types/src/ui/stores/grid/fetch.ts +++ b/packages/types/src/ui/stores/grid/fetch.ts @@ -1,4 +1,10 @@ -import { Row, UIDatasource } from "@budibase/types" +import { + Row, + SortOrder, + UIDatasource, + UILegacyFilter, + UISearchFilter, +} from "@budibase/types" export interface UIFetchAPI { definition: UIDatasource @@ -14,4 +20,19 @@ export interface UIFetchAPI { nextPage: () => Promise rows: Row[] + + options?: { + datasource?: { + tableId: string + id: string + } + } + update: ({ + sortOrder, + sortColumn, + }: { + sortOrder?: SortOrder + sortColumn?: string + filter?: UILegacyFilter[] | UISearchFilter + }) => any }