feat(ui): introduce QueryStatuses type

pull/5747/head
Pavel Zavora 2021-05-05 05:52:19 +02:00
parent 2e9451ccab
commit 5cf3ca7c05
3 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import {
TableOptions,
NoteVisibility,
} from 'src/types/dashboards'
import {QueryStatuses} from './queries'
// Write Data Modes
export enum WriteDataMode {
@ -20,7 +21,7 @@ export interface DEState {
queryID: string | null
status: Status
}
queryStatuses: Record<string, Status>
queryStatuses: QueryStatuses
}
export interface VisualizationOptions {

View File

@ -38,6 +38,7 @@ import {
FuncArg,
Namespace,
QueryStatus,
QueryStatuses,
Tag,
Tags,
TagValues,
@ -134,6 +135,7 @@ export {
TemplateBuilderProps,
WriteDataMode,
QueryStatus,
QueryStatuses,
Host,
Layout,
QueryType,

View File

@ -33,6 +33,7 @@ export interface QueryStatus {
queryID: string
status: Status
}
export type QueryStatuses = Record<string, Status>
export interface Field {
value: string