added changeset and api report

Signed-off-by: Simon <simme.jakobsson@gmail.com>
This commit is contained in:
Simon
2022-11-22 10:54:25 +01:00
parent f68a7059b5
commit d379b6f070
2 changed files with 22 additions and 12 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-cost-insights': patch
---
Internal refactor to avoid usage of deprecated symbols
+17 -12
View File
@@ -11,10 +11,15 @@ import { BackstagePlugin } from '@backstage/core-plugin-api';
import { BackstageTheme } from '@backstage/theme';
import { ChangeStatistic as ChangeStatistic_2 } from '@backstage/plugin-cost-insights-common';
import * as common from '@backstage/plugin-cost-insights-common';
import { Cost as Cost_2 } from '@backstage/plugin-cost-insights-common';
import { Dispatch } from 'react';
import { Entity as Entity_2 } from '@backstage/plugin-cost-insights-common';
import { ForwardRefExoticComponent } from 'react';
import { Group as Group_2 } from '@backstage/plugin-cost-insights-common';
import { Maybe as Maybe_2 } from '@backstage/plugin-cost-insights-common';
import { MetricData as MetricData_2 } from '@backstage/plugin-cost-insights-common';
import { PaletteOptions } from '@material-ui/core/styles/createPalette';
import { Project as Project_2 } from '@backstage/plugin-cost-insights-common';
import { PropsWithChildren } from 'react';
import { ReactNode } from 'react';
import { RefAttributes } from 'react';
@@ -247,34 +252,34 @@ export const CostGrowthIndicator: (
// @public (undocumented)
export type CostGrowthIndicatorProps = TypographyProps & {
change: ChangeStatistic;
change: ChangeStatistic_2;
formatter?: (
change: ChangeStatistic,
change: ChangeStatistic_2,
options?: {
absolute: boolean;
},
) => Maybe<string>;
) => Maybe_2<string>;
};
// @public (undocumented)
export type CostGrowthProps = {
change: ChangeStatistic;
change: ChangeStatistic_2;
duration: Duration;
};
// @public (undocumented)
export type CostInsightsApi = {
getLastCompleteBillingDate(): Promise<string>;
getUserGroups(userId: string): Promise<Group[]>;
getGroupProjects(group: string): Promise<Project[]>;
getUserGroups(userId: string): Promise<Group_2[]>;
getGroupProjects(group: string): Promise<Project_2[]>;
getCatalogEntityDailyCost?(
catalogEntityRef: string,
intervals: string,
): Promise<Cost>;
getGroupDailyCost(group: string, intervals: string): Promise<Cost>;
getProjectDailyCost(project: string, intervals: string): Promise<Cost>;
getDailyMetricData(metric: string, intervals: string): Promise<MetricData>;
getProductInsights(options: ProductInsightsOptions): Promise<Entity>;
): Promise<Cost_2>;
getGroupDailyCost(group: string, intervals: string): Promise<Cost_2>;
getProjectDailyCost(project: string, intervals: string): Promise<Cost_2>;
getDailyMetricData(metric: string, intervals: string): Promise<MetricData_2>;
getProductInsights(options: ProductInsightsOptions): Promise<Entity_2>;
getAlerts(group: string): Promise<Alert[]>;
};
@@ -538,7 +543,7 @@ export type ProductInsightsOptions = {
product: string;
group: string;
intervals: string;
project: Maybe<string>;
project: Maybe_2<string>;
};
// @public (undocumented)