Schemas: minor updates from the k8s branch (#71688)
Co-authored-by: sam boyer <sdboyer@grafana.com>
This commit is contained in:
co-authored by
sam boyer
parent
6c1346cbc1
commit
10ea92fa09
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user