plugins.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import { PluginExports, PluginMetaInfo } from '@grafana/ui/src/types';
  2. export interface PanelPlugin {
  3. id: string;
  4. name: string;
  5. hideFromList?: boolean;
  6. module: string;
  7. baseUrl: string;
  8. info: any;
  9. sort: number;
  10. exports?: PluginExports;
  11. noQueries?: boolean;
  12. }
  13. export interface Plugin {
  14. defaultNavUrl: string;
  15. enabled: boolean;
  16. hasUpdate: boolean;
  17. id: string;
  18. info: PluginMetaInfo;
  19. latestVersion: string;
  20. name: string;
  21. pinned: boolean;
  22. state: string;
  23. type: string;
  24. module: any;
  25. }
  26. export interface PluginDashboard {
  27. dashboardId: number;
  28. description: string;
  29. folderId: number;
  30. imported: boolean;
  31. importedRevision: number;
  32. importedUri: string;
  33. importedUrl: string;
  34. path: string;
  35. pluginId: string;
  36. removed: boolean;
  37. revision: number;
  38. slug: string;
  39. title: string;
  40. }
  41. export interface PluginsState {
  42. plugins: Plugin[];
  43. searchQuery: string;
  44. layoutMode: string;
  45. hasFetched: boolean;
  46. dashboards: PluginDashboard[];
  47. isLoadingPluginDashboards: boolean;
  48. }
  49. export interface VariableQueryProps {
  50. query: any;
  51. onChange: (query: any, definition: string) => void;
  52. datasource: any;
  53. templateSrv: any;
  54. }