datasources.ts 731 B

12345678910111213141516171819202122232425262728293031
  1. import { LayoutMode } from '../core/components/LayoutSelector/LayoutSelector';
  2. import { Plugin } from './plugins';
  3. export interface DataSource {
  4. id: number;
  5. orgId: number;
  6. name: string;
  7. typeLogoUrl: string;
  8. type: string;
  9. access: string;
  10. url: string;
  11. password: string;
  12. user: string;
  13. database: string;
  14. basicAuth: boolean;
  15. isDefault: boolean;
  16. jsonData: { authType: string; defaultRegion: string };
  17. readOnly: boolean;
  18. }
  19. export interface DataSourcesState {
  20. dataSources: DataSource[];
  21. searchQuery: string;
  22. dataSourceTypeSearchQuery: string;
  23. layoutMode: LayoutMode;
  24. dataSourcesCount: number;
  25. dataSourceTypes: Plugin[];
  26. dataSource: DataSource;
  27. dataSourceMeta: Plugin;
  28. hasFetched: boolean;
  29. }