Update view endpoints

This commit is contained in:
Andrew Kingston 2024-12-05 16:25:48 +00:00
parent 557406a416
commit 5c08b6d962
No known key found for this signature in database
1 changed files with 4 additions and 3 deletions

View File

@ -1,17 +1,18 @@
import {
CreateViewRequest,
CreateViewResponse,
SearchRowResponse,
SearchViewRowRequest,
UpdateViewRequest,
ViewResponse,
UpdateViewResponse,
ViewResponseEnriched,
} from "@budibase/types"
import { BaseAPIClient } from "./types"
export interface ViewV2Endpoints {
fetchDefinition: (viewId: string) => Promise<ViewResponseEnriched>
create: (view: CreateViewRequest) => Promise<ViewResponse>
update: (view: UpdateViewRequest) => Promise<ViewResponse>
create: (view: CreateViewRequest) => Promise<CreateViewResponse>
update: (view: UpdateViewRequest) => Promise<UpdateViewResponse>
fetch: (
viewId: string,
opts: SearchViewRowRequest