18 lines
1.1 KiB
TypeScript
Executable file
18 lines
1.1 KiB
TypeScript
Executable file
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
|
import * as T from '../types';
|
|
import * as TB from '../typesWithBodyKey';
|
|
interface That {
|
|
transport: Transport;
|
|
}
|
|
export default class Graph {
|
|
transport: Transport;
|
|
constructor(transport: Transport);
|
|
/**
|
|
* Explore extracted and summarized information about the documents and terms in an index.
|
|
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.9/graph-explore-api.html | Elasticsearch API documentation}
|
|
*/
|
|
explore(this: That, params: T.GraphExploreRequest | TB.GraphExploreRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.GraphExploreResponse>;
|
|
explore(this: That, params: T.GraphExploreRequest | TB.GraphExploreRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.GraphExploreResponse, unknown>>;
|
|
explore(this: That, params: T.GraphExploreRequest | TB.GraphExploreRequest, options?: TransportRequestOptions): Promise<T.GraphExploreResponse>;
|
|
}
|
|
export {};
|