Chore: Remove unused+experimental /dashboards/calculate-diff API support (#114151)
This commit is contained in:
@@ -656,10 +656,6 @@ const injectedRtkApi = api
|
||||
}),
|
||||
providesTags: ['dashboards', 'snapshots'],
|
||||
}),
|
||||
calculateDashboardDiff: build.mutation<CalculateDashboardDiffApiResponse, CalculateDashboardDiffApiArg>({
|
||||
query: (queryArg) => ({ url: `/dashboards/calculate-diff`, method: 'POST', body: queryArg.body }),
|
||||
invalidatesTags: ['dashboards'],
|
||||
}),
|
||||
postDashboard: build.mutation<PostDashboardApiResponse, PostDashboardApiArg>({
|
||||
query: (queryArg) => ({ url: `/dashboards/db`, method: 'POST', body: queryArg.saveDashboardCommand }),
|
||||
invalidatesTags: ['dashboards'],
|
||||
@@ -2556,18 +2552,6 @@ export type SearchDashboardSnapshotsApiArg = {
|
||||
/** Limit the number of returned results */
|
||||
limit?: number;
|
||||
};
|
||||
export type CalculateDashboardDiffApiResponse = /** status 200 (empty) */ number[];
|
||||
export type CalculateDashboardDiffApiArg = {
|
||||
body: {
|
||||
base?: CalculateDiffTarget;
|
||||
/** The type of diff to return
|
||||
Description:
|
||||
`basic`
|
||||
`json` */
|
||||
diffType?: 'basic' | 'json';
|
||||
new?: CalculateDiffTarget;
|
||||
};
|
||||
};
|
||||
export type PostDashboardApiResponse = /** status 200 (empty) */ {
|
||||
/** FolderUID The unique identifier (uid) of the folder the dashboard belongs to. */
|
||||
folderUid?: string;
|
||||
@@ -4400,11 +4384,6 @@ export type DashboardSnapshotDto = {
|
||||
name?: string;
|
||||
updated?: string;
|
||||
};
|
||||
export type CalculateDiffTarget = {
|
||||
dashboardId?: number;
|
||||
unsavedDashboard?: Json;
|
||||
version?: number;
|
||||
};
|
||||
export type SaveDashboardCommand = {
|
||||
UpdatedAt?: string;
|
||||
dashboard?: Json;
|
||||
@@ -6636,7 +6615,6 @@ export const {
|
||||
useLazyRouteConvertPrometheusGetRuleGroupQuery,
|
||||
useSearchDashboardSnapshotsQuery,
|
||||
useLazySearchDashboardSnapshotsQuery,
|
||||
useCalculateDashboardDiffMutation,
|
||||
usePostDashboardMutation,
|
||||
useGetHomeDashboardQuery,
|
||||
useLazyGetHomeDashboardQuery,
|
||||
|
||||
Reference in New Issue
Block a user