diff --git a/plugins/cost-insights/dev/index.tsx b/plugins/cost-insights/dev/index.tsx index 836aea0edb..fe208d5bb8 100644 --- a/plugins/cost-insights/dev/index.tsx +++ b/plugins/cost-insights/dev/index.tsx @@ -15,8 +15,8 @@ */ import { createDevApp } from '@backstage/dev-utils'; import { createPlugin, createApiFactory } from '@backstage/core'; -import { ExampleCostInsightsClient } from '../src/api'; -import { costInsightsApiRef } from '../src'; +import { costInsightsApiRef } from '../src/api'; +import { ExampleCostInsightsClient } from '../src/client'; import { pluginConfig } from '../src/plugin'; const devPlugin = createPlugin({ diff --git a/plugins/cost-insights/src/api/index.ts b/plugins/cost-insights/src/api/index.ts index a367df9487..d231570e9b 100644 --- a/plugins/cost-insights/src/api/index.ts +++ b/plugins/cost-insights/src/api/index.ts @@ -15,4 +15,3 @@ */ export * from './CostInsightsApi'; -export * from './ExampleCostInsightsClient'; diff --git a/plugins/cost-insights/src/api/ExampleCostInsightsClient.ts b/plugins/cost-insights/src/client.ts similarity index 97% rename from plugins/cost-insights/src/api/ExampleCostInsightsClient.ts rename to plugins/cost-insights/src/client.ts index 8cc66e626f..b73e824031 100644 --- a/plugins/cost-insights/src/api/ExampleCostInsightsClient.ts +++ b/plugins/cost-insights/src/client.ts @@ -17,7 +17,7 @@ import dayjs from 'dayjs'; import regression, { DataPoint } from 'regression'; -import { CostInsightsApi } from './CostInsightsApi'; +import { CostInsightsApi } from './api'; import { Alert, ChangeStatistic, @@ -32,13 +32,13 @@ import { ProjectGrowthData, Trendline, UnlabeledDataflowData, -} from '../types'; -import { ProjectGrowthAlert, UnlabeledDataflowAlert } from '../utils/alerts'; +} from './types'; +import { ProjectGrowthAlert, UnlabeledDataflowAlert } from './utils/alerts'; import { DEFAULT_DATE_FORMAT, exclusiveEndDateOf, inclusiveStartDateOf, -} from '../utils/duration'; +} from './utils/duration'; type IntervalFields = { duration: Duration; diff --git a/plugins/cost-insights/src/index.ts b/plugins/cost-insights/src/index.ts index 48b2425946..795d4e14a6 100644 --- a/plugins/cost-insights/src/index.ts +++ b/plugins/cost-insights/src/index.ts @@ -15,6 +15,7 @@ */ export { plugin } from './plugin'; +export * from './ExampleCostInsightsClient'; export * from './api'; export * from './components'; export { useCurrency } from './hooks';