Provide fetchDatasourceDefinition via SDK

This commit is contained in:
Andrew Kingston 2024-10-29 11:44:03 +00:00
parent 32ad21de4f
commit 7cce68f126
No known key found for this signature in database
2 changed files with 7 additions and 3 deletions

View File

@ -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)

View File

@ -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,