datasources.ts 813 B

12345678910111213141516171819202122232425262728293031323334
  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. basicAuthPassword: string;
  16. basicAuthUser: string;
  17. isDefault: boolean;
  18. jsonData: { authType: string; defaultRegion: string };
  19. readOnly: boolean;
  20. withCredentials: boolean;
  21. }
  22. export interface DataSourcesState {
  23. dataSources: DataSource[];
  24. searchQuery: string;
  25. dataSourceTypeSearchQuery: string;
  26. layoutMode: LayoutMode;
  27. dataSourcesCount: number;
  28. dataSourceTypes: Plugin[];
  29. dataSource: DataSource;
  30. dataSourceMeta: Plugin;
  31. hasFetched: boolean;
  32. }