| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- import { LayoutMode } from '../core/components/LayoutSelector/LayoutSelector';
- import { Plugin } from './plugins';
- export interface DataSourcePermission {
- id: number;
- datasourceId: number;
- permission: number;
- permissionName: string;
- created: string;
- updated: string;
- userId?: number;
- userLogin?: string;
- userEmail?: string;
- userAvatarUrl?: string;
- teamId?: number;
- teamAvatarUrl?: string;
- team?: string;
- }
- export interface DataSourcePermissionDTO {
- datasourceId: number;
- enabled: boolean;
- permissions: DataSourcePermission[];
- }
- 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;
- }
- export interface DataSourcesState {
- dataSources: DataSource[];
- searchQuery: string;
- dataSourceTypeSearchQuery: string;
- layoutMode: LayoutMode;
- dataSourcesCount: number;
- dataSourceTypes: Plugin[];
- dataSource: DataSource;
- dataSourceMeta: Plugin;
- dataSourcePermission: DataSourcePermissionDTO;
- hasFetched: boolean;
- }
|