Update view endpoints
This commit is contained in:
parent
557406a416
commit
5c08b6d962
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue