| 1234567891011121314151617181920212223242526272829303132333435 |
- import { LayoutMode } from '../core/components/LayoutSelector/LayoutSelector';
- import { Plugin, PluginExports, PluginMeta } from './plugins';
- export interface DataSource {
- id: number;
- orgId: number;
- name: string;
- typeLogoUrl: string;
- type: string;
- access: string;
- url: string;
- password: string;
- user: string;
- database: string;
- basicAuth: boolean;
- isDefault: boolean;
- jsonData: { authType: string; defaultRegion: string };
- readOnly: boolean;
- meta?: PluginMeta;
- pluginExports?: PluginExports;
- init?: () => void;
- testDatasource?: () => Promise<any>;
- }
- export interface DataSourcesState {
- dataSources: DataSource[];
- searchQuery: string;
- dataSourceTypeSearchQuery: string;
- layoutMode: LayoutMode;
- dataSourcesCount: number;
- dataSourceTypes: Plugin[];
- dataSource: DataSource;
- dataSourceMeta: Plugin;
- hasFetched: boolean;
- }
|