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