Schema: Move known shared types into the common (#61875)

* Setup shared types

* Expand field types

* Fix array type

* Add QueryResultMeta

* Add QueryResultBase

* Add DataFrameJSON

* Add DataSourcePluginMeta

* Update QueryResultMetaStat

* Add plugin cue and veneers

* Rexport dupliate types to fix errors

* Fix export

* Update types

* Remove data frame/plugin types

* Cleanup types

* Remove redundant type

* Remove data frame related types
This commit is contained in:
Alex Khomenko
2023-01-24 16:45:28 +00:00
committed by GitHub
parent f85d072c17
commit 8e94eab9ff
5 changed files with 40 additions and 13 deletions
@@ -8,6 +8,17 @@
// Run 'make gen-cue' from repository root to regenerate.
/**
* TODO docs
*/
export interface DataSourceJsonData {
alertmanagerUid?: string;
authType?: string;
defaultRegion?: string;
manageAlerts?: boolean;
profile?: string;
}
/**
* These are the common properties available to all queries in all datasources.
* Specific implementations will *extend* this interface, adding the required
@@ -524,6 +535,14 @@ export enum BarGaugeDisplayMode {
Lcd = 'lcd',
}
/**
* TODO docs
*/
export interface VizTooltipOptions {
mode: TooltipDisplayMode;
sort: SortOrder;
}
/**
* Internally, this is the "type" of cell that's being displayed
* in the table such as colored text, JSON, gauge, etc.
@@ -648,13 +667,7 @@ export interface FrameGeometrySource {
wkt?: string;
}
/**
* TODO docs
*/
export interface VizTooltipOptions {
mode: TooltipDisplayMode;
sort: SortOrder;
}
export interface Labels {}
/**
* Field options for each field within a table (e.g 10, "The String", 64.20, etc.)
@@ -0,0 +1,10 @@
package common
// TODO docs
DataSourceJsonData: {
authType?: string
defaultRegion?: string
profile?: string
manageAlerts?: bool
alertmanagerUid?: string
} @cuetsy(kind="interface")
@@ -245,4 +245,6 @@ VizTooltipOptions: {
sort: SortOrder
} @cuetsy(kind="interface")
Labels: {
[string]: string
} @cuetsy(kind="interface")