/** * Copyright Linkurious SAS 2012 - 2019 * * - Created on 2019-10-29. */ import { Request } from '../../http/request'; import { CheckQueryResponse, ConvertQueryParams, ConvertQueryResponse, GetQueryStatsParams, GetQueryStatsResponse, GraphQuery, ICheckQueryParams, ICreateQueryParams, IDeleteQueryParams, IGetQueriesParams, IGetQueryParams, IRunQueryByContentParams, IRunQueryByIdParams, IUpdateQueryParams, RunQueryResponse } from './types'; export * from './types'; export declare class GraphQueryAPI extends Request { /** * Get a graph query owned by the current user or shared with it. */ getQuery(this: Request, params: IGetQueryParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get all the graph queries owned by the current user or shared with it. */ getQueries(this: Request, params: IGetQueriesParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Create a graph query for the current user. */ createQuery(this: Request, params: ICreateQueryParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Update a graph query owned by the current user. */ updateQuery(this: Request, params: IUpdateQueryParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Delete a graph query owned by the current user. */ deleteQuery(params: IDeleteQueryParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Check that the given graph query is syntactically correct. Parse the query if it's a template. */ checkQuery(this: Request, params: ICheckQueryParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get all the nodes and edges matching the given graph query. * A subgraph made of all the nodes and the edges from each subgraph matching the graph query is returned. */ runQuery(this: Request, params: IRunQueryByContentParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get all the nodes and edges matching the given saved graph query by id. * A subgraph made of all the nodes and the edges from each subgraph matching the graph query is returned. */ runQueryById(this: Request, params: IRunQueryByIdParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Convert a query from one language to another. * (For now we only convert from queryBuilder to cypher) */ convertQuery(this: Request, params: ConvertQueryParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get the stats of a query. */ getQueryStats(this: Request, params: GetQueryStatsParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; }