datasources.ts 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { LayoutMode } from '../core/components/LayoutSelector/LayoutSelector';
  2. import { Plugin } from './plugins';
  3. export interface DataSourcePermission {
  4. id: number;
  5. datasourceId: number;
  6. userId: number;
  7. userLogin: string;
  8. userEmail: string;
  9. userAvatarUrl: string;
  10. permission: number;
  11. permissionName: string;
  12. created: string;
  13. updated: string;
  14. }
  15. export interface DataSource {
  16. id: number;
  17. orgId: number;
  18. name: string;
  19. typeLogoUrl: string;
  20. type: string;
  21. access: string;
  22. url: string;
  23. password: string;
  24. user: string;
  25. database: string;
  26. basicAuth: boolean;
  27. isDefault: boolean;
  28. jsonData: { authType: string; defaultRegion: string };
  29. readOnly: boolean;
  30. }
  31. export interface DataSourcesState {
  32. dataSources: DataSource[];
  33. searchQuery: string;
  34. dataSourceTypeSearchQuery: string;
  35. layoutMode: LayoutMode;
  36. dataSourcesCount: number;
  37. dataSourceTypes: Plugin[];
  38. dataSource: DataSource;
  39. dataSourceMeta: Plugin;
  40. dataSourcePermissions: DataSourcePermission[];
  41. }