Add uiMetadata to viewV2
This commit is contained in:
parent
6170b46513
commit
215e359615
|
@ -107,6 +107,7 @@ export async function create(ctx: Ctx<CreateViewRequest, ViewResponse>) {
|
||||||
sort: view.sort,
|
sort: view.sort,
|
||||||
schema,
|
schema,
|
||||||
primaryDisplay: view.primaryDisplay,
|
primaryDisplay: view.primaryDisplay,
|
||||||
|
uiMetadata: view.uiMetadata,
|
||||||
}
|
}
|
||||||
const result = await sdk.views.create(tableId, parsedView)
|
const result = await sdk.views.create(tableId, parsedView)
|
||||||
ctx.status = 201
|
ctx.status = 201
|
||||||
|
@ -143,6 +144,7 @@ export async function update(ctx: Ctx<UpdateViewRequest, ViewResponse>) {
|
||||||
sort: view.sort,
|
sort: view.sort,
|
||||||
schema,
|
schema,
|
||||||
primaryDisplay: view.primaryDisplay,
|
primaryDisplay: view.primaryDisplay,
|
||||||
|
uiMetadata: view.uiMetadata,
|
||||||
}
|
}
|
||||||
|
|
||||||
const result = await sdk.views.update(tableId, parsedView)
|
const result = await sdk.views.update(tableId, parsedView)
|
||||||
|
|
|
@ -74,6 +74,7 @@ export interface ViewV2 {
|
||||||
type?: SortType
|
type?: SortType
|
||||||
}
|
}
|
||||||
schema?: ViewV2Schema
|
schema?: ViewV2Schema
|
||||||
|
uiMetadata?: Record<string, any>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ViewV2Schema = Record<string, ViewFieldMetadata>
|
export type ViewV2Schema = Record<string, ViewFieldMetadata>
|
||||||
|
|
Loading…
Reference in New Issue