@elastic/elasticsearch-canary
Advanced tools
Comparing version 8.0.0-canary.26 to 8.0.0-canary.27
@@ -76,2 +76,5 @@ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport'; | ||
forcemerge(this: That, params?: T.IndicesForcemergeRequest | TB.IndicesForcemergeRequest, options?: TransportRequestOptions): Promise<T.IndicesForcemergeResponse>; | ||
freeze(this: That, params: T.IndicesFreezeRequest | TB.IndicesFreezeRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesFreezeResponse>; | ||
freeze(this: That, params: T.IndicesFreezeRequest | TB.IndicesFreezeRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesFreezeResponse, unknown>>; | ||
freeze(this: That, params: T.IndicesFreezeRequest | TB.IndicesFreezeRequest, options?: TransportRequestOptions): Promise<T.IndicesFreezeResponse>; | ||
get(this: That, params: T.IndicesGetRequest | TB.IndicesGetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesGetResponse>; | ||
@@ -164,2 +167,5 @@ get(this: That, params: T.IndicesGetRequest | TB.IndicesGetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesGetResponse, unknown>>; | ||
stats(this: That, params?: T.IndicesStatsRequest | TB.IndicesStatsRequest, options?: TransportRequestOptions): Promise<T.IndicesStatsResponse>; | ||
unfreeze(this: That, params: T.IndicesUnfreezeRequest | TB.IndicesUnfreezeRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesUnfreezeResponse>; | ||
unfreeze(this: That, params: T.IndicesUnfreezeRequest | TB.IndicesUnfreezeRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesUnfreezeResponse, unknown>>; | ||
unfreeze(this: That, params: T.IndicesUnfreezeRequest | TB.IndicesUnfreezeRequest, options?: TransportRequestOptions): Promise<T.IndicesUnfreezeResponse>; | ||
updateAliases(this: That, params?: T.IndicesUpdateAliasesRequest | TB.IndicesUpdateAliasesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesUpdateAliasesResponse>; | ||
@@ -166,0 +172,0 @@ updateAliases(this: That, params?: T.IndicesUpdateAliasesRequest | TB.IndicesUpdateAliasesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesUpdateAliasesResponse, unknown>>; |
@@ -490,2 +490,19 @@ "use strict"; | ||
} | ||
async freeze(params, options) { | ||
const acceptedPath = ['index']; | ||
const querystring = {}; | ||
const body = undefined; | ||
for (const key in params) { | ||
if (acceptedPath.includes(key)) { | ||
continue; | ||
} | ||
else if (key !== 'body') { | ||
// @ts-expect-error | ||
querystring[key] = params[key]; | ||
} | ||
} | ||
const method = 'POST'; | ||
const path = `/${encodeURIComponent(params.index.toString())}/_freeze`; | ||
return await this.transport.request({ path, method, querystring, body }, options); | ||
} | ||
async get(params, options) { | ||
@@ -1225,2 +1242,19 @@ const acceptedPath = ['index']; | ||
} | ||
async unfreeze(params, options) { | ||
const acceptedPath = ['index']; | ||
const querystring = {}; | ||
const body = undefined; | ||
for (const key in params) { | ||
if (acceptedPath.includes(key)) { | ||
continue; | ||
} | ||
else if (key !== 'body') { | ||
// @ts-expect-error | ||
querystring[key] = params[key]; | ||
} | ||
} | ||
const method = 'POST'; | ||
const path = `/${encodeURIComponent(params.index.toString())}/_unfreeze`; | ||
return await this.transport.request({ path, method, querystring, body }, options); | ||
} | ||
async updateAliases(params, options) { | ||
@@ -1227,0 +1261,0 @@ var _a; |
{ | ||
"name": "@elastic/elasticsearch-canary", | ||
"version": "8.0.0-canary.26", | ||
"versionCanary": "8.0.0-canary.26", | ||
"version": "8.0.0-canary.27", | ||
"versionCanary": "8.0.0-canary.27", | ||
"description": "The official Elasticsearch client for Node.js", | ||
@@ -93,3 +93,3 @@ "main": "index.js", | ||
}, | ||
"commitHash": "1e1ac6a2" | ||
"commitHash": "87ce166d" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2105663
42631