diff --git a/packages/builder/src/stores/builder/datasources.ts b/packages/builder/src/stores/builder/datasources.ts index 6fb7aac7f7..6b00911830 100644 --- a/packages/builder/src/stores/builder/datasources.ts +++ b/packages/builder/src/stores/builder/datasources.ts @@ -18,6 +18,11 @@ import { import { TableNames } from "@/constants" import { DerivedBudiStore } from "@/stores/BudiStore" +// when building the internal DS - seems to represent it slightly differently to the backend typing of a DS +interface InternalDatasource extends Omit { + entities: Table[] +} + class TableImportError extends Error { errors: Record diff --git a/packages/builder/src/stores/builder/hover.js b/packages/builder/src/stores/builder/hover.js index 46aa2ac795..e28c74eaf2 100644 --- a/packages/builder/src/stores/builder/hover.js +++ b/packages/builder/src/stores/builder/hover.js @@ -1,6 +1,6 @@ import { get } from "svelte/store" -import { previewStore } from "@/stores/builder" import { BudiStore } from "../BudiStore" +import { previewStore } from "@/stores/builder" export const INITIAL_HOVER_STATE = { componentId: null, diff --git a/packages/builder/src/stores/builder/layouts.js b/packages/builder/src/stores/builder/layouts.js index d8c5dc20b1..7617e203f0 100644 --- a/packages/builder/src/stores/builder/layouts.js +++ b/packages/builder/src/stores/builder/layouts.js @@ -1,7 +1,7 @@ import { derived, get } from "svelte/store" import { componentStore } from "@/stores/builder" -import { BudiStore } from "../BudiStore" import { API } from "@/api" +import { BudiStore } from "../BudiStore" export const INITIAL_LAYOUT_STATE = { layouts: [], diff --git a/packages/builder/src/stores/builder/tests/sortedIntegrations.test.ts b/packages/builder/src/stores/builder/tests/sortedIntegrations.test.ts index 958781993b..58f246cb2d 100644 --- a/packages/builder/src/stores/builder/tests/sortedIntegrations.test.ts +++ b/packages/builder/src/stores/builder/tests/sortedIntegrations.test.ts @@ -1,6 +1,12 @@ import { it, expect, describe, beforeEach, vi } from "vitest" +<<<<<<< HEAD import { SortedIntegrationStore } from "@/stores/builder/sortedIntegrations" import { DatasourceTypes } from "@/constants/backend" +======= +import { DatasourceTypes } from "@/constants/backend" +import { SortedIntegrationStore } from "@/stores/builder/sortedIntegrations" + +>>>>>>> 094e337f0288652e71c7bebd1ed32003f62af90a import { derived } from "svelte/store" import { integrations } from "@/stores/builder/integrations"