Schemas: minor updates from the k8s branch (#71688)

Co-authored-by: sam boyer <sdboyer@grafana.com>
This commit is contained in:
Ryan McKinley
2023-07-21 19:17:11 +03:00
committed by GitHub
co-authored by sam boyer
parent 6c1346cbc1
commit 10ea92fa09
24 changed files with 81 additions and 28 deletions
+2 -1
View File
@@ -137,7 +137,8 @@ export { defaultPlaylist } from './raw/playlist/x/playlist_types.gen';
// Raw generated types from Preferences kind.
export type {
Preferences,
QueryHistoryPreference
QueryHistoryPreference,
CookiePreferences
} from './raw/preferences/x/preferences_types.gen';
// Raw generated types from PublicDashboard kind.
@@ -1021,7 +1021,7 @@ export interface Dashboard {
* Unique numeric identifier for the dashboard.
* `id` is internal to a specific Grafana instance. `uid` should be used to identify a dashboard across Grafana instances.
*/
id?: number;
id?: (number | null); // TODO eliminate this null option
/**
* Links with references to other dashboards or external websites.
*/
@@ -15,7 +15,17 @@ export interface QueryHistoryPreference {
homeTab?: string;
}
export interface CookiePreferences {
analytics?: Record<string, unknown>;
functional?: Record<string, unknown>;
performance?: Record<string, unknown>;
}
export interface Preferences {
/**
* Cookie preferences
*/
cookiePreferences?: CookiePreferences;
/**
* UID for the home dashboard
*/