Move ViewV2Enriched out of document types
This commit is contained in:
parent
6dfdf09cb9
commit
cef0fdd3ea
|
@ -1,4 +1,5 @@
|
||||||
import { ViewV2, ViewV2Enriched } from "../../../documents"
|
import { ViewV2 } from "../../../documents"
|
||||||
|
import { ViewV2Enriched } from "../../../sdk/view"
|
||||||
|
|
||||||
export interface ViewResponse {
|
export interface ViewResponse {
|
||||||
data: ViewV2
|
data: ViewV2
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { SearchFilter, SortOrder, SortType } from "../../api"
|
import { SearchFilter, SortOrder, SortType } from "../../api"
|
||||||
import { TableSchema, UIFieldMetadata } from "./table"
|
import { UIFieldMetadata } from "./table"
|
||||||
import { Document } from "../document"
|
import { Document } from "../document"
|
||||||
import { DBView } from "../../sdk"
|
import { DBView } from "../../sdk"
|
||||||
|
|
||||||
|
@ -48,10 +48,6 @@ export interface ViewV2 {
|
||||||
schema?: Record<string, UIFieldMetadata>
|
schema?: Record<string, UIFieldMetadata>
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ViewV2Enriched extends ViewV2 {
|
|
||||||
schema?: TableSchema
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ViewSchema = ViewCountOrSumSchema | ViewStatisticsSchema
|
export type ViewSchema = ViewCountOrSumSchema | ViewStatisticsSchema
|
||||||
|
|
||||||
export interface ViewCountOrSumSchema {
|
export interface ViewCountOrSumSchema {
|
||||||
|
|
|
@ -21,3 +21,4 @@ export * from "./websocket"
|
||||||
export * from "./permissions"
|
export * from "./permissions"
|
||||||
export * from "./row"
|
export * from "./row"
|
||||||
export * from "./vm"
|
export * from "./vm"
|
||||||
|
export * from "./view"
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
import { TableSchema, ViewV2 } from "../documents"
|
||||||
|
|
||||||
|
export interface ViewV2Enriched extends ViewV2 {
|
||||||
|
schema?: TableSchema
|
||||||
|
}
|
Loading…
Reference in New Issue