Provide fetchDatasourceDefinition via SDK
This commit is contained in:
parent
32ad21de4f
commit
7cce68f126
|
@ -3,7 +3,6 @@
|
|||
import InnerForm from "./InnerForm.svelte"
|
||||
import { Helpers } from "@budibase/bbui"
|
||||
import { writable } from "svelte/store"
|
||||
import { fetchDatasourceDefinition } from "utils/schema"
|
||||
|
||||
export let dataSource
|
||||
export let theme
|
||||
|
@ -23,7 +22,8 @@
|
|||
|
||||
const context = getContext("context")
|
||||
const component = getContext("component")
|
||||
const { API, fetchDatasourceSchema } = getContext("sdk")
|
||||
const { API, fetchDatasourceSchema, detchDatasourceDefinition } =
|
||||
getContext("sdk")
|
||||
|
||||
const getInitialFormStep = () => {
|
||||
const parsedFormStep = parseInt(initialFormStep)
|
||||
|
|
|
@ -26,7 +26,10 @@ import Provider from "components/context/Provider.svelte"
|
|||
import Block from "components/Block.svelte"
|
||||
import BlockComponent from "components/BlockComponent.svelte"
|
||||
import { ActionTypes } from "./constants"
|
||||
import { fetchDatasourceSchema } from "./utils/schema.js"
|
||||
import {
|
||||
fetchDatasourceSchema,
|
||||
fetchDatasourceDefinition,
|
||||
} from "./utils/schema.js"
|
||||
import { getAPIKey } from "./utils/api.js"
|
||||
import { enrichButtonActions } from "./utils/buttonActions.js"
|
||||
import { processStringSync, makePropSafe } from "@budibase/string-templates"
|
||||
|
@ -66,6 +69,7 @@ export default {
|
|||
linkable,
|
||||
getAction,
|
||||
fetchDatasourceSchema,
|
||||
fetchDatasourceDefinition,
|
||||
fetchData,
|
||||
QueryUtils,
|
||||
ContextScopes: Constants.ContextScopes,
|
||||
|
|
Loading…
Reference in New Issue