/** * Copyright Linkurious SAS 2012 - 2019 * * - Created on 2019-10-24. */ import { Request } from '../../http/request'; import { SelectedDataSourceConfig } from '../config'; import { DataSourceAdminInfo, DataSourceUserInfo, DeleteSourceDataResponse, IConnectDataSourceParams, IDeleteSourceConfigParams, IDeleteSourceDataParams, IGetDataSourcesStatusParams, IResetSourceStylesParams, ISetDefaultSourceStylesParams } from './types'; export * from './types'; export declare class DataSourceAPI extends Request { /** * Get the status of all the data-sources. * Users can only see data-sources with at least one group belonging to that data-source. * If a user has the "admin.connect" access right, it can also see all the disconnected * data-sources. */ getDataSources(this: Request, params?: IGetDataSourcesStatusParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Set default design styles and/or captions for the given data-source. */ setDefaultSourceStyles(params: ISetDefaultSourceStylesParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Reset design and/or captions of all sandboxes of the given data-source to default values. * If `design` is true, set `design.palette` and `design.styles` to default `palette` and `defaultStyles` of the data-source. * If `captions` is true, set `nodeFields.captions` and `edgeFields.captions` to current `defaultCaptions.nodes` and `defaultCaptions.edges` of the data-source. */ resetSourceStyles(params: IResetSourceStylesParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Connect a disconnected data-source. */ connectDataSource(params: IConnectDataSourceParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Delete all data of data-source (visualizations, access rights, widgets, full-text indexes). * Optionally merge visualizations and widgets into another data-source instead of deleting them. * Warning: when merging into another data-source, visualizations may break if node and edge IDs are not the same in the target data-source. */ deleteSourceData(this: Request, params: IDeleteSourceDataParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Delete a data-source configuration that has currently no connected data-source. */ deleteSourceConfig(params: IDeleteSourceConfigParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get the admin info of all the data-sources, including: * - a disconnected data-source configuration * - a disconnected data-source state not configured anymore * - a connected data-source (data-source configuration + state) */ getDataSourcesAdminInfo(this: Request): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Create a new data-source configuration made of a graph database configuration * and an index configuration. Return the configuration index of the new data-source. */ createSourceConfig(this: Request, params: SelectedDataSourceConfig): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; }