datasources.ts 613 B

123456789101112131415161718192021222324252627
  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: false;
  15. isDefault: false;
  16. jsonData: { authType: string; defaultRegion: string };
  17. readOnly: false;
  18. }
  19. export interface DataSourcesState {
  20. dataSources: DataSource[];
  21. searchQuery: string;
  22. layoutMode: LayoutMode;
  23. dataSourcesCount: number;
  24. dataSourceTypes: Plugin[];
  25. }