diff --git a/index.d.ts b/index.d.ts
index 47c87f56c..8dfe876d6 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -27,12 +27,9 @@
* under the License.
*/
-///
-
import Transport, {
ApiError,
ApiResponse,
- RequestEvent,
} from './lib/Transport';
import Connection from './lib/Connection';
import {
@@ -67,7 +64,6 @@ export {
errors,
ApiError,
ApiResponse,
- RequestEvent,
ResurrectEvent,
ClientOptions,
NodeOptions,
diff --git a/lib/Transport.d.ts b/lib/Transport.d.ts
index 6f23d7414..79d1efc84 100644
--- a/lib/Transport.d.ts
+++ b/lib/Transport.d.ts
@@ -83,8 +83,8 @@ interface TransportOptions {
auth?: BasicAuth | AwsSigv4Auth;
}
-export interface RequestEvent> {
- body: TResponse;
+export interface ApiResponse {
+ body: any;
statusCode: number | null;
headers: Record | null;
warnings: string[] | null;
@@ -106,11 +106,6 @@ export interface RequestEvent> {
};
}
-// ApiResponse and RequestEvent are the same thing
-// we are doing this for have more clear names
-export interface ApiResponse>
- extends RequestEvent {}
-
export type RequestBody> = T | string | Buffer | ReadableStream;
export type RequestNDBody[]> =
| T
diff --git a/test/types/client.test-d.ts b/test/types/client.test-d.ts
index cf924aa5d..5da0a4672 100644
--- a/test/types/client.test-d.ts
+++ b/test/types/client.test-d.ts
@@ -28,7 +28,7 @@
*/
import { expectType } from 'tsd';
-import { Client, ApiError, ApiResponse, RequestEvent, ResurrectEvent } from '../../';
+import { Client, ApiError, ApiResponse, ResurrectEvent } from '../../';
import { TransportRequestCallback, TransportRequestPromise } from '../../lib/Transport';
const client = new Client({
@@ -37,17 +37,17 @@ const client = new Client({
client.on('request', (err, meta) => {
expectType(err);
- expectType(meta);
+ expectType(meta);
});
client.on('response', (err, meta) => {
expectType(err);
- expectType(meta);
+ expectType(meta);
});
client.on('sniff', (err, meta) => {
expectType(err);
- expectType(meta);
+ expectType(meta);
});
client.on('resurrect', (err, meta) => {
diff --git a/test/types/transport.test-d.ts b/test/types/transport.test-d.ts
index 3381f97cf..93ed24a7c 100644
--- a/test/types/transport.test-d.ts
+++ b/test/types/transport.test-d.ts
@@ -35,11 +35,10 @@ import {
TransportRequestOptions,
TransportRequestCallback,
TransportRequestPromise,
- RequestEvent,
+ ApiResponse,
ApiError,
RequestBody,
RequestNDBody,
- ApiResponse,
} from '../../lib/Transport';
const params = {
@@ -84,7 +83,7 @@ const response = {
expectAssignable(params);
expectAssignable({ method: 'GET', path: '/' });
expectAssignable(options);
-expectAssignable(response);
+expectAssignable(response);
expectAssignable(response);
// verify that RequestBody, RequestNDBody and ResponseBody works as expected
diff --git a/types/Client.d.ts b/types/Client.d.ts
index a02e32793..42a3615fd 100644
--- a/types/Client.d.ts
+++ b/types/Client.d.ts
@@ -304,7 +304,6 @@ import * as Tasks_Get from './functions/tasks.get';
import Transport, {
ApiError,
ApiResponse,
- RequestEvent,
TransportRequestOptions,
TransportRequestCallback,
TransportRequestPromise,
@@ -314,10 +313,9 @@ import Serializer from '../lib/Serializer';
import Helpers from '../lib/Helpers';
import { ClientOptions, ClientExtendsCallbackOptions } from './client_options';
-declare type callbackFn = (err: ApiError, result: ApiResponse) => void;
+declare type callbackFn = (err: ApiError, result: TResponse) => void;
declare type extendsCallback = (options: ClientExtendsCallbackOptions) => any;
-declare type HttpResponse = any
declare interface HttpRequest {
path: string;
querystring?: Global.Params;
@@ -337,133 +335,133 @@ declare class Client {
close(callback: Function): void;
close(): Promise;
emit(event: string | symbol, ...args: any[]): boolean;
- on(event: 'request', listener: (err: ApiError, meta: RequestEvent) => void): this;
- on(event: 'response', listener: (err: ApiError, meta: RequestEvent) => void): this;
- on(event: 'sniff', listener: (err: ApiError, meta: RequestEvent) => void): this;
+ on(event: 'request', listener: (err: ApiError, meta: ApiResponse) => void): this;
+ on(event: 'response', listener: (err: ApiError, meta: ApiResponse) => void): this;
+ on(event: 'sniff', listener: (err: ApiError, meta: ApiResponse) => void): this;
on(event: 'resurrect', listener: (err: null, meta: ResurrectEvent) => void): this;
- once(event: 'request', listener: (err: ApiError, meta: RequestEvent) => void): this;
- once(event: 'response', listener: (err: ApiError, meta: RequestEvent) => void): this;
- once(event: 'sniff', listener: (err: ApiError, meta: RequestEvent) => void): this;
+ once(event: 'request', listener: (err: ApiError, meta: ApiResponse) => void): this;
+ once(event: 'response', listener: (err: ApiError, meta: ApiResponse) => void): this;
+ once(event: 'sniff', listener: (err: ApiError, meta: ApiResponse) => void): this;
once(event: 'resurrect', listener: (err: null, meta: ResurrectEvent) => void): this;
off(event: string | symbol, listener: (...args: any[]) => void): this;
cat: {
- help (params?: Cat_Help.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ help (params?: Cat_Help.Request, options?: TransportRequestOptions): TransportRequestPromise;
help (callback: callbackFn): TransportRequestCallback;
help (params: Cat_Help.Request, callback: callbackFn): TransportRequestCallback;
help (params: Cat_Help.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- aliases (params?: Cat_Aliases.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ aliases (params?: Cat_Aliases.Request, options?: TransportRequestOptions): TransportRequestPromise;
aliases (callback: callbackFn): TransportRequestCallback;
aliases (params: Cat_Aliases.Request, callback: callbackFn): TransportRequestCallback;
aliases (params: Cat_Aliases.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- allocation (params?: Cat_Allocation.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ allocation (params?: Cat_Allocation.Request, options?: TransportRequestOptions): TransportRequestPromise;
allocation (callback: callbackFn): TransportRequestCallback;
allocation (params: Cat_Allocation.Request, callback: callbackFn): TransportRequestCallback;
allocation (params: Cat_Allocation.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- clusterManager (params?: Cat_ClusterManager.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ clusterManager (params?: Cat_ClusterManager.Request, options?: TransportRequestOptions): TransportRequestPromise;
clusterManager (callback: callbackFn): TransportRequestCallback;
clusterManager (params: Cat_ClusterManager.Request, callback: callbackFn): TransportRequestCallback;
clusterManager (params: Cat_ClusterManager.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- count (params?: Cat_Count.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ count (params?: Cat_Count.Request, options?: TransportRequestOptions): TransportRequestPromise;
count (callback: callbackFn): TransportRequestCallback;
count (params: Cat_Count.Request, callback: callbackFn): TransportRequestCallback;
count (params: Cat_Count.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- fielddata (params?: Cat_Fielddata.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ fielddata (params?: Cat_Fielddata.Request, options?: TransportRequestOptions): TransportRequestPromise;
fielddata (callback: callbackFn): TransportRequestCallback;
fielddata (params: Cat_Fielddata.Request, callback: callbackFn): TransportRequestCallback;
fielddata (params: Cat_Fielddata.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- health (params?: Cat_Health.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ health (params?: Cat_Health.Request, options?: TransportRequestOptions): TransportRequestPromise;
health (callback: callbackFn): TransportRequestCallback;
health (params: Cat_Health.Request, callback: callbackFn): TransportRequestCallback;
health (params: Cat_Health.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- indices (params?: Cat_Indices.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ indices (params?: Cat_Indices.Request, options?: TransportRequestOptions): TransportRequestPromise;
indices (callback: callbackFn): TransportRequestCallback;
indices (params: Cat_Indices.Request, callback: callbackFn): TransportRequestCallback;
indices (params: Cat_Indices.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- master (params?: Cat_Master.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ master (params?: Cat_Master.Request, options?: TransportRequestOptions): TransportRequestPromise;
master (callback: callbackFn): TransportRequestCallback;
master (params: Cat_Master.Request, callback: callbackFn): TransportRequestCallback;
master (params: Cat_Master.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- nodeattrs (params?: Cat_Nodeattrs.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ nodeattrs (params?: Cat_Nodeattrs.Request, options?: TransportRequestOptions): TransportRequestPromise;
nodeattrs (callback: callbackFn): TransportRequestCallback;
nodeattrs (params: Cat_Nodeattrs.Request, callback: callbackFn): TransportRequestCallback;
nodeattrs (params: Cat_Nodeattrs.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- nodes (params?: Cat_Nodes.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ nodes (params?: Cat_Nodes.Request, options?: TransportRequestOptions): TransportRequestPromise;
nodes (callback: callbackFn): TransportRequestCallback;
nodes (params: Cat_Nodes.Request, callback: callbackFn): TransportRequestCallback;
nodes (params: Cat_Nodes.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- pendingTasks (params?: Cat_PendingTasks.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ pendingTasks (params?: Cat_PendingTasks.Request, options?: TransportRequestOptions): TransportRequestPromise;
pendingTasks (callback: callbackFn): TransportRequestCallback;
pendingTasks (params: Cat_PendingTasks.Request, callback: callbackFn): TransportRequestCallback;
pendingTasks (params: Cat_PendingTasks.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- pitSegments (params?: Cat_PitSegments.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ pitSegments (params?: Cat_PitSegments.Request, options?: TransportRequestOptions): TransportRequestPromise;
pitSegments (callback: callbackFn): TransportRequestCallback;
pitSegments (params: Cat_PitSegments.Request, callback: callbackFn): TransportRequestCallback;
pitSegments (params: Cat_PitSegments.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- allPitSegments (params?: Cat_AllPitSegments.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ allPitSegments (params?: Cat_AllPitSegments.Request, options?: TransportRequestOptions): TransportRequestPromise;
allPitSegments (callback: callbackFn): TransportRequestCallback;
allPitSegments (params: Cat_AllPitSegments.Request, callback: callbackFn): TransportRequestCallback;
allPitSegments (params: Cat_AllPitSegments.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- plugins (params?: Cat_Plugins.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ plugins (params?: Cat_Plugins.Request, options?: TransportRequestOptions): TransportRequestPromise;
plugins (callback: callbackFn): TransportRequestCallback;
plugins (params: Cat_Plugins.Request, callback: callbackFn): TransportRequestCallback;
plugins (params: Cat_Plugins.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- recovery (params?: Cat_Recovery.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ recovery (params?: Cat_Recovery.Request, options?: TransportRequestOptions): TransportRequestPromise;
recovery (callback: callbackFn): TransportRequestCallback;
recovery (params: Cat_Recovery.Request, callback: callbackFn): TransportRequestCallback;
recovery (params: Cat_Recovery.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- repositories (params?: Cat_Repositories.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ repositories (params?: Cat_Repositories.Request, options?: TransportRequestOptions): TransportRequestPromise;
repositories (callback: callbackFn): TransportRequestCallback;
repositories (params: Cat_Repositories.Request, callback: callbackFn): TransportRequestCallback;
repositories (params: Cat_Repositories.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- segmentReplication (params?: Cat_SegmentReplication.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ segmentReplication (params?: Cat_SegmentReplication.Request, options?: TransportRequestOptions): TransportRequestPromise;
segmentReplication (callback: callbackFn): TransportRequestCallback;
segmentReplication (params: Cat_SegmentReplication.Request, callback: callbackFn): TransportRequestCallback;
segmentReplication (params: Cat_SegmentReplication.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- segments (params?: Cat_Segments.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ segments (params?: Cat_Segments.Request, options?: TransportRequestOptions): TransportRequestPromise;
segments (callback: callbackFn): TransportRequestCallback;
segments (params: Cat_Segments.Request, callback: callbackFn): TransportRequestCallback;
segments (params: Cat_Segments.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- shards (params?: Cat_Shards.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ shards (params?: Cat_Shards.Request, options?: TransportRequestOptions): TransportRequestPromise;
shards (callback: callbackFn): TransportRequestCallback;
shards (params: Cat_Shards.Request, callback: callbackFn): TransportRequestCallback;
shards (params: Cat_Shards.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- snapshots (params?: Cat_Snapshots.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ snapshots (params?: Cat_Snapshots.Request, options?: TransportRequestOptions): TransportRequestPromise;
snapshots (callback: callbackFn): TransportRequestCallback;
snapshots (params: Cat_Snapshots.Request, callback: callbackFn): TransportRequestCallback;
snapshots (params: Cat_Snapshots.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- tasks (params?: Cat_Tasks.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ tasks (params?: Cat_Tasks.Request, options?: TransportRequestOptions): TransportRequestPromise;
tasks (callback: callbackFn): TransportRequestCallback;
tasks (params: Cat_Tasks.Request, callback: callbackFn): TransportRequestCallback;
tasks (params: Cat_Tasks.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- templates (params?: Cat_Templates.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ templates (params?: Cat_Templates.Request, options?: TransportRequestOptions): TransportRequestPromise;
templates (callback: callbackFn): TransportRequestCallback;
templates (params: Cat_Templates.Request, callback: callbackFn): TransportRequestCallback;
templates (params: Cat_Templates.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- threadPool (params?: Cat_ThreadPool.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ threadPool (params?: Cat_ThreadPool.Request, options?: TransportRequestOptions): TransportRequestPromise;
threadPool (callback: callbackFn): TransportRequestCallback;
threadPool (params: Cat_ThreadPool.Request, callback: callbackFn): TransportRequestCallback;
threadPool (params: Cat_ThreadPool.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
@@ -471,99 +469,99 @@ declare class Client {
};
cluster: {
- allocationExplain (params?: Cluster_AllocationExplain.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ allocationExplain (params?: Cluster_AllocationExplain.Request, options?: TransportRequestOptions): TransportRequestPromise;
allocationExplain (callback: callbackFn): TransportRequestCallback;
allocationExplain (params: Cluster_AllocationExplain.Request, callback: callbackFn): TransportRequestCallback;
allocationExplain (params: Cluster_AllocationExplain.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- deleteDecommissionAwareness (params?: Cluster_DeleteDecommissionAwareness.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ deleteDecommissionAwareness (params?: Cluster_DeleteDecommissionAwareness.Request, options?: TransportRequestOptions): TransportRequestPromise;
deleteDecommissionAwareness (callback: callbackFn): TransportRequestCallback;
deleteDecommissionAwareness (params: Cluster_DeleteDecommissionAwareness.Request, callback: callbackFn): TransportRequestCallback;
deleteDecommissionAwareness (params: Cluster_DeleteDecommissionAwareness.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- getDecommissionAwareness (params: Cluster_GetDecommissionAwareness.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ getDecommissionAwareness (params: Cluster_GetDecommissionAwareness.Request, options?: TransportRequestOptions): TransportRequestPromise;
getDecommissionAwareness (params: Cluster_GetDecommissionAwareness.Request, callback: callbackFn): TransportRequestCallback;
getDecommissionAwareness (params: Cluster_GetDecommissionAwareness.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- putDecommissionAwareness (params: Cluster_PutDecommissionAwareness.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ putDecommissionAwareness (params: Cluster_PutDecommissionAwareness.Request, options?: TransportRequestOptions): TransportRequestPromise;
putDecommissionAwareness (params: Cluster_PutDecommissionAwareness.Request, callback: callbackFn): TransportRequestCallback;
putDecommissionAwareness (params: Cluster_PutDecommissionAwareness.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- health (params?: Cluster_Health.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ health (params?: Cluster_Health.Request, options?: TransportRequestOptions): TransportRequestPromise;
health (callback: callbackFn): TransportRequestCallback;
health (params: Cluster_Health.Request, callback: callbackFn): TransportRequestCallback;
health (params: Cluster_Health.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- pendingTasks (params?: Cluster_PendingTasks.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ pendingTasks (params?: Cluster_PendingTasks.Request, options?: TransportRequestOptions): TransportRequestPromise;
pendingTasks (callback: callbackFn): TransportRequestCallback;
pendingTasks (params: Cluster_PendingTasks.Request, callback: callbackFn): TransportRequestCallback;
pendingTasks (params: Cluster_PendingTasks.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- reroute (params?: Cluster_Reroute.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ reroute (params?: Cluster_Reroute.Request, options?: TransportRequestOptions): TransportRequestPromise;
reroute (callback: callbackFn): TransportRequestCallback;
reroute (params: Cluster_Reroute.Request, callback: callbackFn): TransportRequestCallback;
reroute (params: Cluster_Reroute.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- getWeightedRouting (params: Cluster_GetWeightedRouting.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ getWeightedRouting (params: Cluster_GetWeightedRouting.Request, options?: TransportRequestOptions): TransportRequestPromise;
getWeightedRouting (params: Cluster_GetWeightedRouting.Request, callback: callbackFn): TransportRequestCallback;
getWeightedRouting (params: Cluster_GetWeightedRouting.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- putWeightedRouting (params: Cluster_PutWeightedRouting.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ putWeightedRouting (params: Cluster_PutWeightedRouting.Request, options?: TransportRequestOptions): TransportRequestPromise;
putWeightedRouting (params: Cluster_PutWeightedRouting.Request, callback: callbackFn): TransportRequestCallback;
putWeightedRouting (params: Cluster_PutWeightedRouting.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- deleteWeightedRouting (params?: Cluster_DeleteWeightedRouting.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ deleteWeightedRouting (params?: Cluster_DeleteWeightedRouting.Request, options?: TransportRequestOptions): TransportRequestPromise;
deleteWeightedRouting (callback: callbackFn): TransportRequestCallback;
deleteWeightedRouting (params: Cluster_DeleteWeightedRouting.Request, callback: callbackFn): TransportRequestCallback;
deleteWeightedRouting (params: Cluster_DeleteWeightedRouting.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- getSettings (params?: Cluster_GetSettings.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ getSettings (params?: Cluster_GetSettings.Request, options?: TransportRequestOptions): TransportRequestPromise;
getSettings (callback: callbackFn): TransportRequestCallback;
getSettings (params: Cluster_GetSettings.Request, callback: callbackFn): TransportRequestCallback;
getSettings (params: Cluster_GetSettings.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- putSettings (params: Cluster_PutSettings.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ putSettings (params: Cluster_PutSettings.Request, options?: TransportRequestOptions): TransportRequestPromise;
putSettings (params: Cluster_PutSettings.Request, callback: callbackFn): TransportRequestCallback;
putSettings (params: Cluster_PutSettings.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- state (params?: Cluster_State.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ state (params?: Cluster_State.Request, options?: TransportRequestOptions): TransportRequestPromise;
state (callback: callbackFn): TransportRequestCallback;
state (params: Cluster_State.Request, callback: callbackFn): TransportRequestCallback;
state (params: Cluster_State.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- stats (params?: Cluster_Stats.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ stats (params?: Cluster_Stats.Request, options?: TransportRequestOptions): TransportRequestPromise;
stats (callback: callbackFn): TransportRequestCallback;
stats (params: Cluster_Stats.Request, callback: callbackFn): TransportRequestCallback;
stats (params: Cluster_Stats.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- deleteVotingConfigExclusions (params?: Cluster_DeleteVotingConfigExclusions.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ deleteVotingConfigExclusions (params?: Cluster_DeleteVotingConfigExclusions.Request, options?: TransportRequestOptions): TransportRequestPromise;
deleteVotingConfigExclusions (callback: callbackFn): TransportRequestCallback;
deleteVotingConfigExclusions (params: Cluster_DeleteVotingConfigExclusions.Request, callback: callbackFn): TransportRequestCallback;
deleteVotingConfigExclusions (params: Cluster_DeleteVotingConfigExclusions.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- postVotingConfigExclusions (params?: Cluster_PostVotingConfigExclusions.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ postVotingConfigExclusions (params?: Cluster_PostVotingConfigExclusions.Request, options?: TransportRequestOptions): TransportRequestPromise;
postVotingConfigExclusions (callback: callbackFn): TransportRequestCallback;
postVotingConfigExclusions (params: Cluster_PostVotingConfigExclusions.Request, callback: callbackFn): TransportRequestCallback;
postVotingConfigExclusions (params: Cluster_PostVotingConfigExclusions.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- getComponentTemplate (params?: Cluster_GetComponentTemplate.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ getComponentTemplate (params?: Cluster_GetComponentTemplate.Request, options?: TransportRequestOptions): TransportRequestPromise;
getComponentTemplate (callback: callbackFn): TransportRequestCallback;
getComponentTemplate (params: Cluster_GetComponentTemplate.Request, callback: callbackFn): TransportRequestCallback;
getComponentTemplate (params: Cluster_GetComponentTemplate.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- deleteComponentTemplate (params: Cluster_DeleteComponentTemplate.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ deleteComponentTemplate (params: Cluster_DeleteComponentTemplate.Request, options?: TransportRequestOptions): TransportRequestPromise;
deleteComponentTemplate (params: Cluster_DeleteComponentTemplate.Request, callback: callbackFn): TransportRequestCallback;
deleteComponentTemplate (params: Cluster_DeleteComponentTemplate.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- existsComponentTemplate (params: Cluster_ExistsComponentTemplate.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ existsComponentTemplate (params: Cluster_ExistsComponentTemplate.Request, options?: TransportRequestOptions): TransportRequestPromise;
existsComponentTemplate (params: Cluster_ExistsComponentTemplate.Request, callback: callbackFn): TransportRequestCallback;
existsComponentTemplate (params: Cluster_ExistsComponentTemplate.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- putComponentTemplate (params: Cluster_PutComponentTemplate.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ putComponentTemplate (params: Cluster_PutComponentTemplate.Request, options?: TransportRequestOptions): TransportRequestPromise;
putComponentTemplate (params: Cluster_PutComponentTemplate.Request, callback: callbackFn): TransportRequestCallback;
putComponentTemplate (params: Cluster_PutComponentTemplate.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- remoteInfo (params?: Cluster_RemoteInfo.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ remoteInfo (params?: Cluster_RemoteInfo.Request, options?: TransportRequestOptions): TransportRequestPromise;
remoteInfo (callback: callbackFn): TransportRequestCallback;
remoteInfo (params: Cluster_RemoteInfo.Request, callback: callbackFn): TransportRequestCallback;
remoteInfo (params: Cluster_RemoteInfo.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
@@ -571,256 +569,256 @@ declare class Client {
};
dangling_indices: {
- listDanglingIndices (params?: DanglingIndices_ListDanglingIndices.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ listDanglingIndices (params?: DanglingIndices_ListDanglingIndices.Request, options?: TransportRequestOptions): TransportRequestPromise;
listDanglingIndices (callback: callbackFn): TransportRequestCallback;
listDanglingIndices (params: DanglingIndices_ListDanglingIndices.Request, callback: callbackFn): TransportRequestCallback;
listDanglingIndices (params: DanglingIndices_ListDanglingIndices.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- deleteDanglingIndex (params: DanglingIndices_DeleteDanglingIndex.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ deleteDanglingIndex (params: DanglingIndices_DeleteDanglingIndex.Request, options?: TransportRequestOptions): TransportRequestPromise;
deleteDanglingIndex (params: DanglingIndices_DeleteDanglingIndex.Request, callback: callbackFn): TransportRequestCallback;
deleteDanglingIndex (params: DanglingIndices_DeleteDanglingIndex.Request, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback;
- importDanglingIndex (params: DanglingIndices_ImportDanglingIndex.Request, options?: TransportRequestOptions): TransportRequestPromise>;
+ importDanglingIndex (params: DanglingIndices_ImportDanglingIndex.Request, options?: TransportRequestOptions): TransportRequestPromise;
importDanglingIndex (params: DanglingIndices_ImportDanglingIndex.Request, callback: callbackFn