Move type
This commit is contained in:
parent
a3d73ee6ce
commit
d55e29f9a6
|
@ -5,7 +5,9 @@
|
||||||
fetchData,
|
fetchData,
|
||||||
QueryUtils,
|
QueryUtils,
|
||||||
DataFetchOptions,
|
DataFetchOptions,
|
||||||
ProviderDatasource,
|
DataFetchDatasource,
|
||||||
|
UserDatasource,
|
||||||
|
GroupUserDatasource,
|
||||||
} from "@budibase/frontend-core"
|
} from "@budibase/frontend-core"
|
||||||
import {
|
import {
|
||||||
LogicalOperator,
|
LogicalOperator,
|
||||||
|
@ -16,6 +18,11 @@
|
||||||
} from "@budibase/types"
|
} from "@budibase/types"
|
||||||
import { SDK, Component } from "../../index"
|
import { SDK, Component } from "../../index"
|
||||||
|
|
||||||
|
type ProviderDatasource = Exclude<
|
||||||
|
DataFetchDatasource,
|
||||||
|
UserDatasource | GroupUserDatasource
|
||||||
|
>
|
||||||
|
|
||||||
export let dataSource: ProviderDatasource
|
export let dataSource: ProviderDatasource
|
||||||
export let filter
|
export let filter
|
||||||
export let sortColumn
|
export let sortColumn
|
||||||
|
|
|
@ -17,6 +17,8 @@ import { Table, ViewV2Enriched } from "@budibase/types"
|
||||||
|
|
||||||
export type DataFetchType = keyof typeof DataFetchMap
|
export type DataFetchType = keyof typeof DataFetchMap
|
||||||
export type { DataFetchOptions } from "./DataFetch"
|
export type { DataFetchOptions } from "./DataFetch"
|
||||||
|
export type { UserDatasource } from "./UserFetch"
|
||||||
|
export type { GroupUserDatasource } from "./GroupUserFetch"
|
||||||
|
|
||||||
export const DataFetchMap = {
|
export const DataFetchMap = {
|
||||||
table: TableFetch,
|
table: TableFetch,
|
||||||
|
@ -78,11 +80,6 @@ export type DataFetchDatasource =
|
||||||
| NestedProviderDatasource
|
| NestedProviderDatasource
|
||||||
| FieldDatasource<"field" | "queryarray" | "jsonarray">
|
| FieldDatasource<"field" | "queryarray" | "jsonarray">
|
||||||
|
|
||||||
export type ProviderDatasource = Exclude<
|
|
||||||
DataFetchDatasource,
|
|
||||||
UserDatasource | GroupUserDatasource
|
|
||||||
>
|
|
||||||
|
|
||||||
export type DataFetchDefinition =
|
export type DataFetchDefinition =
|
||||||
| Table
|
| Table
|
||||||
| ViewV2Enriched
|
| ViewV2Enriched
|
||||||
|
|
|
@ -4,7 +4,9 @@ export { fetchData, DataFetchMap } from "./fetch"
|
||||||
export type {
|
export type {
|
||||||
DataFetchType,
|
DataFetchType,
|
||||||
DataFetchOptions,
|
DataFetchOptions,
|
||||||
ProviderDatasource,
|
DataFetchDatasource,
|
||||||
|
UserDatasource,
|
||||||
|
GroupUserDatasource,
|
||||||
} from "./fetch"
|
} from "./fetch"
|
||||||
export * as Constants from "./constants"
|
export * as Constants from "./constants"
|
||||||
export * from "./stores"
|
export * from "./stores"
|
||||||
|
|
Loading…
Reference in New Issue