flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
39
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/async_search.d.ts
generated
vendored
Executable file
39
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/async_search.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,39 @@
|
|||
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 AsyncSearch {
|
||||
transport: Transport;
|
||||
constructor(transport: Transport);
|
||||
/**
|
||||
* Deletes an async search by identifier. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the `cancel_task` cluster privilege.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html | Elasticsearch API documentation}
|
||||
*/
|
||||
delete(this: That, params: T.AsyncSearchDeleteRequest | TB.AsyncSearchDeleteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AsyncSearchDeleteResponse>;
|
||||
delete(this: That, params: T.AsyncSearchDeleteRequest | TB.AsyncSearchDeleteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AsyncSearchDeleteResponse, unknown>>;
|
||||
delete(this: That, params: T.AsyncSearchDeleteRequest | TB.AsyncSearchDeleteRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchDeleteResponse>;
|
||||
/**
|
||||
* Retrieves the results of a previously submitted async search request given its identifier. If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html | Elasticsearch API documentation}
|
||||
*/
|
||||
get<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.AsyncSearchGetRequest | TB.AsyncSearchGetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AsyncSearchGetResponse<TDocument, TAggregations>>;
|
||||
get<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.AsyncSearchGetRequest | TB.AsyncSearchGetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AsyncSearchGetResponse<TDocument, TAggregations>, unknown>>;
|
||||
get<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.AsyncSearchGetRequest | TB.AsyncSearchGetRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchGetResponse<TDocument, TAggregations>>;
|
||||
/**
|
||||
* Get async search status Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. If the Elasticsearch security features are enabled, use of this API is restricted to the `monitoring_user` role.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html | Elasticsearch API documentation}
|
||||
*/
|
||||
status(this: That, params: T.AsyncSearchStatusRequest | TB.AsyncSearchStatusRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AsyncSearchStatusResponse>;
|
||||
status(this: That, params: T.AsyncSearchStatusRequest | TB.AsyncSearchStatusRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AsyncSearchStatusResponse, unknown>>;
|
||||
status(this: That, params: T.AsyncSearchStatusRequest | TB.AsyncSearchStatusRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchStatusResponse>;
|
||||
/**
|
||||
* Runs a search request asynchronously. When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. Warning: Async search does not support scroll nor search requests that only include the suggest section. By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. The maximum allowed size for a stored async search response can be set by changing the `search.max_async_search_response_size` cluster level setting.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html | Elasticsearch API documentation}
|
||||
*/
|
||||
submit<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AsyncSearchSubmitResponse<TDocument, TAggregations>>;
|
||||
submit<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AsyncSearchSubmitResponse<TDocument, TAggregations>, unknown>>;
|
||||
submit<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchSubmitResponse<TDocument, TAggregations>>;
|
||||
}
|
||||
export {};
|
||||
155
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/async_search.js
generated
vendored
Executable file
155
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/async_search.js
generated
vendored
Executable file
|
|
@ -0,0 +1,155 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class AsyncSearch {
|
||||
constructor(transport) {
|
||||
Object.defineProperty(this, "transport", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
this.transport = transport;
|
||||
}
|
||||
async delete(params, options) {
|
||||
const acceptedPath = ['id'];
|
||||
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 = 'DELETE';
|
||||
const path = `/_async_search/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'async_search.delete',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async get(params, options) {
|
||||
const acceptedPath = ['id'];
|
||||
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 = 'GET';
|
||||
const path = `/_async_search/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'async_search.get',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async status(params, options) {
|
||||
const acceptedPath = ['id'];
|
||||
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 = 'GET';
|
||||
const path = `/_async_search/status/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'async_search.status',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async submit(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const acceptedBody = ['aggregations', 'aggs', 'collapse', 'explain', 'ext', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'knn', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
if (key === 'sort' && typeof params[key] === 'string' && params[key].includes(':')) { // eslint-disable-line
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
else {
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.index != null) {
|
||||
method = 'POST';
|
||||
path = `/${encodeURIComponent(params.index.toString())}/_async_search`;
|
||||
}
|
||||
else {
|
||||
method = 'POST';
|
||||
path = '/_async_search';
|
||||
}
|
||||
const meta = {
|
||||
name: 'async_search.submit',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
}
|
||||
exports.default = AsyncSearch;
|
||||
//# sourceMappingURL=async_search.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/async_search.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/async_search.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"async_search.js","sourceRoot":"","sources":["../../../src/api/api/async_search.ts"],"names":[],"mappings":"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"}
|
||||
39
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/autoscaling.d.ts
generated
vendored
Executable file
39
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/autoscaling.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,39 @@
|
|||
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 Autoscaling {
|
||||
transport: Transport;
|
||||
constructor(transport: Transport);
|
||||
/**
|
||||
* Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-delete-autoscaling-policy.html | Elasticsearch API documentation}
|
||||
*/
|
||||
deleteAutoscalingPolicy(this: That, params: T.AutoscalingDeleteAutoscalingPolicyRequest | TB.AutoscalingDeleteAutoscalingPolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AutoscalingDeleteAutoscalingPolicyResponse>;
|
||||
deleteAutoscalingPolicy(this: That, params: T.AutoscalingDeleteAutoscalingPolicyRequest | TB.AutoscalingDeleteAutoscalingPolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AutoscalingDeleteAutoscalingPolicyResponse, unknown>>;
|
||||
deleteAutoscalingPolicy(this: That, params: T.AutoscalingDeleteAutoscalingPolicyRequest | TB.AutoscalingDeleteAutoscalingPolicyRequest, options?: TransportRequestOptions): Promise<T.AutoscalingDeleteAutoscalingPolicyResponse>;
|
||||
/**
|
||||
* Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-capacity.html | Elasticsearch API documentation}
|
||||
*/
|
||||
getAutoscalingCapacity(this: That, params?: T.AutoscalingGetAutoscalingCapacityRequest | TB.AutoscalingGetAutoscalingCapacityRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AutoscalingGetAutoscalingCapacityResponse>;
|
||||
getAutoscalingCapacity(this: That, params?: T.AutoscalingGetAutoscalingCapacityRequest | TB.AutoscalingGetAutoscalingCapacityRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AutoscalingGetAutoscalingCapacityResponse, unknown>>;
|
||||
getAutoscalingCapacity(this: That, params?: T.AutoscalingGetAutoscalingCapacityRequest | TB.AutoscalingGetAutoscalingCapacityRequest, options?: TransportRequestOptions): Promise<T.AutoscalingGetAutoscalingCapacityResponse>;
|
||||
/**
|
||||
* Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-capacity.html | Elasticsearch API documentation}
|
||||
*/
|
||||
getAutoscalingPolicy(this: That, params: T.AutoscalingGetAutoscalingPolicyRequest | TB.AutoscalingGetAutoscalingPolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AutoscalingGetAutoscalingPolicyResponse>;
|
||||
getAutoscalingPolicy(this: That, params: T.AutoscalingGetAutoscalingPolicyRequest | TB.AutoscalingGetAutoscalingPolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AutoscalingGetAutoscalingPolicyResponse, unknown>>;
|
||||
getAutoscalingPolicy(this: That, params: T.AutoscalingGetAutoscalingPolicyRequest | TB.AutoscalingGetAutoscalingPolicyRequest, options?: TransportRequestOptions): Promise<T.AutoscalingGetAutoscalingPolicyResponse>;
|
||||
/**
|
||||
* Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-put-autoscaling-policy.html | Elasticsearch API documentation}
|
||||
*/
|
||||
putAutoscalingPolicy(this: That, params: T.AutoscalingPutAutoscalingPolicyRequest | TB.AutoscalingPutAutoscalingPolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AutoscalingPutAutoscalingPolicyResponse>;
|
||||
putAutoscalingPolicy(this: That, params: T.AutoscalingPutAutoscalingPolicyRequest | TB.AutoscalingPutAutoscalingPolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AutoscalingPutAutoscalingPolicyResponse, unknown>>;
|
||||
putAutoscalingPolicy(this: That, params: T.AutoscalingPutAutoscalingPolicyRequest | TB.AutoscalingPutAutoscalingPolicyRequest, options?: TransportRequestOptions): Promise<T.AutoscalingPutAutoscalingPolicyResponse>;
|
||||
}
|
||||
export {};
|
||||
130
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/autoscaling.js
generated
vendored
Executable file
130
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/autoscaling.js
generated
vendored
Executable file
|
|
@ -0,0 +1,130 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class Autoscaling {
|
||||
constructor(transport) {
|
||||
Object.defineProperty(this, "transport", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
this.transport = transport;
|
||||
}
|
||||
async deleteAutoscalingPolicy(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
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 = 'DELETE';
|
||||
const path = `/_autoscaling/policy/${encodeURIComponent(params.name.toString())}`;
|
||||
const meta = {
|
||||
name: 'autoscaling.delete_autoscaling_policy',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async getAutoscalingCapacity(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_autoscaling/capacity';
|
||||
const meta = {
|
||||
name: 'autoscaling.get_autoscaling_capacity'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async getAutoscalingPolicy(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
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 = 'GET';
|
||||
const path = `/_autoscaling/policy/${encodeURIComponent(params.name.toString())}`;
|
||||
const meta = {
|
||||
name: 'autoscaling.get_autoscaling_policy',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async putAutoscalingPolicy(params, options) {
|
||||
var _a;
|
||||
const acceptedPath = ['name'];
|
||||
const acceptedBody = ['policy'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
let body = (_a = params.body) !== null && _a !== void 0 ? _a : undefined;
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
// @ts-expect-error
|
||||
body = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'PUT';
|
||||
const path = `/_autoscaling/policy/${encodeURIComponent(params.name.toString())}`;
|
||||
const meta = {
|
||||
name: 'autoscaling.put_autoscaling_policy',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
}
|
||||
exports.default = Autoscaling;
|
||||
//# sourceMappingURL=autoscaling.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/autoscaling.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/autoscaling.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"autoscaling.js","sourceRoot":"","sources":["../../../src/api/api/autoscaling.ts"],"names":[],"mappings":"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"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/bulk.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/bulk.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Performs multiple indexing or delete operations in a single API call. This reduces overhead and can greatly increase indexing speed.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/docs-bulk.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function BulkApi<TDocument = unknown, TPartialDocument = unknown>(this: That, params: T.BulkRequest<TDocument, TPartialDocument> | TB.BulkRequest<TDocument, TPartialDocument>, options?: TransportRequestOptionsWithOutMeta): Promise<T.BulkResponse>;
|
||||
export default function BulkApi<TDocument = unknown, TPartialDocument = unknown>(this: That, params: T.BulkRequest<TDocument, TPartialDocument> | TB.BulkRequest<TDocument, TPartialDocument>, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.BulkResponse, unknown>>;
|
||||
export default function BulkApi<TDocument = unknown, TPartialDocument = unknown>(this: That, params: T.BulkRequest<TDocument, TPartialDocument> | TB.BulkRequest<TDocument, TPartialDocument>, options?: TransportRequestOptions): Promise<T.BulkResponse>;
|
||||
export {};
|
||||
60
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/bulk.js
generated
vendored
Executable file
60
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/bulk.js
generated
vendored
Executable file
|
|
@ -0,0 +1,60 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function BulkApi(params, options) {
|
||||
var _a;
|
||||
const acceptedPath = ['index'];
|
||||
const acceptedBody = ['operations'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
let body = (_a = params.body) !== null && _a !== void 0 ? _a : undefined;
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
// @ts-expect-error
|
||||
body = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.index != null) {
|
||||
method = 'POST';
|
||||
path = `/${encodeURIComponent(params.index.toString())}/_bulk`;
|
||||
}
|
||||
else {
|
||||
method = 'POST';
|
||||
path = '/_bulk';
|
||||
}
|
||||
const meta = {
|
||||
name: 'bulk',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, bulkBody: body, meta }, options);
|
||||
}
|
||||
exports.default = BulkApi;
|
||||
//# sourceMappingURL=bulk.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/bulk.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/bulk.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../../../src/api/api/bulk.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,OAAO,CAA+D,MAAgG,EAAE,OAAiC;;IACrO,MAAM,YAAY,GAAa,CAAC,OAAO,CAAC,CAAA;IACxC,MAAM,YAAY,GAAa,CAAC,YAAY,CAAC,CAAA;IAC7C,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,mBAAmB;IACnB,IAAI,IAAI,GAAQ,MAAA,MAAM,CAAC,IAAI,mCAAI,SAAS,CAAA;IAExC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,mBAAmB;YACnB,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SACnB;aAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACrC,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,IAAI,IAAI,GAAG,EAAE,CAAA;IACb,IAAI,MAAM,CAAC,KAAK,IAAI,IAAI,EAAE;QACxB,MAAM,GAAG,MAAM,CAAA;QACf,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAA;KAC/D;SAAM;QACL,MAAM,GAAG,MAAM,CAAA;QACf,IAAI,GAAG,QAAQ,CAAA;KAChB;IACD,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE;YACT,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACnG,CAAC;AAnCD,0BAmCC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/capabilities.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/capabilities.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Checks if the specified combination of method, API, parameters, and arbitrary capabilities are supported
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/capabilities.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function CapabilitiesApi(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
export default function CapabilitiesApi(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
export default function CapabilitiesApi(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
export {};
|
||||
42
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/capabilities.js
generated
vendored
Executable file
42
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/capabilities.js
generated
vendored
Executable file
|
|
@ -0,0 +1,42 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function CapabilitiesApi(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_capabilities';
|
||||
const meta = {
|
||||
name: 'capabilities'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = CapabilitiesApi;
|
||||
//# sourceMappingURL=capabilities.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/capabilities.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/capabilities.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../../src/api/api/capabilities.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,eAAe,CAAc,MAAyB,EAAE,OAAiC;IACrH,MAAM,YAAY,GAAa,EAAE,CAAA;IACjC,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;IAEtB,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAA;IACrB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,KAAK,CAAA;IACpB,MAAM,IAAI,GAAG,gBAAgB,CAAA;IAC7B,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,cAAc;KACrB,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AApBD,kCAoBC"}
|
||||
193
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/cat.d.ts
generated
vendored
Executable file
193
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/cat.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,193 @@
|
|||
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 Cat {
|
||||
transport: Transport;
|
||||
constructor(transport: Transport);
|
||||
/**
|
||||
* Retrieves the cluster’s index aliases, including filter and routing information. The API does not return data stream aliases. IMPORTANT: cat APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-alias.html | Elasticsearch API documentation}
|
||||
*/
|
||||
aliases(this: That, params?: T.CatAliasesRequest | TB.CatAliasesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatAliasesResponse>;
|
||||
aliases(this: That, params?: T.CatAliasesRequest | TB.CatAliasesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatAliasesResponse, unknown>>;
|
||||
aliases(this: That, params?: T.CatAliasesRequest | TB.CatAliasesRequest, options?: TransportRequestOptions): Promise<T.CatAliasesResponse>;
|
||||
/**
|
||||
* Provides a snapshot of the number of shards allocated to each data node and their disk space. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-allocation.html | Elasticsearch API documentation}
|
||||
*/
|
||||
allocation(this: That, params?: T.CatAllocationRequest | TB.CatAllocationRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatAllocationResponse>;
|
||||
allocation(this: That, params?: T.CatAllocationRequest | TB.CatAllocationRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatAllocationResponse, unknown>>;
|
||||
allocation(this: That, params?: T.CatAllocationRequest | TB.CatAllocationRequest, options?: TransportRequestOptions): Promise<T.CatAllocationResponse>;
|
||||
/**
|
||||
* Returns information about component templates in a cluster. Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get component template API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-component-templates.html | Elasticsearch API documentation}
|
||||
*/
|
||||
componentTemplates(this: That, params?: T.CatComponentTemplatesRequest | TB.CatComponentTemplatesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatComponentTemplatesResponse>;
|
||||
componentTemplates(this: That, params?: T.CatComponentTemplatesRequest | TB.CatComponentTemplatesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatComponentTemplatesResponse, unknown>>;
|
||||
componentTemplates(this: That, params?: T.CatComponentTemplatesRequest | TB.CatComponentTemplatesRequest, options?: TransportRequestOptions): Promise<T.CatComponentTemplatesResponse>;
|
||||
/**
|
||||
* Provides quick access to a document count for a data stream, an index, or an entire cluster. NOTE: The document count only includes live documents, not deleted documents which have not yet been removed by the merge process. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the count API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-count.html | Elasticsearch API documentation}
|
||||
*/
|
||||
count(this: That, params?: T.CatCountRequest | TB.CatCountRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatCountResponse>;
|
||||
count(this: That, params?: T.CatCountRequest | TB.CatCountRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatCountResponse, unknown>>;
|
||||
count(this: That, params?: T.CatCountRequest | TB.CatCountRequest, options?: TransportRequestOptions): Promise<T.CatCountResponse>;
|
||||
/**
|
||||
* Returns the amount of heap memory currently used by the field data cache on every data node in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes stats API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-fielddata.html | Elasticsearch API documentation}
|
||||
*/
|
||||
fielddata(this: That, params?: T.CatFielddataRequest | TB.CatFielddataRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatFielddataResponse>;
|
||||
fielddata(this: That, params?: T.CatFielddataRequest | TB.CatFielddataRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatFielddataResponse, unknown>>;
|
||||
fielddata(this: That, params?: T.CatFielddataRequest | TB.CatFielddataRequest, options?: TransportRequestOptions): Promise<T.CatFielddataResponse>;
|
||||
/**
|
||||
* Returns the health status of a cluster, similar to the cluster health API. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the cluster health API. This API is often used to check malfunctioning clusters. To help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats: `HH:MM:SS`, which is human-readable but includes no date information; `Unix epoch time`, which is machine-sortable and includes date information. The latter format is useful for cluster recoveries that take multiple days. You can use the cat health API to verify cluster health across multiple nodes. You also can use the API to track the recovery of a large cluster over a longer period of time.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-health.html | Elasticsearch API documentation}
|
||||
*/
|
||||
health(this: That, params?: T.CatHealthRequest | TB.CatHealthRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatHealthResponse>;
|
||||
health(this: That, params?: T.CatHealthRequest | TB.CatHealthRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatHealthResponse, unknown>>;
|
||||
health(this: That, params?: T.CatHealthRequest | TB.CatHealthRequest, options?: TransportRequestOptions): Promise<T.CatHealthResponse>;
|
||||
/**
|
||||
* Returns help for the Cat APIs.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat.html | Elasticsearch API documentation}
|
||||
*/
|
||||
help(this: That, params?: T.CatHelpRequest | TB.CatHelpRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatHelpResponse>;
|
||||
help(this: That, params?: T.CatHelpRequest | TB.CatHelpRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatHelpResponse, unknown>>;
|
||||
help(this: That, params?: T.CatHelpRequest | TB.CatHelpRequest, options?: TransportRequestOptions): Promise<T.CatHelpResponse>;
|
||||
/**
|
||||
* Returns high-level information about indices in a cluster, including backing indices for data streams. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index API. Use the cat indices API to get the following information for each index in a cluster: shard count; document count; deleted document count; primary store size; total store size of all shards, including shard replicas. These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents. To get an accurate count of Elasticsearch documents, use the cat count or count APIs.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-indices.html | Elasticsearch API documentation}
|
||||
*/
|
||||
indices(this: That, params?: T.CatIndicesRequest | TB.CatIndicesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatIndicesResponse>;
|
||||
indices(this: That, params?: T.CatIndicesRequest | TB.CatIndicesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatIndicesResponse, unknown>>;
|
||||
indices(this: That, params?: T.CatIndicesRequest | TB.CatIndicesRequest, options?: TransportRequestOptions): Promise<T.CatIndicesResponse>;
|
||||
/**
|
||||
* Returns information about the master node, including the ID, bound IP address, and name. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-master.html | Elasticsearch API documentation}
|
||||
*/
|
||||
master(this: That, params?: T.CatMasterRequest | TB.CatMasterRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatMasterResponse>;
|
||||
master(this: That, params?: T.CatMasterRequest | TB.CatMasterRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatMasterResponse, unknown>>;
|
||||
master(this: That, params?: T.CatMasterRequest | TB.CatMasterRequest, options?: TransportRequestOptions): Promise<T.CatMasterResponse>;
|
||||
/**
|
||||
* Returns configuration and usage information about data frame analytics jobs. IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get data frame analytics jobs statistics API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-dfanalytics.html | Elasticsearch API documentation}
|
||||
*/
|
||||
mlDataFrameAnalytics(this: That, params?: T.CatMlDataFrameAnalyticsRequest | TB.CatMlDataFrameAnalyticsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatMlDataFrameAnalyticsResponse>;
|
||||
mlDataFrameAnalytics(this: That, params?: T.CatMlDataFrameAnalyticsRequest | TB.CatMlDataFrameAnalyticsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatMlDataFrameAnalyticsResponse, unknown>>;
|
||||
mlDataFrameAnalytics(this: That, params?: T.CatMlDataFrameAnalyticsRequest | TB.CatMlDataFrameAnalyticsRequest, options?: TransportRequestOptions): Promise<T.CatMlDataFrameAnalyticsResponse>;
|
||||
/**
|
||||
* Returns configuration and usage information about datafeeds. This API returns a maximum of 10,000 datafeeds. If the Elasticsearch security features are enabled, you must have `monitor_ml`, `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get datafeed statistics API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-datafeeds.html | Elasticsearch API documentation}
|
||||
*/
|
||||
mlDatafeeds(this: That, params?: T.CatMlDatafeedsRequest | TB.CatMlDatafeedsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatMlDatafeedsResponse>;
|
||||
mlDatafeeds(this: That, params?: T.CatMlDatafeedsRequest | TB.CatMlDatafeedsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatMlDatafeedsResponse, unknown>>;
|
||||
mlDatafeeds(this: That, params?: T.CatMlDatafeedsRequest | TB.CatMlDatafeedsRequest, options?: TransportRequestOptions): Promise<T.CatMlDatafeedsResponse>;
|
||||
/**
|
||||
* Returns configuration and usage information for anomaly detection jobs. This API returns a maximum of 10,000 jobs. If the Elasticsearch security features are enabled, you must have `monitor_ml`, `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get anomaly detection job statistics API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-anomaly-detectors.html | Elasticsearch API documentation}
|
||||
*/
|
||||
mlJobs(this: That, params?: T.CatMlJobsRequest | TB.CatMlJobsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatMlJobsResponse>;
|
||||
mlJobs(this: That, params?: T.CatMlJobsRequest | TB.CatMlJobsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatMlJobsResponse, unknown>>;
|
||||
mlJobs(this: That, params?: T.CatMlJobsRequest | TB.CatMlJobsRequest, options?: TransportRequestOptions): Promise<T.CatMlJobsResponse>;
|
||||
/**
|
||||
* Returns configuration and usage information about inference trained models. IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get trained models statistics API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-trained-model.html | Elasticsearch API documentation}
|
||||
*/
|
||||
mlTrainedModels(this: That, params?: T.CatMlTrainedModelsRequest | TB.CatMlTrainedModelsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatMlTrainedModelsResponse>;
|
||||
mlTrainedModels(this: That, params?: T.CatMlTrainedModelsRequest | TB.CatMlTrainedModelsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatMlTrainedModelsResponse, unknown>>;
|
||||
mlTrainedModels(this: That, params?: T.CatMlTrainedModelsRequest | TB.CatMlTrainedModelsRequest, options?: TransportRequestOptions): Promise<T.CatMlTrainedModelsResponse>;
|
||||
/**
|
||||
* Returns information about custom node attributes. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-nodeattrs.html | Elasticsearch API documentation}
|
||||
*/
|
||||
nodeattrs(this: That, params?: T.CatNodeattrsRequest | TB.CatNodeattrsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatNodeattrsResponse>;
|
||||
nodeattrs(this: That, params?: T.CatNodeattrsRequest | TB.CatNodeattrsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatNodeattrsResponse, unknown>>;
|
||||
nodeattrs(this: That, params?: T.CatNodeattrsRequest | TB.CatNodeattrsRequest, options?: TransportRequestOptions): Promise<T.CatNodeattrsResponse>;
|
||||
/**
|
||||
* Returns information about the nodes in a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-nodes.html | Elasticsearch API documentation}
|
||||
*/
|
||||
nodes(this: That, params?: T.CatNodesRequest | TB.CatNodesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatNodesResponse>;
|
||||
nodes(this: That, params?: T.CatNodesRequest | TB.CatNodesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatNodesResponse, unknown>>;
|
||||
nodes(this: That, params?: T.CatNodesRequest | TB.CatNodesRequest, options?: TransportRequestOptions): Promise<T.CatNodesResponse>;
|
||||
/**
|
||||
* Returns cluster-level changes that have not yet been executed. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-pending-tasks.html | Elasticsearch API documentation}
|
||||
*/
|
||||
pendingTasks(this: That, params?: T.CatPendingTasksRequest | TB.CatPendingTasksRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatPendingTasksResponse>;
|
||||
pendingTasks(this: That, params?: T.CatPendingTasksRequest | TB.CatPendingTasksRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatPendingTasksResponse, unknown>>;
|
||||
pendingTasks(this: That, params?: T.CatPendingTasksRequest | TB.CatPendingTasksRequest, options?: TransportRequestOptions): Promise<T.CatPendingTasksResponse>;
|
||||
/**
|
||||
* Returns a list of plugins running on each node of a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-plugins.html | Elasticsearch API documentation}
|
||||
*/
|
||||
plugins(this: That, params?: T.CatPluginsRequest | TB.CatPluginsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatPluginsResponse>;
|
||||
plugins(this: That, params?: T.CatPluginsRequest | TB.CatPluginsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatPluginsResponse, unknown>>;
|
||||
plugins(this: That, params?: T.CatPluginsRequest | TB.CatPluginsRequest, options?: TransportRequestOptions): Promise<T.CatPluginsResponse>;
|
||||
/**
|
||||
* Returns information about ongoing and completed shard recoveries. Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or syncing a replica shard from a primary shard. When a shard recovery completes, the recovered shard is available for search and indexing. For data streams, the API returns information about the stream’s backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-recovery.html | Elasticsearch API documentation}
|
||||
*/
|
||||
recovery(this: That, params?: T.CatRecoveryRequest | TB.CatRecoveryRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatRecoveryResponse>;
|
||||
recovery(this: That, params?: T.CatRecoveryRequest | TB.CatRecoveryRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatRecoveryResponse, unknown>>;
|
||||
recovery(this: That, params?: T.CatRecoveryRequest | TB.CatRecoveryRequest, options?: TransportRequestOptions): Promise<T.CatRecoveryResponse>;
|
||||
/**
|
||||
* Returns the snapshot repositories for a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot repository API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-repositories.html | Elasticsearch API documentation}
|
||||
*/
|
||||
repositories(this: That, params?: T.CatRepositoriesRequest | TB.CatRepositoriesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatRepositoriesResponse>;
|
||||
repositories(this: That, params?: T.CatRepositoriesRequest | TB.CatRepositoriesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatRepositoriesResponse, unknown>>;
|
||||
repositories(this: That, params?: T.CatRepositoriesRequest | TB.CatRepositoriesRequest, options?: TransportRequestOptions): Promise<T.CatRepositoriesResponse>;
|
||||
/**
|
||||
* Returns low-level information about the Lucene segments in index shards. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-segments.html | Elasticsearch API documentation}
|
||||
*/
|
||||
segments(this: That, params?: T.CatSegmentsRequest | TB.CatSegmentsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatSegmentsResponse>;
|
||||
segments(this: That, params?: T.CatSegmentsRequest | TB.CatSegmentsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatSegmentsResponse, unknown>>;
|
||||
segments(this: That, params?: T.CatSegmentsRequest | TB.CatSegmentsRequest, options?: TransportRequestOptions): Promise<T.CatSegmentsResponse>;
|
||||
/**
|
||||
* Returns information about the shards in a cluster. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-shards.html | Elasticsearch API documentation}
|
||||
*/
|
||||
shards(this: That, params?: T.CatShardsRequest | TB.CatShardsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatShardsResponse>;
|
||||
shards(this: That, params?: T.CatShardsRequest | TB.CatShardsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatShardsResponse, unknown>>;
|
||||
shards(this: That, params?: T.CatShardsRequest | TB.CatShardsRequest, options?: TransportRequestOptions): Promise<T.CatShardsResponse>;
|
||||
/**
|
||||
* Returns information about the snapshots stored in one or more repositories. A snapshot is a backup of an index or running Elasticsearch cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-snapshots.html | Elasticsearch API documentation}
|
||||
*/
|
||||
snapshots(this: That, params?: T.CatSnapshotsRequest | TB.CatSnapshotsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatSnapshotsResponse>;
|
||||
snapshots(this: That, params?: T.CatSnapshotsRequest | TB.CatSnapshotsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatSnapshotsResponse, unknown>>;
|
||||
snapshots(this: That, params?: T.CatSnapshotsRequest | TB.CatSnapshotsRequest, options?: TransportRequestOptions): Promise<T.CatSnapshotsResponse>;
|
||||
/**
|
||||
* Returns information about tasks currently executing in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/tasks.html | Elasticsearch API documentation}
|
||||
*/
|
||||
tasks(this: That, params?: T.CatTasksRequest | TB.CatTasksRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatTasksResponse>;
|
||||
tasks(this: That, params?: T.CatTasksRequest | TB.CatTasksRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatTasksResponse, unknown>>;
|
||||
tasks(this: That, params?: T.CatTasksRequest | TB.CatTasksRequest, options?: TransportRequestOptions): Promise<T.CatTasksResponse>;
|
||||
/**
|
||||
* Returns information about index templates in a cluster. You can use index templates to apply index settings and field mappings to new indices at creation. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-templates.html | Elasticsearch API documentation}
|
||||
*/
|
||||
templates(this: That, params?: T.CatTemplatesRequest | TB.CatTemplatesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatTemplatesResponse>;
|
||||
templates(this: That, params?: T.CatTemplatesRequest | TB.CatTemplatesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatTemplatesResponse, unknown>>;
|
||||
templates(this: That, params?: T.CatTemplatesRequest | TB.CatTemplatesRequest, options?: TransportRequestOptions): Promise<T.CatTemplatesResponse>;
|
||||
/**
|
||||
* Returns thread pool statistics for each node in a cluster. Returned information includes all built-in thread pools and custom thread pools. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-thread-pool.html | Elasticsearch API documentation}
|
||||
*/
|
||||
threadPool(this: That, params?: T.CatThreadPoolRequest | TB.CatThreadPoolRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatThreadPoolResponse>;
|
||||
threadPool(this: That, params?: T.CatThreadPoolRequest | TB.CatThreadPoolRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatThreadPoolResponse, unknown>>;
|
||||
threadPool(this: That, params?: T.CatThreadPoolRequest | TB.CatThreadPoolRequest, options?: TransportRequestOptions): Promise<T.CatThreadPoolResponse>;
|
||||
/**
|
||||
* Returns configuration and usage information about transforms. IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get transform statistics API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-transforms.html | Elasticsearch API documentation}
|
||||
*/
|
||||
transforms(this: That, params?: T.CatTransformsRequest | TB.CatTransformsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatTransformsResponse>;
|
||||
transforms(this: That, params?: T.CatTransformsRequest | TB.CatTransformsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatTransformsResponse, unknown>>;
|
||||
transforms(this: That, params?: T.CatTransformsRequest | TB.CatTransformsRequest, options?: TransportRequestOptions): Promise<T.CatTransformsResponse>;
|
||||
}
|
||||
export {};
|
||||
766
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/cat.js
generated
vendored
Executable file
766
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/cat.js
generated
vendored
Executable file
|
|
@ -0,0 +1,766 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class Cat {
|
||||
constructor(transport) {
|
||||
Object.defineProperty(this, "transport", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
this.transport = transport;
|
||||
}
|
||||
async aliases(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.name != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/aliases/${encodeURIComponent(params.name.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/aliases';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.aliases',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async allocation(params, options) {
|
||||
const acceptedPath = ['node_id'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.node_id != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/allocation/${encodeURIComponent(params.node_id.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/allocation';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.allocation',
|
||||
pathParts: {
|
||||
node_id: params.node_id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async componentTemplates(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.name != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/component_templates/${encodeURIComponent(params.name.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/component_templates';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.component_templates',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async count(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.index != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/count/${encodeURIComponent(params.index.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/count';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.count',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async fielddata(params, options) {
|
||||
const acceptedPath = ['fields'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.fields != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/fielddata/${encodeURIComponent(params.fields.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/fielddata';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.fielddata',
|
||||
pathParts: {
|
||||
fields: params.fields
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async health(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_cat/health';
|
||||
const meta = {
|
||||
name: 'cat.health'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async help(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_cat';
|
||||
const meta = {
|
||||
name: 'cat.help'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async indices(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.index != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/indices/${encodeURIComponent(params.index.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/indices';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.indices',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async master(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_cat/master';
|
||||
const meta = {
|
||||
name: 'cat.master'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async mlDataFrameAnalytics(params, options) {
|
||||
const acceptedPath = ['id'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.id != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/ml/data_frame/analytics/${encodeURIComponent(params.id.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/ml/data_frame/analytics';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.ml_data_frame_analytics',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async mlDatafeeds(params, options) {
|
||||
const acceptedPath = ['datafeed_id'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.datafeed_id != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/ml/datafeeds/${encodeURIComponent(params.datafeed_id.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/ml/datafeeds';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.ml_datafeeds',
|
||||
pathParts: {
|
||||
datafeed_id: params.datafeed_id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async mlJobs(params, options) {
|
||||
const acceptedPath = ['job_id'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.job_id != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/ml/anomaly_detectors';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.ml_jobs',
|
||||
pathParts: {
|
||||
job_id: params.job_id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async mlTrainedModels(params, options) {
|
||||
const acceptedPath = ['model_id'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.model_id != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/ml/trained_models/${encodeURIComponent(params.model_id.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/ml/trained_models';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.ml_trained_models',
|
||||
pathParts: {
|
||||
model_id: params.model_id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async nodeattrs(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_cat/nodeattrs';
|
||||
const meta = {
|
||||
name: 'cat.nodeattrs'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async nodes(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_cat/nodes';
|
||||
const meta = {
|
||||
name: 'cat.nodes'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async pendingTasks(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_cat/pending_tasks';
|
||||
const meta = {
|
||||
name: 'cat.pending_tasks'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async plugins(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_cat/plugins';
|
||||
const meta = {
|
||||
name: 'cat.plugins'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async recovery(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.index != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/recovery/${encodeURIComponent(params.index.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/recovery';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.recovery',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async repositories(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_cat/repositories';
|
||||
const meta = {
|
||||
name: 'cat.repositories'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async segments(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.index != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/segments/${encodeURIComponent(params.index.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/segments';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.segments',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async shards(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.index != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/shards/${encodeURIComponent(params.index.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/shards';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.shards',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async snapshots(params, options) {
|
||||
const acceptedPath = ['repository'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.repository != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/snapshots/${encodeURIComponent(params.repository.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/snapshots';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.snapshots',
|
||||
pathParts: {
|
||||
repository: params.repository
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async tasks(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_cat/tasks';
|
||||
const meta = {
|
||||
name: 'cat.tasks'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async templates(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.name != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/templates/${encodeURIComponent(params.name.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/templates';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.templates',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async threadPool(params, options) {
|
||||
const acceptedPath = ['thread_pool_patterns'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.thread_pool_patterns != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/thread_pool/${encodeURIComponent(params.thread_pool_patterns.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/thread_pool';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.thread_pool',
|
||||
pathParts: {
|
||||
thread_pool_patterns: params.thread_pool_patterns
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async transforms(params, options) {
|
||||
const acceptedPath = ['transform_id'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.transform_id != null) {
|
||||
method = 'GET';
|
||||
path = `/_cat/transforms/${encodeURIComponent(params.transform_id.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cat/transforms';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cat.transforms',
|
||||
pathParts: {
|
||||
transform_id: params.transform_id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
}
|
||||
exports.default = Cat;
|
||||
//# sourceMappingURL=cat.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/cat.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/cat.js.map
generated
vendored
Executable file
File diff suppressed because one or more lines are too long
102
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/ccr.d.ts
generated
vendored
Executable file
102
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/ccr.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,102 @@
|
|||
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 Ccr {
|
||||
transport: Transport;
|
||||
constructor(transport: Transport);
|
||||
/**
|
||||
* Deletes auto-follow patterns.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ccr-delete-auto-follow-pattern.html | Elasticsearch API documentation}
|
||||
*/
|
||||
deleteAutoFollowPattern(this: That, params: T.CcrDeleteAutoFollowPatternRequest | TB.CcrDeleteAutoFollowPatternRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CcrDeleteAutoFollowPatternResponse>;
|
||||
deleteAutoFollowPattern(this: That, params: T.CcrDeleteAutoFollowPatternRequest | TB.CcrDeleteAutoFollowPatternRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CcrDeleteAutoFollowPatternResponse, unknown>>;
|
||||
deleteAutoFollowPattern(this: That, params: T.CcrDeleteAutoFollowPatternRequest | TB.CcrDeleteAutoFollowPatternRequest, options?: TransportRequestOptions): Promise<T.CcrDeleteAutoFollowPatternResponse>;
|
||||
/**
|
||||
* Creates a new follower index configured to follow the referenced leader index.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ccr-put-follow.html | Elasticsearch API documentation}
|
||||
*/
|
||||
follow(this: That, params: T.CcrFollowRequest | TB.CcrFollowRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CcrFollowResponse>;
|
||||
follow(this: That, params: T.CcrFollowRequest | TB.CcrFollowRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CcrFollowResponse, unknown>>;
|
||||
follow(this: That, params: T.CcrFollowRequest | TB.CcrFollowRequest, options?: TransportRequestOptions): Promise<T.CcrFollowResponse>;
|
||||
/**
|
||||
* Retrieves information about all follower indices, including parameters and status for each follower index
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ccr-get-follow-info.html | Elasticsearch API documentation}
|
||||
*/
|
||||
followInfo(this: That, params: T.CcrFollowInfoRequest | TB.CcrFollowInfoRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CcrFollowInfoResponse>;
|
||||
followInfo(this: That, params: T.CcrFollowInfoRequest | TB.CcrFollowInfoRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CcrFollowInfoResponse, unknown>>;
|
||||
followInfo(this: That, params: T.CcrFollowInfoRequest | TB.CcrFollowInfoRequest, options?: TransportRequestOptions): Promise<T.CcrFollowInfoResponse>;
|
||||
/**
|
||||
* Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ccr-get-follow-stats.html | Elasticsearch API documentation}
|
||||
*/
|
||||
followStats(this: That, params: T.CcrFollowStatsRequest | TB.CcrFollowStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CcrFollowStatsResponse>;
|
||||
followStats(this: That, params: T.CcrFollowStatsRequest | TB.CcrFollowStatsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CcrFollowStatsResponse, unknown>>;
|
||||
followStats(this: That, params: T.CcrFollowStatsRequest | TB.CcrFollowStatsRequest, options?: TransportRequestOptions): Promise<T.CcrFollowStatsResponse>;
|
||||
/**
|
||||
* Removes the follower retention leases from the leader.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ccr-post-forget-follower.html | Elasticsearch API documentation}
|
||||
*/
|
||||
forgetFollower(this: That, params: T.CcrForgetFollowerRequest | TB.CcrForgetFollowerRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CcrForgetFollowerResponse>;
|
||||
forgetFollower(this: That, params: T.CcrForgetFollowerRequest | TB.CcrForgetFollowerRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CcrForgetFollowerResponse, unknown>>;
|
||||
forgetFollower(this: That, params: T.CcrForgetFollowerRequest | TB.CcrForgetFollowerRequest, options?: TransportRequestOptions): Promise<T.CcrForgetFollowerResponse>;
|
||||
/**
|
||||
* Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ccr-get-auto-follow-pattern.html | Elasticsearch API documentation}
|
||||
*/
|
||||
getAutoFollowPattern(this: That, params?: T.CcrGetAutoFollowPatternRequest | TB.CcrGetAutoFollowPatternRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CcrGetAutoFollowPatternResponse>;
|
||||
getAutoFollowPattern(this: That, params?: T.CcrGetAutoFollowPatternRequest | TB.CcrGetAutoFollowPatternRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CcrGetAutoFollowPatternResponse, unknown>>;
|
||||
getAutoFollowPattern(this: That, params?: T.CcrGetAutoFollowPatternRequest | TB.CcrGetAutoFollowPatternRequest, options?: TransportRequestOptions): Promise<T.CcrGetAutoFollowPatternResponse>;
|
||||
/**
|
||||
* Pauses an auto-follow pattern
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ccr-pause-auto-follow-pattern.html | Elasticsearch API documentation}
|
||||
*/
|
||||
pauseAutoFollowPattern(this: That, params: T.CcrPauseAutoFollowPatternRequest | TB.CcrPauseAutoFollowPatternRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CcrPauseAutoFollowPatternResponse>;
|
||||
pauseAutoFollowPattern(this: That, params: T.CcrPauseAutoFollowPatternRequest | TB.CcrPauseAutoFollowPatternRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CcrPauseAutoFollowPatternResponse, unknown>>;
|
||||
pauseAutoFollowPattern(this: That, params: T.CcrPauseAutoFollowPatternRequest | TB.CcrPauseAutoFollowPatternRequest, options?: TransportRequestOptions): Promise<T.CcrPauseAutoFollowPatternResponse>;
|
||||
/**
|
||||
* Pauses a follower index. The follower index will not fetch any additional operations from the leader index.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ccr-post-pause-follow.html | Elasticsearch API documentation}
|
||||
*/
|
||||
pauseFollow(this: That, params: T.CcrPauseFollowRequest | TB.CcrPauseFollowRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CcrPauseFollowResponse>;
|
||||
pauseFollow(this: That, params: T.CcrPauseFollowRequest | TB.CcrPauseFollowRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CcrPauseFollowResponse, unknown>>;
|
||||
pauseFollow(this: That, params: T.CcrPauseFollowRequest | TB.CcrPauseFollowRequest, options?: TransportRequestOptions): Promise<T.CcrPauseFollowResponse>;
|
||||
/**
|
||||
* Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ccr-put-auto-follow-pattern.html | Elasticsearch API documentation}
|
||||
*/
|
||||
putAutoFollowPattern(this: That, params: T.CcrPutAutoFollowPatternRequest | TB.CcrPutAutoFollowPatternRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CcrPutAutoFollowPatternResponse>;
|
||||
putAutoFollowPattern(this: That, params: T.CcrPutAutoFollowPatternRequest | TB.CcrPutAutoFollowPatternRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CcrPutAutoFollowPatternResponse, unknown>>;
|
||||
putAutoFollowPattern(this: That, params: T.CcrPutAutoFollowPatternRequest | TB.CcrPutAutoFollowPatternRequest, options?: TransportRequestOptions): Promise<T.CcrPutAutoFollowPatternResponse>;
|
||||
/**
|
||||
* Resumes an auto-follow pattern that has been paused
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ccr-resume-auto-follow-pattern.html | Elasticsearch API documentation}
|
||||
*/
|
||||
resumeAutoFollowPattern(this: That, params: T.CcrResumeAutoFollowPatternRequest | TB.CcrResumeAutoFollowPatternRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CcrResumeAutoFollowPatternResponse>;
|
||||
resumeAutoFollowPattern(this: That, params: T.CcrResumeAutoFollowPatternRequest | TB.CcrResumeAutoFollowPatternRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CcrResumeAutoFollowPatternResponse, unknown>>;
|
||||
resumeAutoFollowPattern(this: That, params: T.CcrResumeAutoFollowPatternRequest | TB.CcrResumeAutoFollowPatternRequest, options?: TransportRequestOptions): Promise<T.CcrResumeAutoFollowPatternResponse>;
|
||||
/**
|
||||
* Resumes a follower index that has been paused
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ccr-post-resume-follow.html | Elasticsearch API documentation}
|
||||
*/
|
||||
resumeFollow(this: That, params: T.CcrResumeFollowRequest | TB.CcrResumeFollowRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CcrResumeFollowResponse>;
|
||||
resumeFollow(this: That, params: T.CcrResumeFollowRequest | TB.CcrResumeFollowRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CcrResumeFollowResponse, unknown>>;
|
||||
resumeFollow(this: That, params: T.CcrResumeFollowRequest | TB.CcrResumeFollowRequest, options?: TransportRequestOptions): Promise<T.CcrResumeFollowResponse>;
|
||||
/**
|
||||
* Gets all stats related to cross-cluster replication.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ccr-get-stats.html | Elasticsearch API documentation}
|
||||
*/
|
||||
stats(this: That, params?: T.CcrStatsRequest | TB.CcrStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CcrStatsResponse>;
|
||||
stats(this: That, params?: T.CcrStatsRequest | TB.CcrStatsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CcrStatsResponse, unknown>>;
|
||||
stats(this: That, params?: T.CcrStatsRequest | TB.CcrStatsRequest, options?: TransportRequestOptions): Promise<T.CcrStatsResponse>;
|
||||
/**
|
||||
* Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ccr-post-unfollow.html | Elasticsearch API documentation}
|
||||
*/
|
||||
unfollow(this: That, params: T.CcrUnfollowRequest | TB.CcrUnfollowRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CcrUnfollowResponse>;
|
||||
unfollow(this: That, params: T.CcrUnfollowRequest | TB.CcrUnfollowRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CcrUnfollowResponse, unknown>>;
|
||||
unfollow(this: That, params: T.CcrUnfollowRequest | TB.CcrUnfollowRequest, options?: TransportRequestOptions): Promise<T.CcrUnfollowResponse>;
|
||||
}
|
||||
export {};
|
||||
395
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/ccr.js
generated
vendored
Executable file
395
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/ccr.js
generated
vendored
Executable file
|
|
@ -0,0 +1,395 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class Ccr {
|
||||
constructor(transport) {
|
||||
Object.defineProperty(this, "transport", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
this.transport = transport;
|
||||
}
|
||||
async deleteAutoFollowPattern(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
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 = 'DELETE';
|
||||
const path = `/_ccr/auto_follow/${encodeURIComponent(params.name.toString())}`;
|
||||
const meta = {
|
||||
name: 'ccr.delete_auto_follow_pattern',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async follow(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const acceptedBody = ['leader_index', 'max_outstanding_read_requests', 'max_outstanding_write_requests', 'max_read_request_operation_count', 'max_read_request_size', 'max_retry_delay', 'max_write_buffer_count', 'max_write_buffer_size', 'max_write_request_operation_count', 'max_write_request_size', 'read_poll_timeout', 'remote_cluster'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'PUT';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_ccr/follow`;
|
||||
const meta = {
|
||||
name: 'ccr.follow',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async followInfo(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 = 'GET';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_ccr/info`;
|
||||
const meta = {
|
||||
name: 'ccr.follow_info',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async followStats(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 = 'GET';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_ccr/stats`;
|
||||
const meta = {
|
||||
name: 'ccr.follow_stats',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async forgetFollower(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const acceptedBody = ['follower_cluster', 'follower_index', 'follower_index_uuid', 'leader_remote_cluster'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else 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())}/_ccr/forget_follower`;
|
||||
const meta = {
|
||||
name: 'ccr.forget_follower',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async getAutoFollowPattern(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.name != null) {
|
||||
method = 'GET';
|
||||
path = `/_ccr/auto_follow/${encodeURIComponent(params.name.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_ccr/auto_follow';
|
||||
}
|
||||
const meta = {
|
||||
name: 'ccr.get_auto_follow_pattern',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async pauseAutoFollowPattern(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
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 = `/_ccr/auto_follow/${encodeURIComponent(params.name.toString())}/pause`;
|
||||
const meta = {
|
||||
name: 'ccr.pause_auto_follow_pattern',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async pauseFollow(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())}/_ccr/pause_follow`;
|
||||
const meta = {
|
||||
name: 'ccr.pause_follow',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async putAutoFollowPattern(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
const acceptedBody = ['remote_cluster', 'follow_index_pattern', 'leader_index_patterns', 'leader_index_exclusion_patterns', 'max_outstanding_read_requests', 'settings', 'max_outstanding_write_requests', 'read_poll_timeout', 'max_read_request_operation_count', 'max_read_request_size', 'max_retry_delay', 'max_write_buffer_count', 'max_write_buffer_size', 'max_write_request_operation_count', 'max_write_request_size'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'PUT';
|
||||
const path = `/_ccr/auto_follow/${encodeURIComponent(params.name.toString())}`;
|
||||
const meta = {
|
||||
name: 'ccr.put_auto_follow_pattern',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async resumeAutoFollowPattern(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
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 = `/_ccr/auto_follow/${encodeURIComponent(params.name.toString())}/resume`;
|
||||
const meta = {
|
||||
name: 'ccr.resume_auto_follow_pattern',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async resumeFollow(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const acceptedBody = ['max_outstanding_read_requests', 'max_outstanding_write_requests', 'max_read_request_operation_count', 'max_read_request_size', 'max_retry_delay', 'max_write_buffer_count', 'max_write_buffer_size', 'max_write_request_operation_count', 'max_write_request_size', 'read_poll_timeout'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else 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())}/_ccr/resume_follow`;
|
||||
const meta = {
|
||||
name: 'ccr.resume_follow',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async stats(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_ccr/stats';
|
||||
const meta = {
|
||||
name: 'ccr.stats'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async unfollow(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())}/_ccr/unfollow`;
|
||||
const meta = {
|
||||
name: 'ccr.unfollow',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
}
|
||||
exports.default = Ccr;
|
||||
//# sourceMappingURL=ccr.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/ccr.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/ccr.js.map
generated
vendored
Executable file
File diff suppressed because one or more lines are too long
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/clear_scroll.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/clear_scroll.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Clears the search context and results for a scrolling search.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/clear-scroll-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function ClearScrollApi(this: That, params?: T.ClearScrollRequest | TB.ClearScrollRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClearScrollResponse>;
|
||||
export default function ClearScrollApi(this: That, params?: T.ClearScrollRequest | TB.ClearScrollRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClearScrollResponse, unknown>>;
|
||||
export default function ClearScrollApi(this: That, params?: T.ClearScrollRequest | TB.ClearScrollRequest, options?: TransportRequestOptions): Promise<T.ClearScrollResponse>;
|
||||
export {};
|
||||
60
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/clear_scroll.js
generated
vendored
Executable file
60
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/clear_scroll.js
generated
vendored
Executable file
|
|
@ -0,0 +1,60 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function ClearScrollApi(params, options) {
|
||||
const acceptedPath = [];
|
||||
const acceptedBody = ['scroll_id'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'DELETE';
|
||||
const path = '/_search/scroll';
|
||||
const meta = {
|
||||
name: 'clear_scroll',
|
||||
pathParts: {
|
||||
scroll_id: params.scroll_id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = ClearScrollApi;
|
||||
//# sourceMappingURL=clear_scroll.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/clear_scroll.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/clear_scroll.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"clear_scroll.js","sourceRoot":"","sources":["../../../src/api/api/clear_scroll.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,cAAc,CAAc,MAAqD,EAAE,OAAiC;IAChJ,MAAM,YAAY,GAAa,EAAE,CAAA;IACjC,MAAM,YAAY,GAAa,CAAC,WAAW,CAAC,CAAA;IAC5C,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,mBAAmB;IACnB,MAAM,QAAQ,GAAQ,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAA;IAClC,IAAI,IAAkC,CAAA;IACtC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAChC,IAAI,GAAG,QAAQ,CAAA;KAChB;SAAM;QACL,IAAI,GAAG,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;KACtD;IAED,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAA;IACrB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAA;YACjB,mBAAmB;YACnB,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SACxB;aAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACrC,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,QAAQ,CAAA;IACvB,MAAM,IAAI,GAAG,iBAAiB,CAAA;IAC9B,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE;YACT,SAAS,EAAE,MAAM,CAAC,SAAS;SAC5B;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AApCD,iCAoCC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/close_point_in_time.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/close_point_in_time.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Closes a point-in-time.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/point-in-time-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function ClosePointInTimeApi(this: That, params: T.ClosePointInTimeRequest | TB.ClosePointInTimeRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClosePointInTimeResponse>;
|
||||
export default function ClosePointInTimeApi(this: That, params: T.ClosePointInTimeRequest | TB.ClosePointInTimeRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClosePointInTimeResponse, unknown>>;
|
||||
export default function ClosePointInTimeApi(this: That, params: T.ClosePointInTimeRequest | TB.ClosePointInTimeRequest, options?: TransportRequestOptions): Promise<T.ClosePointInTimeResponse>;
|
||||
export {};
|
||||
56
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/close_point_in_time.js
generated
vendored
Executable file
56
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/close_point_in_time.js
generated
vendored
Executable file
|
|
@ -0,0 +1,56 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function ClosePointInTimeApi(params, options) {
|
||||
const acceptedPath = [];
|
||||
const acceptedBody = ['id'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'DELETE';
|
||||
const path = '/_pit';
|
||||
const meta = {
|
||||
name: 'close_point_in_time'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = ClosePointInTimeApi;
|
||||
//# sourceMappingURL=close_point_in_time.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/close_point_in_time.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/close_point_in_time.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"close_point_in_time.js","sourceRoot":"","sources":["../../../src/api/api/close_point_in_time.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,mBAAmB,CAAc,MAA8D,EAAE,OAAiC;IAC9J,MAAM,YAAY,GAAa,EAAE,CAAA;IACjC,MAAM,YAAY,GAAa,CAAC,IAAI,CAAC,CAAA;IACrC,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,mBAAmB;IACnB,MAAM,QAAQ,GAAQ,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAA;IAClC,IAAI,IAAkC,CAAA;IACtC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAChC,IAAI,GAAG,QAAQ,CAAA;KAChB;SAAM;QACL,IAAI,GAAG,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;KACtD;IAED,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAA;YACjB,mBAAmB;YACnB,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SACxB;aAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACrC,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,QAAQ,CAAA;IACvB,MAAM,IAAI,GAAG,OAAO,CAAA;IACpB,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,qBAAqB;KAC5B,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AAhCD,sCAgCC"}
|
||||
123
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/cluster.d.ts
generated
vendored
Executable file
123
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/cluster.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,123 @@
|
|||
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 Cluster {
|
||||
transport: Transport;
|
||||
constructor(transport: Transport);
|
||||
/**
|
||||
* Provides explanations for shard allocations in the cluster.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-allocation-explain.html | Elasticsearch API documentation}
|
||||
*/
|
||||
allocationExplain(this: That, params?: T.ClusterAllocationExplainRequest | TB.ClusterAllocationExplainRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterAllocationExplainResponse>;
|
||||
allocationExplain(this: That, params?: T.ClusterAllocationExplainRequest | TB.ClusterAllocationExplainRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterAllocationExplainResponse, unknown>>;
|
||||
allocationExplain(this: That, params?: T.ClusterAllocationExplainRequest | TB.ClusterAllocationExplainRequest, options?: TransportRequestOptions): Promise<T.ClusterAllocationExplainResponse>;
|
||||
/**
|
||||
* Deletes component templates. Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/indices-component-template.html | Elasticsearch API documentation}
|
||||
*/
|
||||
deleteComponentTemplate(this: That, params: T.ClusterDeleteComponentTemplateRequest | TB.ClusterDeleteComponentTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterDeleteComponentTemplateResponse>;
|
||||
deleteComponentTemplate(this: That, params: T.ClusterDeleteComponentTemplateRequest | TB.ClusterDeleteComponentTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterDeleteComponentTemplateResponse, unknown>>;
|
||||
deleteComponentTemplate(this: That, params: T.ClusterDeleteComponentTemplateRequest | TB.ClusterDeleteComponentTemplateRequest, options?: TransportRequestOptions): Promise<T.ClusterDeleteComponentTemplateResponse>;
|
||||
/**
|
||||
* Clears cluster voting config exclusions.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/voting-config-exclusions.html | Elasticsearch API documentation}
|
||||
*/
|
||||
deleteVotingConfigExclusions(this: That, params?: T.ClusterDeleteVotingConfigExclusionsRequest | TB.ClusterDeleteVotingConfigExclusionsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterDeleteVotingConfigExclusionsResponse>;
|
||||
deleteVotingConfigExclusions(this: That, params?: T.ClusterDeleteVotingConfigExclusionsRequest | TB.ClusterDeleteVotingConfigExclusionsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterDeleteVotingConfigExclusionsResponse, unknown>>;
|
||||
deleteVotingConfigExclusions(this: That, params?: T.ClusterDeleteVotingConfigExclusionsRequest | TB.ClusterDeleteVotingConfigExclusionsRequest, options?: TransportRequestOptions): Promise<T.ClusterDeleteVotingConfigExclusionsResponse>;
|
||||
/**
|
||||
* Returns information about whether a particular component template exist
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/indices-component-template.html | Elasticsearch API documentation}
|
||||
*/
|
||||
existsComponentTemplate(this: That, params: T.ClusterExistsComponentTemplateRequest | TB.ClusterExistsComponentTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterExistsComponentTemplateResponse>;
|
||||
existsComponentTemplate(this: That, params: T.ClusterExistsComponentTemplateRequest | TB.ClusterExistsComponentTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterExistsComponentTemplateResponse, unknown>>;
|
||||
existsComponentTemplate(this: That, params: T.ClusterExistsComponentTemplateRequest | TB.ClusterExistsComponentTemplateRequest, options?: TransportRequestOptions): Promise<T.ClusterExistsComponentTemplateResponse>;
|
||||
/**
|
||||
* Retrieves information about component templates.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/indices-component-template.html | Elasticsearch API documentation}
|
||||
*/
|
||||
getComponentTemplate(this: That, params?: T.ClusterGetComponentTemplateRequest | TB.ClusterGetComponentTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterGetComponentTemplateResponse>;
|
||||
getComponentTemplate(this: That, params?: T.ClusterGetComponentTemplateRequest | TB.ClusterGetComponentTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterGetComponentTemplateResponse, unknown>>;
|
||||
getComponentTemplate(this: That, params?: T.ClusterGetComponentTemplateRequest | TB.ClusterGetComponentTemplateRequest, options?: TransportRequestOptions): Promise<T.ClusterGetComponentTemplateResponse>;
|
||||
/**
|
||||
* Returns cluster-wide settings. By default, it returns only settings that have been explicitly defined.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-get-settings.html | Elasticsearch API documentation}
|
||||
*/
|
||||
getSettings(this: That, params?: T.ClusterGetSettingsRequest | TB.ClusterGetSettingsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterGetSettingsResponse>;
|
||||
getSettings(this: That, params?: T.ClusterGetSettingsRequest | TB.ClusterGetSettingsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterGetSettingsResponse, unknown>>;
|
||||
getSettings(this: That, params?: T.ClusterGetSettingsRequest | TB.ClusterGetSettingsRequest, options?: TransportRequestOptions): Promise<T.ClusterGetSettingsResponse>;
|
||||
/**
|
||||
* The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-health.html | Elasticsearch API documentation}
|
||||
*/
|
||||
health(this: That, params?: T.ClusterHealthRequest | TB.ClusterHealthRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterHealthResponse>;
|
||||
health(this: That, params?: T.ClusterHealthRequest | TB.ClusterHealthRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterHealthResponse, unknown>>;
|
||||
health(this: That, params?: T.ClusterHealthRequest | TB.ClusterHealthRequest, options?: TransportRequestOptions): Promise<T.ClusterHealthResponse>;
|
||||
/**
|
||||
* Returns different information about the cluster.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-info.html | Elasticsearch API documentation}
|
||||
*/
|
||||
info(this: That, params: T.ClusterInfoRequest | TB.ClusterInfoRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterInfoResponse>;
|
||||
info(this: That, params: T.ClusterInfoRequest | TB.ClusterInfoRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterInfoResponse, unknown>>;
|
||||
info(this: That, params: T.ClusterInfoRequest | TB.ClusterInfoRequest, options?: TransportRequestOptions): Promise<T.ClusterInfoResponse>;
|
||||
/**
|
||||
* Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. NOTE: This API returns a list of any pending updates to the cluster state. These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-pending.html | Elasticsearch API documentation}
|
||||
*/
|
||||
pendingTasks(this: That, params?: T.ClusterPendingTasksRequest | TB.ClusterPendingTasksRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterPendingTasksResponse>;
|
||||
pendingTasks(this: That, params?: T.ClusterPendingTasksRequest | TB.ClusterPendingTasksRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterPendingTasksResponse, unknown>>;
|
||||
pendingTasks(this: That, params?: T.ClusterPendingTasksRequest | TB.ClusterPendingTasksRequest, options?: TransportRequestOptions): Promise<T.ClusterPendingTasksResponse>;
|
||||
/**
|
||||
* Updates the cluster voting config exclusions by node ids or node names.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/voting-config-exclusions.html | Elasticsearch API documentation}
|
||||
*/
|
||||
postVotingConfigExclusions(this: That, params?: T.ClusterPostVotingConfigExclusionsRequest | TB.ClusterPostVotingConfigExclusionsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterPostVotingConfigExclusionsResponse>;
|
||||
postVotingConfigExclusions(this: That, params?: T.ClusterPostVotingConfigExclusionsRequest | TB.ClusterPostVotingConfigExclusionsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterPostVotingConfigExclusionsResponse, unknown>>;
|
||||
postVotingConfigExclusions(this: That, params?: T.ClusterPostVotingConfigExclusionsRequest | TB.ClusterPostVotingConfigExclusionsRequest, options?: TransportRequestOptions): Promise<T.ClusterPostVotingConfigExclusionsResponse>;
|
||||
/**
|
||||
* Creates or updates a component template. Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. An index template can be composed of multiple component templates. To use a component template, specify it in an index template’s `composed_of` list. Component templates are only applied to new data streams and indices as part of a matching index template. Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template. Component templates are only used during index creation. For data streams, this includes data stream creation and the creation of a stream’s backing indices. Changes to component templates do not affect existing indices, including a stream’s backing indices. You can use C-style `/* *\/` block comments in component templates. You can include comments anywhere in the request body except before the opening curly bracket.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/indices-component-template.html | Elasticsearch API documentation}
|
||||
*/
|
||||
putComponentTemplate(this: That, params: T.ClusterPutComponentTemplateRequest | TB.ClusterPutComponentTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterPutComponentTemplateResponse>;
|
||||
putComponentTemplate(this: That, params: T.ClusterPutComponentTemplateRequest | TB.ClusterPutComponentTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterPutComponentTemplateResponse, unknown>>;
|
||||
putComponentTemplate(this: That, params: T.ClusterPutComponentTemplateRequest | TB.ClusterPutComponentTemplateRequest, options?: TransportRequestOptions): Promise<T.ClusterPutComponentTemplateResponse>;
|
||||
/**
|
||||
* Updates the cluster settings.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-update-settings.html | Elasticsearch API documentation}
|
||||
*/
|
||||
putSettings(this: That, params?: T.ClusterPutSettingsRequest | TB.ClusterPutSettingsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterPutSettingsResponse>;
|
||||
putSettings(this: That, params?: T.ClusterPutSettingsRequest | TB.ClusterPutSettingsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterPutSettingsResponse, unknown>>;
|
||||
putSettings(this: That, params?: T.ClusterPutSettingsRequest | TB.ClusterPutSettingsRequest, options?: TransportRequestOptions): Promise<T.ClusterPutSettingsResponse>;
|
||||
/**
|
||||
* The cluster remote info API allows you to retrieve all of the configured remote cluster information. It returns connection and endpoint information keyed by the configured remote cluster alias.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-remote-info.html | Elasticsearch API documentation}
|
||||
*/
|
||||
remoteInfo(this: That, params?: T.ClusterRemoteInfoRequest | TB.ClusterRemoteInfoRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterRemoteInfoResponse>;
|
||||
remoteInfo(this: That, params?: T.ClusterRemoteInfoRequest | TB.ClusterRemoteInfoRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterRemoteInfoResponse, unknown>>;
|
||||
remoteInfo(this: That, params?: T.ClusterRemoteInfoRequest | TB.ClusterRemoteInfoRequest, options?: TransportRequestOptions): Promise<T.ClusterRemoteInfoResponse>;
|
||||
/**
|
||||
* Allows to manually change the allocation of individual shards in the cluster.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-reroute.html | Elasticsearch API documentation}
|
||||
*/
|
||||
reroute(this: That, params?: T.ClusterRerouteRequest | TB.ClusterRerouteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterRerouteResponse>;
|
||||
reroute(this: That, params?: T.ClusterRerouteRequest | TB.ClusterRerouteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterRerouteResponse, unknown>>;
|
||||
reroute(this: That, params?: T.ClusterRerouteRequest | TB.ClusterRerouteRequest, options?: TransportRequestOptions): Promise<T.ClusterRerouteResponse>;
|
||||
/**
|
||||
* Returns a comprehensive information about the state of the cluster.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-state.html | Elasticsearch API documentation}
|
||||
*/
|
||||
state(this: That, params?: T.ClusterStateRequest | TB.ClusterStateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterStateResponse>;
|
||||
state(this: That, params?: T.ClusterStateRequest | TB.ClusterStateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterStateResponse, unknown>>;
|
||||
state(this: That, params?: T.ClusterStateRequest | TB.ClusterStateRequest, options?: TransportRequestOptions): Promise<T.ClusterStateResponse>;
|
||||
/**
|
||||
* Returns cluster statistics. It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins).
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-stats.html | Elasticsearch API documentation}
|
||||
*/
|
||||
stats(this: That, params?: T.ClusterStatsRequest | TB.ClusterStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterStatsResponse>;
|
||||
stats(this: That, params?: T.ClusterStatsRequest | TB.ClusterStatsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ClusterStatsResponse, unknown>>;
|
||||
stats(this: That, params?: T.ClusterStatsRequest | TB.ClusterStatsRequest, options?: TransportRequestOptions): Promise<T.ClusterStatsResponse>;
|
||||
}
|
||||
export {};
|
||||
482
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/cluster.js
generated
vendored
Executable file
482
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/cluster.js
generated
vendored
Executable file
|
|
@ -0,0 +1,482 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class Cluster {
|
||||
constructor(transport) {
|
||||
Object.defineProperty(this, "transport", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
this.transport = transport;
|
||||
}
|
||||
async allocationExplain(params, options) {
|
||||
const acceptedPath = [];
|
||||
const acceptedBody = ['current_node', 'index', 'primary', 'shard'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = body != null ? 'POST' : 'GET';
|
||||
const path = '/_cluster/allocation/explain';
|
||||
const meta = {
|
||||
name: 'cluster.allocation_explain'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async deleteComponentTemplate(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
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 = 'DELETE';
|
||||
const path = `/_component_template/${encodeURIComponent(params.name.toString())}`;
|
||||
const meta = {
|
||||
name: 'cluster.delete_component_template',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async deleteVotingConfigExclusions(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'DELETE';
|
||||
const path = '/_cluster/voting_config_exclusions';
|
||||
const meta = {
|
||||
name: 'cluster.delete_voting_config_exclusions'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async existsComponentTemplate(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
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 = 'HEAD';
|
||||
const path = `/_component_template/${encodeURIComponent(params.name.toString())}`;
|
||||
const meta = {
|
||||
name: 'cluster.exists_component_template',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async getComponentTemplate(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.name != null) {
|
||||
method = 'GET';
|
||||
path = `/_component_template/${encodeURIComponent(params.name.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_component_template';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cluster.get_component_template',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async getSettings(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_cluster/settings';
|
||||
const meta = {
|
||||
name: 'cluster.get_settings'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async health(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.index != null) {
|
||||
method = 'GET';
|
||||
path = `/_cluster/health/${encodeURIComponent(params.index.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cluster/health';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cluster.health',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async info(params, options) {
|
||||
const acceptedPath = ['target'];
|
||||
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 = 'GET';
|
||||
const path = `/_info/${encodeURIComponent(params.target.toString())}`;
|
||||
const meta = {
|
||||
name: 'cluster.info',
|
||||
pathParts: {
|
||||
target: params.target
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async pendingTasks(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_cluster/pending_tasks';
|
||||
const meta = {
|
||||
name: 'cluster.pending_tasks'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async postVotingConfigExclusions(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
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 = '/_cluster/voting_config_exclusions';
|
||||
const meta = {
|
||||
name: 'cluster.post_voting_config_exclusions'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async putComponentTemplate(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
const acceptedBody = ['template', 'version', '_meta', 'deprecated'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'PUT';
|
||||
const path = `/_component_template/${encodeURIComponent(params.name.toString())}`;
|
||||
const meta = {
|
||||
name: 'cluster.put_component_template',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async putSettings(params, options) {
|
||||
const acceptedPath = [];
|
||||
const acceptedBody = ['persistent', 'transient'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'PUT';
|
||||
const path = '/_cluster/settings';
|
||||
const meta = {
|
||||
name: 'cluster.put_settings'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async remoteInfo(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_remote/info';
|
||||
const meta = {
|
||||
name: 'cluster.remote_info'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async reroute(params, options) {
|
||||
const acceptedPath = [];
|
||||
const acceptedBody = ['commands'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'POST';
|
||||
const path = '/_cluster/reroute';
|
||||
const meta = {
|
||||
name: 'cluster.reroute'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async state(params, options) {
|
||||
const acceptedPath = ['metric', 'index'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.metric != null && params.index != null) {
|
||||
method = 'GET';
|
||||
path = `/_cluster/state/${encodeURIComponent(params.metric.toString())}/${encodeURIComponent(params.index.toString())}`;
|
||||
}
|
||||
else if (params.metric != null) {
|
||||
method = 'GET';
|
||||
path = `/_cluster/state/${encodeURIComponent(params.metric.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cluster/state';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cluster.state',
|
||||
pathParts: {
|
||||
metric: params.metric,
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async stats(params, options) {
|
||||
const acceptedPath = ['node_id'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.node_id != null) {
|
||||
method = 'GET';
|
||||
path = `/_cluster/stats/nodes/${encodeURIComponent(params.node_id.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_cluster/stats';
|
||||
}
|
||||
const meta = {
|
||||
name: 'cluster.stats',
|
||||
pathParts: {
|
||||
node_id: params.node_id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
}
|
||||
exports.default = Cluster;
|
||||
//# sourceMappingURL=cluster.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/cluster.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/cluster.js.map
generated
vendored
Executable file
File diff suppressed because one or more lines are too long
245
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/connector.d.ts
generated
vendored
Executable file
245
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/connector.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,245 @@
|
|||
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 Connector {
|
||||
transport: Transport;
|
||||
constructor(transport: Transport);
|
||||
/**
|
||||
* Updates the last_seen field in the connector, and sets it to current timestamp
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/check-in-connector-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
checkIn(this: That, params: T.ConnectorCheckInRequest | TB.ConnectorCheckInRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorCheckInResponse>;
|
||||
checkIn(this: That, params: T.ConnectorCheckInRequest | TB.ConnectorCheckInRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorCheckInResponse, unknown>>;
|
||||
checkIn(this: That, params: T.ConnectorCheckInRequest | TB.ConnectorCheckInRequest, options?: TransportRequestOptions): Promise<T.ConnectorCheckInResponse>;
|
||||
/**
|
||||
* Deletes a connector.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/delete-connector-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
delete(this: That, params: T.ConnectorDeleteRequest | TB.ConnectorDeleteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorDeleteResponse>;
|
||||
delete(this: That, params: T.ConnectorDeleteRequest | TB.ConnectorDeleteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorDeleteResponse, unknown>>;
|
||||
delete(this: That, params: T.ConnectorDeleteRequest | TB.ConnectorDeleteRequest, options?: TransportRequestOptions): Promise<T.ConnectorDeleteResponse>;
|
||||
/**
|
||||
* Retrieves a connector.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-connector-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
get(this: That, params: T.ConnectorGetRequest | TB.ConnectorGetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorGetResponse>;
|
||||
get(this: That, params: T.ConnectorGetRequest | TB.ConnectorGetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorGetResponse, unknown>>;
|
||||
get(this: That, params: T.ConnectorGetRequest | TB.ConnectorGetRequest, options?: TransportRequestOptions): Promise<T.ConnectorGetResponse>;
|
||||
/**
|
||||
* Updates last sync stats in the connector document
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-last-sync-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
lastSync(this: That, params: T.ConnectorLastSyncRequest | TB.ConnectorLastSyncRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorLastSyncResponse>;
|
||||
lastSync(this: That, params: T.ConnectorLastSyncRequest | TB.ConnectorLastSyncRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorLastSyncResponse, unknown>>;
|
||||
lastSync(this: That, params: T.ConnectorLastSyncRequest | TB.ConnectorLastSyncRequest, options?: TransportRequestOptions): Promise<T.ConnectorLastSyncResponse>;
|
||||
/**
|
||||
* Returns existing connectors.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/list-connector-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
list(this: That, params?: T.ConnectorListRequest | TB.ConnectorListRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorListResponse>;
|
||||
list(this: That, params?: T.ConnectorListRequest | TB.ConnectorListRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorListResponse, unknown>>;
|
||||
list(this: That, params?: T.ConnectorListRequest | TB.ConnectorListRequest, options?: TransportRequestOptions): Promise<T.ConnectorListResponse>;
|
||||
/**
|
||||
* Creates a connector.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/create-connector-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
post(this: That, params?: T.ConnectorPostRequest | TB.ConnectorPostRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorPostResponse>;
|
||||
post(this: That, params?: T.ConnectorPostRequest | TB.ConnectorPostRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorPostResponse, unknown>>;
|
||||
post(this: That, params?: T.ConnectorPostRequest | TB.ConnectorPostRequest, options?: TransportRequestOptions): Promise<T.ConnectorPostResponse>;
|
||||
/**
|
||||
* Creates or updates a connector.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/create-connector-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
put(this: That, params?: T.ConnectorPutRequest | TB.ConnectorPutRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorPutResponse>;
|
||||
put(this: That, params?: T.ConnectorPutRequest | TB.ConnectorPutRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorPutResponse, unknown>>;
|
||||
put(this: That, params?: T.ConnectorPutRequest | TB.ConnectorPutRequest, options?: TransportRequestOptions): Promise<T.ConnectorPutResponse>;
|
||||
/**
|
||||
* Deletes a connector secret.
|
||||
*/
|
||||
secretDelete(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
secretDelete(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
secretDelete(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* Retrieves a secret stored by Connectors.
|
||||
*/
|
||||
secretGet(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
secretGet(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
secretGet(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* Creates a secret for a Connector.
|
||||
*/
|
||||
secretPost(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
secretPost(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
secretPost(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* Creates or updates a secret for a Connector.
|
||||
*/
|
||||
secretPut(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
secretPut(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
secretPut(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* Cancels a connector sync job.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cancel-connector-sync-job-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
syncJobCancel(this: That, params: T.ConnectorSyncJobCancelRequest | TB.ConnectorSyncJobCancelRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorSyncJobCancelResponse>;
|
||||
syncJobCancel(this: That, params: T.ConnectorSyncJobCancelRequest | TB.ConnectorSyncJobCancelRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorSyncJobCancelResponse, unknown>>;
|
||||
syncJobCancel(this: That, params: T.ConnectorSyncJobCancelRequest | TB.ConnectorSyncJobCancelRequest, options?: TransportRequestOptions): Promise<T.ConnectorSyncJobCancelResponse>;
|
||||
/**
|
||||
* Checks in a connector sync job (refreshes 'last_seen').
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/check-in-connector-sync-job-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
syncJobCheckIn(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
syncJobCheckIn(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
syncJobCheckIn(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* Claims a connector sync job.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/claim-connector-sync-job-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
syncJobClaim(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
syncJobClaim(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
syncJobClaim(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* Deletes a connector sync job.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/delete-connector-sync-job-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
syncJobDelete(this: That, params: T.ConnectorSyncJobDeleteRequest | TB.ConnectorSyncJobDeleteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorSyncJobDeleteResponse>;
|
||||
syncJobDelete(this: That, params: T.ConnectorSyncJobDeleteRequest | TB.ConnectorSyncJobDeleteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorSyncJobDeleteResponse, unknown>>;
|
||||
syncJobDelete(this: That, params: T.ConnectorSyncJobDeleteRequest | TB.ConnectorSyncJobDeleteRequest, options?: TransportRequestOptions): Promise<T.ConnectorSyncJobDeleteResponse>;
|
||||
/**
|
||||
* Sets an error for a connector sync job.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/set-connector-sync-job-error-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
syncJobError(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
syncJobError(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
syncJobError(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* Retrieves a connector sync job.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-connector-sync-job-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
syncJobGet(this: That, params: T.ConnectorSyncJobGetRequest | TB.ConnectorSyncJobGetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorSyncJobGetResponse>;
|
||||
syncJobGet(this: That, params: T.ConnectorSyncJobGetRequest | TB.ConnectorSyncJobGetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorSyncJobGetResponse, unknown>>;
|
||||
syncJobGet(this: That, params: T.ConnectorSyncJobGetRequest | TB.ConnectorSyncJobGetRequest, options?: TransportRequestOptions): Promise<T.ConnectorSyncJobGetResponse>;
|
||||
/**
|
||||
* Lists connector sync jobs.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/list-connector-sync-jobs-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
syncJobList(this: That, params?: T.ConnectorSyncJobListRequest | TB.ConnectorSyncJobListRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorSyncJobListResponse>;
|
||||
syncJobList(this: That, params?: T.ConnectorSyncJobListRequest | TB.ConnectorSyncJobListRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorSyncJobListResponse, unknown>>;
|
||||
syncJobList(this: That, params?: T.ConnectorSyncJobListRequest | TB.ConnectorSyncJobListRequest, options?: TransportRequestOptions): Promise<T.ConnectorSyncJobListResponse>;
|
||||
/**
|
||||
* Creates a connector sync job.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/create-connector-sync-job-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
syncJobPost(this: That, params: T.ConnectorSyncJobPostRequest | TB.ConnectorSyncJobPostRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorSyncJobPostResponse>;
|
||||
syncJobPost(this: That, params: T.ConnectorSyncJobPostRequest | TB.ConnectorSyncJobPostRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorSyncJobPostResponse, unknown>>;
|
||||
syncJobPost(this: That, params: T.ConnectorSyncJobPostRequest | TB.ConnectorSyncJobPostRequest, options?: TransportRequestOptions): Promise<T.ConnectorSyncJobPostResponse>;
|
||||
/**
|
||||
* Updates the stats fields in the connector sync job document.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/set-connector-sync-job-stats-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
syncJobUpdateStats(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
syncJobUpdateStats(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
syncJobUpdateStats(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* Activates the valid draft filtering for a connector.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-filtering-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updateActiveFiltering(this: That, params: T.ConnectorUpdateActiveFilteringRequest | TB.ConnectorUpdateActiveFilteringRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorUpdateActiveFilteringResponse>;
|
||||
updateActiveFiltering(this: That, params: T.ConnectorUpdateActiveFilteringRequest | TB.ConnectorUpdateActiveFilteringRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorUpdateActiveFilteringResponse, unknown>>;
|
||||
updateActiveFiltering(this: That, params: T.ConnectorUpdateActiveFilteringRequest | TB.ConnectorUpdateActiveFilteringRequest, options?: TransportRequestOptions): Promise<T.ConnectorUpdateActiveFilteringResponse>;
|
||||
/**
|
||||
* Updates the API key id in the connector document
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-api-key-id-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updateApiKeyId(this: That, params: T.ConnectorUpdateApiKeyIdRequest | TB.ConnectorUpdateApiKeyIdRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorUpdateApiKeyIdResponse>;
|
||||
updateApiKeyId(this: That, params: T.ConnectorUpdateApiKeyIdRequest | TB.ConnectorUpdateApiKeyIdRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorUpdateApiKeyIdResponse, unknown>>;
|
||||
updateApiKeyId(this: That, params: T.ConnectorUpdateApiKeyIdRequest | TB.ConnectorUpdateApiKeyIdRequest, options?: TransportRequestOptions): Promise<T.ConnectorUpdateApiKeyIdResponse>;
|
||||
/**
|
||||
* Updates the configuration field in the connector document
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-configuration-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updateConfiguration(this: That, params: T.ConnectorUpdateConfigurationRequest | TB.ConnectorUpdateConfigurationRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorUpdateConfigurationResponse>;
|
||||
updateConfiguration(this: That, params: T.ConnectorUpdateConfigurationRequest | TB.ConnectorUpdateConfigurationRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorUpdateConfigurationResponse, unknown>>;
|
||||
updateConfiguration(this: That, params: T.ConnectorUpdateConfigurationRequest | TB.ConnectorUpdateConfigurationRequest, options?: TransportRequestOptions): Promise<T.ConnectorUpdateConfigurationResponse>;
|
||||
/**
|
||||
* Updates the filtering field in the connector document
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-error-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updateError(this: That, params: T.ConnectorUpdateErrorRequest | TB.ConnectorUpdateErrorRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorUpdateErrorResponse>;
|
||||
updateError(this: That, params: T.ConnectorUpdateErrorRequest | TB.ConnectorUpdateErrorRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorUpdateErrorResponse, unknown>>;
|
||||
updateError(this: That, params: T.ConnectorUpdateErrorRequest | TB.ConnectorUpdateErrorRequest, options?: TransportRequestOptions): Promise<T.ConnectorUpdateErrorResponse>;
|
||||
/**
|
||||
* Updates the connector features in the connector document.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-features-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updateFeatures(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
updateFeatures(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
updateFeatures(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* Updates the filtering field in the connector document
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-filtering-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updateFiltering(this: That, params: T.ConnectorUpdateFilteringRequest | TB.ConnectorUpdateFilteringRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorUpdateFilteringResponse>;
|
||||
updateFiltering(this: That, params: T.ConnectorUpdateFilteringRequest | TB.ConnectorUpdateFilteringRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorUpdateFilteringResponse, unknown>>;
|
||||
updateFiltering(this: That, params: T.ConnectorUpdateFilteringRequest | TB.ConnectorUpdateFilteringRequest, options?: TransportRequestOptions): Promise<T.ConnectorUpdateFilteringResponse>;
|
||||
/**
|
||||
* Updates the draft filtering validation info for a connector.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-filtering-validation-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updateFilteringValidation(this: That, params: T.ConnectorUpdateFilteringValidationRequest | TB.ConnectorUpdateFilteringValidationRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorUpdateFilteringValidationResponse>;
|
||||
updateFilteringValidation(this: That, params: T.ConnectorUpdateFilteringValidationRequest | TB.ConnectorUpdateFilteringValidationRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorUpdateFilteringValidationResponse, unknown>>;
|
||||
updateFilteringValidation(this: That, params: T.ConnectorUpdateFilteringValidationRequest | TB.ConnectorUpdateFilteringValidationRequest, options?: TransportRequestOptions): Promise<T.ConnectorUpdateFilteringValidationResponse>;
|
||||
/**
|
||||
* Updates the index_name in the connector document
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-index-name-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updateIndexName(this: That, params: T.ConnectorUpdateIndexNameRequest | TB.ConnectorUpdateIndexNameRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorUpdateIndexNameResponse>;
|
||||
updateIndexName(this: That, params: T.ConnectorUpdateIndexNameRequest | TB.ConnectorUpdateIndexNameRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorUpdateIndexNameResponse, unknown>>;
|
||||
updateIndexName(this: That, params: T.ConnectorUpdateIndexNameRequest | TB.ConnectorUpdateIndexNameRequest, options?: TransportRequestOptions): Promise<T.ConnectorUpdateIndexNameResponse>;
|
||||
/**
|
||||
* Updates the name and description fields in the connector document
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-name-description-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updateName(this: That, params: T.ConnectorUpdateNameRequest | TB.ConnectorUpdateNameRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorUpdateNameResponse>;
|
||||
updateName(this: That, params: T.ConnectorUpdateNameRequest | TB.ConnectorUpdateNameRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorUpdateNameResponse, unknown>>;
|
||||
updateName(this: That, params: T.ConnectorUpdateNameRequest | TB.ConnectorUpdateNameRequest, options?: TransportRequestOptions): Promise<T.ConnectorUpdateNameResponse>;
|
||||
/**
|
||||
* Updates the is_native flag in the connector document
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-native-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updateNative(this: That, params: T.ConnectorUpdateNativeRequest | TB.ConnectorUpdateNativeRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorUpdateNativeResponse>;
|
||||
updateNative(this: That, params: T.ConnectorUpdateNativeRequest | TB.ConnectorUpdateNativeRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorUpdateNativeResponse, unknown>>;
|
||||
updateNative(this: That, params: T.ConnectorUpdateNativeRequest | TB.ConnectorUpdateNativeRequest, options?: TransportRequestOptions): Promise<T.ConnectorUpdateNativeResponse>;
|
||||
/**
|
||||
* Updates the pipeline field in the connector document
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-pipeline-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updatePipeline(this: That, params: T.ConnectorUpdatePipelineRequest | TB.ConnectorUpdatePipelineRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorUpdatePipelineResponse>;
|
||||
updatePipeline(this: That, params: T.ConnectorUpdatePipelineRequest | TB.ConnectorUpdatePipelineRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorUpdatePipelineResponse, unknown>>;
|
||||
updatePipeline(this: That, params: T.ConnectorUpdatePipelineRequest | TB.ConnectorUpdatePipelineRequest, options?: TransportRequestOptions): Promise<T.ConnectorUpdatePipelineResponse>;
|
||||
/**
|
||||
* Updates the scheduling field in the connector document
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-scheduling-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updateScheduling(this: That, params: T.ConnectorUpdateSchedulingRequest | TB.ConnectorUpdateSchedulingRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorUpdateSchedulingResponse>;
|
||||
updateScheduling(this: That, params: T.ConnectorUpdateSchedulingRequest | TB.ConnectorUpdateSchedulingRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorUpdateSchedulingResponse, unknown>>;
|
||||
updateScheduling(this: That, params: T.ConnectorUpdateSchedulingRequest | TB.ConnectorUpdateSchedulingRequest, options?: TransportRequestOptions): Promise<T.ConnectorUpdateSchedulingResponse>;
|
||||
/**
|
||||
* Updates the service type of the connector
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-service-type-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updateServiceType(this: That, params: T.ConnectorUpdateServiceTypeRequest | TB.ConnectorUpdateServiceTypeRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorUpdateServiceTypeResponse>;
|
||||
updateServiceType(this: That, params: T.ConnectorUpdateServiceTypeRequest | TB.ConnectorUpdateServiceTypeRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorUpdateServiceTypeResponse, unknown>>;
|
||||
updateServiceType(this: That, params: T.ConnectorUpdateServiceTypeRequest | TB.ConnectorUpdateServiceTypeRequest, options?: TransportRequestOptions): Promise<T.ConnectorUpdateServiceTypeResponse>;
|
||||
/**
|
||||
* Updates the status of the connector
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/update-connector-status-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
updateStatus(this: That, params: T.ConnectorUpdateStatusRequest | TB.ConnectorUpdateStatusRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ConnectorUpdateStatusResponse>;
|
||||
updateStatus(this: That, params: T.ConnectorUpdateStatusRequest | TB.ConnectorUpdateStatusRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ConnectorUpdateStatusResponse, unknown>>;
|
||||
updateStatus(this: That, params: T.ConnectorUpdateStatusRequest | TB.ConnectorUpdateStatusRequest, options?: TransportRequestOptions): Promise<T.ConnectorUpdateStatusResponse>;
|
||||
}
|
||||
export {};
|
||||
1036
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/connector.js
generated
vendored
Executable file
1036
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/connector.js
generated
vendored
Executable file
File diff suppressed because it is too large
Load diff
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/connector.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/connector.js.map
generated
vendored
Executable file
File diff suppressed because one or more lines are too long
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/count.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/count.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Returns number of documents matching a query.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/search-count.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function CountApi(this: That, params?: T.CountRequest | TB.CountRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CountResponse>;
|
||||
export default function CountApi(this: That, params?: T.CountRequest | TB.CountRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CountResponse, unknown>>;
|
||||
export default function CountApi(this: That, params?: T.CountRequest | TB.CountRequest, options?: TransportRequestOptions): Promise<T.CountResponse>;
|
||||
export {};
|
||||
68
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/count.js
generated
vendored
Executable file
68
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/count.js
generated
vendored
Executable file
|
|
@ -0,0 +1,68 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function CountApi(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const acceptedBody = ['query'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.index != null) {
|
||||
method = body != null ? 'POST' : 'GET';
|
||||
path = `/${encodeURIComponent(params.index.toString())}/_count`;
|
||||
}
|
||||
else {
|
||||
method = body != null ? 'POST' : 'GET';
|
||||
path = '/_count';
|
||||
}
|
||||
const meta = {
|
||||
name: 'count',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = CountApi;
|
||||
//# sourceMappingURL=count.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/count.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/count.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"count.js","sourceRoot":"","sources":["../../../src/api/api/count.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,QAAQ,CAAc,MAAyC,EAAE,OAAiC;IAC9H,MAAM,YAAY,GAAa,CAAC,OAAO,CAAC,CAAA;IACxC,MAAM,YAAY,GAAa,CAAC,OAAO,CAAC,CAAA;IACxC,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,mBAAmB;IACnB,MAAM,QAAQ,GAAQ,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAA;IAClC,IAAI,IAAkC,CAAA;IACtC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAChC,IAAI,GAAG,QAAQ,CAAA;KAChB;SAAM;QACL,IAAI,GAAG,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;KACtD;IAED,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAA;IACrB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAA;YACjB,mBAAmB;YACnB,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SACxB;aAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACrC,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,IAAI,IAAI,GAAG,EAAE,CAAA;IACb,IAAI,MAAM,CAAC,KAAK,IAAI,IAAI,EAAE;QACxB,MAAM,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAA;QACtC,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAA;KAChE;SAAM;QACL,MAAM,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAA;QACtC,IAAI,GAAG,SAAS,CAAA;KACjB;IACD,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,OAAO;QACb,SAAS,EAAE;YACT,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AA3CD,2BA2CC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/create.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/create.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Adds a JSON document to the specified data stream or index and makes it searchable. If the target is an index and the document already exists, the request updates the document and increments its version.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/docs-index_.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function CreateApi<TDocument = unknown>(this: That, params: T.CreateRequest<TDocument> | TB.CreateRequest<TDocument>, options?: TransportRequestOptionsWithOutMeta): Promise<T.CreateResponse>;
|
||||
export default function CreateApi<TDocument = unknown>(this: That, params: T.CreateRequest<TDocument> | TB.CreateRequest<TDocument>, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CreateResponse, unknown>>;
|
||||
export default function CreateApi<TDocument = unknown>(this: That, params: T.CreateRequest<TDocument> | TB.CreateRequest<TDocument>, options?: TransportRequestOptions): Promise<T.CreateResponse>;
|
||||
export {};
|
||||
53
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/create.js
generated
vendored
Executable file
53
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/create.js
generated
vendored
Executable file
|
|
@ -0,0 +1,53 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function CreateApi(params, options) {
|
||||
var _a;
|
||||
const acceptedPath = ['id', 'index'];
|
||||
const acceptedBody = ['document'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
let body = (_a = params.body) !== null && _a !== void 0 ? _a : undefined;
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
// @ts-expect-error
|
||||
body = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'PUT';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_create/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'create',
|
||||
pathParts: {
|
||||
id: params.id,
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = CreateApi;
|
||||
//# sourceMappingURL=create.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/create.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/create.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/api/api/create.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,SAAS,CAAmC,MAAgE,EAAE,OAAiC;;IAC3K,MAAM,YAAY,GAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9C,MAAM,YAAY,GAAa,CAAC,UAAU,CAAC,CAAA;IAC3C,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,mBAAmB;IACnB,IAAI,IAAI,GAAQ,MAAA,MAAM,CAAC,IAAI,mCAAI,SAAS,CAAA;IAExC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,mBAAmB;YACnB,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SACnB;aAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACrC,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,KAAK,CAAA;IACpB,MAAM,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,YAAY,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;IAClH,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE;YACT,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AA7BD,4BA6BC"}
|
||||
32
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/dangling_indices.d.ts
generated
vendored
Executable file
32
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/dangling_indices.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
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 DanglingIndices {
|
||||
transport: Transport;
|
||||
constructor(transport: Transport);
|
||||
/**
|
||||
* Deletes the specified dangling index
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/modules-gateway-dangling-indices.html | Elasticsearch API documentation}
|
||||
*/
|
||||
deleteDanglingIndex(this: That, params: T.DanglingIndicesDeleteDanglingIndexRequest | TB.DanglingIndicesDeleteDanglingIndexRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DanglingIndicesDeleteDanglingIndexResponse>;
|
||||
deleteDanglingIndex(this: That, params: T.DanglingIndicesDeleteDanglingIndexRequest | TB.DanglingIndicesDeleteDanglingIndexRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DanglingIndicesDeleteDanglingIndexResponse, unknown>>;
|
||||
deleteDanglingIndex(this: That, params: T.DanglingIndicesDeleteDanglingIndexRequest | TB.DanglingIndicesDeleteDanglingIndexRequest, options?: TransportRequestOptions): Promise<T.DanglingIndicesDeleteDanglingIndexResponse>;
|
||||
/**
|
||||
* Imports the specified dangling index
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/modules-gateway-dangling-indices.html | Elasticsearch API documentation}
|
||||
*/
|
||||
importDanglingIndex(this: That, params: T.DanglingIndicesImportDanglingIndexRequest | TB.DanglingIndicesImportDanglingIndexRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DanglingIndicesImportDanglingIndexResponse>;
|
||||
importDanglingIndex(this: That, params: T.DanglingIndicesImportDanglingIndexRequest | TB.DanglingIndicesImportDanglingIndexRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DanglingIndicesImportDanglingIndexResponse, unknown>>;
|
||||
importDanglingIndex(this: That, params: T.DanglingIndicesImportDanglingIndexRequest | TB.DanglingIndicesImportDanglingIndexRequest, options?: TransportRequestOptions): Promise<T.DanglingIndicesImportDanglingIndexResponse>;
|
||||
/**
|
||||
* Returns all dangling indices.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/modules-gateway-dangling-indices.html | Elasticsearch API documentation}
|
||||
*/
|
||||
listDanglingIndices(this: That, params?: T.DanglingIndicesListDanglingIndicesRequest | TB.DanglingIndicesListDanglingIndicesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DanglingIndicesListDanglingIndicesResponse>;
|
||||
listDanglingIndices(this: That, params?: T.DanglingIndicesListDanglingIndicesRequest | TB.DanglingIndicesListDanglingIndicesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DanglingIndicesListDanglingIndicesResponse, unknown>>;
|
||||
listDanglingIndices(this: That, params?: T.DanglingIndicesListDanglingIndicesRequest | TB.DanglingIndicesListDanglingIndicesRequest, options?: TransportRequestOptions): Promise<T.DanglingIndicesListDanglingIndicesResponse>;
|
||||
}
|
||||
export {};
|
||||
100
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/dangling_indices.js
generated
vendored
Executable file
100
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/dangling_indices.js
generated
vendored
Executable file
|
|
@ -0,0 +1,100 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class DanglingIndices {
|
||||
constructor(transport) {
|
||||
Object.defineProperty(this, "transport", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
this.transport = transport;
|
||||
}
|
||||
async deleteDanglingIndex(params, options) {
|
||||
const acceptedPath = ['index_uuid'];
|
||||
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 = 'DELETE';
|
||||
const path = `/_dangling/${encodeURIComponent(params.index_uuid.toString())}`;
|
||||
const meta = {
|
||||
name: 'dangling_indices.delete_dangling_index',
|
||||
pathParts: {
|
||||
index_uuid: params.index_uuid
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async importDanglingIndex(params, options) {
|
||||
const acceptedPath = ['index_uuid'];
|
||||
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 = `/_dangling/${encodeURIComponent(params.index_uuid.toString())}`;
|
||||
const meta = {
|
||||
name: 'dangling_indices.import_dangling_index',
|
||||
pathParts: {
|
||||
index_uuid: params.index_uuid
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async listDanglingIndices(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_dangling';
|
||||
const meta = {
|
||||
name: 'dangling_indices.list_dangling_indices'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
}
|
||||
exports.default = DanglingIndices;
|
||||
//# sourceMappingURL=dangling_indices.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/dangling_indices.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/dangling_indices.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"dangling_indices.js","sourceRoot":"","sources":["../../../src/api/api/dangling_indices.ts"],"names":[],"mappings":"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"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Removes a JSON document from the specified index.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/docs-delete.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function DeleteApi(this: That, params: T.DeleteRequest | TB.DeleteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DeleteResponse>;
|
||||
export default function DeleteApi(this: That, params: T.DeleteRequest | TB.DeleteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DeleteResponse, unknown>>;
|
||||
export default function DeleteApi(this: That, params: T.DeleteRequest | TB.DeleteRequest, options?: TransportRequestOptions): Promise<T.DeleteResponse>;
|
||||
export {};
|
||||
46
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete.js
generated
vendored
Executable file
46
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete.js
generated
vendored
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function DeleteApi(params, options) {
|
||||
const acceptedPath = ['id', '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 = 'DELETE';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_doc/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'delete',
|
||||
pathParts: {
|
||||
id: params.id,
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = DeleteApi;
|
||||
//# sourceMappingURL=delete.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/api/api/delete.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,SAAS,CAAc,MAA0C,EAAE,OAAiC;IAChI,MAAM,YAAY,GAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9C,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;IAEtB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,QAAQ,CAAA;IACvB,MAAM,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;IAC/G,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE;YACT,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AAxBD,4BAwBC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Deletes documents that match the specified query.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/docs-delete-by-query.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function DeleteByQueryApi(this: That, params: T.DeleteByQueryRequest | TB.DeleteByQueryRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DeleteByQueryResponse>;
|
||||
export default function DeleteByQueryApi(this: That, params: T.DeleteByQueryRequest | TB.DeleteByQueryRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DeleteByQueryResponse, unknown>>;
|
||||
export default function DeleteByQueryApi(this: That, params: T.DeleteByQueryRequest | TB.DeleteByQueryRequest, options?: TransportRequestOptions): Promise<T.DeleteByQueryResponse>;
|
||||
export {};
|
||||
59
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query.js
generated
vendored
Executable file
59
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query.js
generated
vendored
Executable file
|
|
@ -0,0 +1,59 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function DeleteByQueryApi(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const acceptedBody = ['max_docs', 'query', 'slice'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else 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())}/_delete_by_query`;
|
||||
const meta = {
|
||||
name: 'delete_by_query',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = DeleteByQueryApi;
|
||||
//# sourceMappingURL=delete_by_query.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"delete_by_query.js","sourceRoot":"","sources":["../../../src/api/api/delete_by_query.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,gBAAgB,CAAc,MAAwD,EAAE,OAAiC;IACrJ,MAAM,YAAY,GAAa,CAAC,OAAO,CAAC,CAAA;IACxC,MAAM,YAAY,GAAa,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;IAC7D,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,mBAAmB;IACnB,MAAM,QAAQ,GAAQ,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAA;IAClC,IAAI,IAAkC,CAAA;IACtC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAChC,IAAI,GAAG,QAAQ,CAAA;KAChB;SAAM;QACL,IAAI,GAAG,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;KACtD;IAED,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAA;YACjB,mBAAmB;YACnB,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SACxB;aAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACrC,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,MAAM,CAAA;IACrB,MAAM,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,mBAAmB,CAAA;IAC/E,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,iBAAiB;QACvB,SAAS,EAAE;YACT,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AAnCD,mCAmCC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query_rethrottle.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query_rethrottle.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Changes the number of requests per second for a particular Delete By Query operation.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/docs-delete-by-query.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function DeleteByQueryRethrottleApi(this: That, params: T.DeleteByQueryRethrottleRequest | TB.DeleteByQueryRethrottleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DeleteByQueryRethrottleResponse>;
|
||||
export default function DeleteByQueryRethrottleApi(this: That, params: T.DeleteByQueryRethrottleRequest | TB.DeleteByQueryRethrottleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DeleteByQueryRethrottleResponse, unknown>>;
|
||||
export default function DeleteByQueryRethrottleApi(this: That, params: T.DeleteByQueryRethrottleRequest | TB.DeleteByQueryRethrottleRequest, options?: TransportRequestOptions): Promise<T.DeleteByQueryRethrottleResponse>;
|
||||
export {};
|
||||
45
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query_rethrottle.js
generated
vendored
Executable file
45
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query_rethrottle.js
generated
vendored
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function DeleteByQueryRethrottleApi(params, options) {
|
||||
const acceptedPath = ['task_id'];
|
||||
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 = `/_delete_by_query/${encodeURIComponent(params.task_id.toString())}/_rethrottle`;
|
||||
const meta = {
|
||||
name: 'delete_by_query_rethrottle',
|
||||
pathParts: {
|
||||
task_id: params.task_id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = DeleteByQueryRethrottleApi;
|
||||
//# sourceMappingURL=delete_by_query_rethrottle.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query_rethrottle.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query_rethrottle.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"delete_by_query_rethrottle.js","sourceRoot":"","sources":["../../../src/api/api/delete_by_query_rethrottle.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,0BAA0B,CAAc,MAA4E,EAAE,OAAiC;IACnL,MAAM,YAAY,GAAa,CAAC,SAAS,CAAC,CAAA;IAC1C,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;IAEtB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,MAAM,CAAA;IACrB,MAAM,IAAI,GAAG,qBAAqB,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,cAAc,CAAA;IAC7F,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,4BAA4B;QAClC,SAAS,EAAE;YACT,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AAvBD,6CAuBC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_script.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_script.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Deletes a stored script or search template.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/modules-scripting.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function DeleteScriptApi(this: That, params: T.DeleteScriptRequest | TB.DeleteScriptRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.DeleteScriptResponse>;
|
||||
export default function DeleteScriptApi(this: That, params: T.DeleteScriptRequest | TB.DeleteScriptRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.DeleteScriptResponse, unknown>>;
|
||||
export default function DeleteScriptApi(this: That, params: T.DeleteScriptRequest | TB.DeleteScriptRequest, options?: TransportRequestOptions): Promise<T.DeleteScriptResponse>;
|
||||
export {};
|
||||
45
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_script.js
generated
vendored
Executable file
45
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_script.js
generated
vendored
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function DeleteScriptApi(params, options) {
|
||||
const acceptedPath = ['id'];
|
||||
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 = 'DELETE';
|
||||
const path = `/_scripts/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'delete_script',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = DeleteScriptApi;
|
||||
//# sourceMappingURL=delete_script.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_script.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/delete_script.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"delete_script.js","sourceRoot":"","sources":["../../../src/api/api/delete_script.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,eAAe,CAAc,MAAsD,EAAE,OAAiC;IAClJ,MAAM,YAAY,GAAa,CAAC,IAAI,CAAC,CAAA;IACrC,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;IAEtB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,QAAQ,CAAA;IACvB,MAAM,IAAI,GAAG,aAAa,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;IACpE,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE;YACT,EAAE,EAAE,MAAM,CAAC,EAAE;SACd;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AAvBD,kCAuBC"}
|
||||
46
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/enrich.d.ts
generated
vendored
Executable file
46
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/enrich.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
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 Enrich {
|
||||
transport: Transport;
|
||||
constructor(transport: Transport);
|
||||
/**
|
||||
* Deletes an existing enrich policy and its enrich index.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/delete-enrich-policy-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
deletePolicy(this: That, params: T.EnrichDeletePolicyRequest | TB.EnrichDeletePolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EnrichDeletePolicyResponse>;
|
||||
deletePolicy(this: That, params: T.EnrichDeletePolicyRequest | TB.EnrichDeletePolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EnrichDeletePolicyResponse, unknown>>;
|
||||
deletePolicy(this: That, params: T.EnrichDeletePolicyRequest | TB.EnrichDeletePolicyRequest, options?: TransportRequestOptions): Promise<T.EnrichDeletePolicyResponse>;
|
||||
/**
|
||||
* Creates the enrich index for an existing enrich policy.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/execute-enrich-policy-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
executePolicy(this: That, params: T.EnrichExecutePolicyRequest | TB.EnrichExecutePolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EnrichExecutePolicyResponse>;
|
||||
executePolicy(this: That, params: T.EnrichExecutePolicyRequest | TB.EnrichExecutePolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EnrichExecutePolicyResponse, unknown>>;
|
||||
executePolicy(this: That, params: T.EnrichExecutePolicyRequest | TB.EnrichExecutePolicyRequest, options?: TransportRequestOptions): Promise<T.EnrichExecutePolicyResponse>;
|
||||
/**
|
||||
* Returns information about an enrich policy.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-enrich-policy-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
getPolicy(this: That, params?: T.EnrichGetPolicyRequest | TB.EnrichGetPolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EnrichGetPolicyResponse>;
|
||||
getPolicy(this: That, params?: T.EnrichGetPolicyRequest | TB.EnrichGetPolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EnrichGetPolicyResponse, unknown>>;
|
||||
getPolicy(this: That, params?: T.EnrichGetPolicyRequest | TB.EnrichGetPolicyRequest, options?: TransportRequestOptions): Promise<T.EnrichGetPolicyResponse>;
|
||||
/**
|
||||
* Creates an enrich policy.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/put-enrich-policy-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
putPolicy(this: That, params: T.EnrichPutPolicyRequest | TB.EnrichPutPolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EnrichPutPolicyResponse>;
|
||||
putPolicy(this: That, params: T.EnrichPutPolicyRequest | TB.EnrichPutPolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EnrichPutPolicyResponse, unknown>>;
|
||||
putPolicy(this: That, params: T.EnrichPutPolicyRequest | TB.EnrichPutPolicyRequest, options?: TransportRequestOptions): Promise<T.EnrichPutPolicyResponse>;
|
||||
/**
|
||||
* Returns enrich coordinator statistics and information about enrich policies that are currently executing.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/enrich-stats-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
stats(this: That, params?: T.EnrichStatsRequest | TB.EnrichStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EnrichStatsResponse>;
|
||||
stats(this: That, params?: T.EnrichStatsRequest | TB.EnrichStatsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EnrichStatsResponse, unknown>>;
|
||||
stats(this: That, params?: T.EnrichStatsRequest | TB.EnrichStatsRequest, options?: TransportRequestOptions): Promise<T.EnrichStatsResponse>;
|
||||
}
|
||||
export {};
|
||||
169
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/enrich.js
generated
vendored
Executable file
169
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/enrich.js
generated
vendored
Executable file
|
|
@ -0,0 +1,169 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class Enrich {
|
||||
constructor(transport) {
|
||||
Object.defineProperty(this, "transport", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
this.transport = transport;
|
||||
}
|
||||
async deletePolicy(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
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 = 'DELETE';
|
||||
const path = `/_enrich/policy/${encodeURIComponent(params.name.toString())}`;
|
||||
const meta = {
|
||||
name: 'enrich.delete_policy',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async executePolicy(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
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 = 'PUT';
|
||||
const path = `/_enrich/policy/${encodeURIComponent(params.name.toString())}/_execute`;
|
||||
const meta = {
|
||||
name: 'enrich.execute_policy',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async getPolicy(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.name != null) {
|
||||
method = 'GET';
|
||||
path = `/_enrich/policy/${encodeURIComponent(params.name.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_enrich/policy';
|
||||
}
|
||||
const meta = {
|
||||
name: 'enrich.get_policy',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async putPolicy(params, options) {
|
||||
const acceptedPath = ['name'];
|
||||
const acceptedBody = ['geo_match', 'match', 'range'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'PUT';
|
||||
const path = `/_enrich/policy/${encodeURIComponent(params.name.toString())}`;
|
||||
const meta = {
|
||||
name: 'enrich.put_policy',
|
||||
pathParts: {
|
||||
name: params.name
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async stats(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_enrich/_stats';
|
||||
const meta = {
|
||||
name: 'enrich.stats'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
}
|
||||
exports.default = Enrich;
|
||||
//# sourceMappingURL=enrich.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/enrich.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/enrich.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"enrich.js","sourceRoot":"","sources":["../../../src/api/api/enrich.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAuBH,MAAqB,MAAM;IAEzB,YAAa,SAAoB;QADjC;;;;;WAAoB;QAElB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IASD,KAAK,CAAC,YAAY,CAAc,MAAkE,EAAE,OAAiC;QACnI,MAAM,YAAY,GAAa,CAAC,MAAM,CAAC,CAAA;QACvC,MAAM,WAAW,GAAwB,EAAE,CAAA;QAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;QAEtB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC9B,SAAQ;aACT;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE;gBACzB,mBAAmB;gBACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;aAC/B;SACF;QAED,MAAM,MAAM,GAAG,QAAQ,CAAA;QACvB,MAAM,IAAI,GAAG,mBAAmB,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;QAC5E,MAAM,IAAI,GAA6B;YACrC,IAAI,EAAE,sBAAsB;YAC5B,SAAS,EAAE;gBACT,IAAI,EAAE,MAAM,CAAC,IAAI;aAClB;SACF,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;IASD,KAAK,CAAC,aAAa,CAAc,MAAoE,EAAE,OAAiC;QACtI,MAAM,YAAY,GAAa,CAAC,MAAM,CAAC,CAAA;QACvC,MAAM,WAAW,GAAwB,EAAE,CAAA;QAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;QAEtB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC9B,SAAQ;aACT;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE;gBACzB,mBAAmB;gBACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;aAC/B;SACF;QAED,MAAM,MAAM,GAAG,KAAK,CAAA;QACpB,MAAM,IAAI,GAAG,mBAAmB,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAA;QACrF,MAAM,IAAI,GAA6B;YACrC,IAAI,EAAE,uBAAuB;YAC7B,SAAS,EAAE;gBACT,IAAI,EAAE,MAAM,CAAC,IAAI;aAClB;SACF,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;IASD,KAAK,CAAC,SAAS,CAAc,MAA6D,EAAE,OAAiC;QAC3H,MAAM,YAAY,GAAa,CAAC,MAAM,CAAC,CAAA;QACvC,MAAM,WAAW,GAAwB,EAAE,CAAA;QAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;QAEtB,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAA;QACrB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC9B,SAAQ;aACT;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE;gBACzB,mBAAmB;gBACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;aAC/B;SACF;QAED,IAAI,MAAM,GAAG,EAAE,CAAA;QACf,IAAI,IAAI,GAAG,EAAE,CAAA;QACb,IAAI,MAAM,CAAC,IAAI,IAAI,IAAI,EAAE;YACvB,MAAM,GAAG,KAAK,CAAA;YACd,IAAI,GAAG,mBAAmB,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;SACvE;aAAM;YACL,MAAM,GAAG,KAAK,CAAA;YACd,IAAI,GAAG,iBAAiB,CAAA;SACzB;QACD,MAAM,IAAI,GAA6B;YACrC,IAAI,EAAE,mBAAmB;YACzB,SAAS,EAAE;gBACT,IAAI,EAAE,MAAM,CAAC,IAAI;aAClB;SACF,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;IASD,KAAK,CAAC,SAAS,CAAc,MAA4D,EAAE,OAAiC;QAC1H,MAAM,YAAY,GAAa,CAAC,MAAM,CAAC,CAAA;QACvC,MAAM,YAAY,GAAa,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;QAC9D,MAAM,WAAW,GAAwB,EAAE,CAAA;QAC3C,mBAAmB;QACnB,MAAM,QAAQ,GAAQ,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAA;QAClC,IAAI,IAAkC,CAAA;QACtC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;YAChC,IAAI,GAAG,QAAQ,CAAA;SAChB;aAAM;YACL,IAAI,GAAG,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;SACtD;QAED,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC9B,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAA;gBACjB,mBAAmB;gBACnB,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;aACxB;iBAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACrC,SAAQ;aACT;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE;gBACzB,mBAAmB;gBACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;aAC/B;SACF;QAED,MAAM,MAAM,GAAG,KAAK,CAAA;QACpB,MAAM,IAAI,GAAG,mBAAmB,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;QAC5E,MAAM,IAAI,GAA6B;YACrC,IAAI,EAAE,mBAAmB;YACzB,SAAS,EAAE;gBACT,IAAI,EAAE,MAAM,CAAC,IAAI;aAClB;SACF,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;IASD,KAAK,CAAC,KAAK,CAAc,MAAqD,EAAE,OAAiC;QAC/G,MAAM,YAAY,GAAa,EAAE,CAAA;QACjC,MAAM,WAAW,GAAwB,EAAE,CAAA;QAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;QAEtB,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAA;QACrB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC9B,SAAQ;aACT;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE;gBACzB,mBAAmB;gBACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;aAC/B;SACF;QAED,MAAM,MAAM,GAAG,KAAK,CAAA;QACpB,MAAM,IAAI,GAAG,iBAAiB,CAAA;QAC9B,MAAM,IAAI,GAA6B;YACrC,IAAI,EAAE,cAAc;SACrB,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACF;AAvLD,yBAuLC"}
|
||||
39
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/eql.d.ts
generated
vendored
Executable file
39
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/eql.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,39 @@
|
|||
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 Eql {
|
||||
transport: Transport;
|
||||
constructor(transport: Transport);
|
||||
/**
|
||||
* Deletes an async EQL search or a stored synchronous EQL search. The API also deletes results for the search.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/eql-search-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
delete(this: That, params: T.EqlDeleteRequest | TB.EqlDeleteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EqlDeleteResponse>;
|
||||
delete(this: That, params: T.EqlDeleteRequest | TB.EqlDeleteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EqlDeleteResponse, unknown>>;
|
||||
delete(this: That, params: T.EqlDeleteRequest | TB.EqlDeleteRequest, options?: TransportRequestOptions): Promise<T.EqlDeleteResponse>;
|
||||
/**
|
||||
* Returns the current status and available results for an async EQL search or a stored synchronous EQL search.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-async-eql-search-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
get<TEvent = unknown>(this: That, params: T.EqlGetRequest | TB.EqlGetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EqlGetResponse<TEvent>>;
|
||||
get<TEvent = unknown>(this: That, params: T.EqlGetRequest | TB.EqlGetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EqlGetResponse<TEvent>, unknown>>;
|
||||
get<TEvent = unknown>(this: That, params: T.EqlGetRequest | TB.EqlGetRequest, options?: TransportRequestOptions): Promise<T.EqlGetResponse<TEvent>>;
|
||||
/**
|
||||
* Returns the current status for an async EQL search or a stored synchronous EQL search without returning results.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-async-eql-status-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
getStatus(this: That, params: T.EqlGetStatusRequest | TB.EqlGetStatusRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EqlGetStatusResponse>;
|
||||
getStatus(this: That, params: T.EqlGetStatusRequest | TB.EqlGetStatusRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EqlGetStatusResponse, unknown>>;
|
||||
getStatus(this: That, params: T.EqlGetStatusRequest | TB.EqlGetStatusRequest, options?: TransportRequestOptions): Promise<T.EqlGetStatusResponse>;
|
||||
/**
|
||||
* Returns results matching a query expressed in Event Query Language (EQL)
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/eql-search-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
search<TEvent = unknown>(this: That, params: T.EqlSearchRequest | TB.EqlSearchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EqlSearchResponse<TEvent>>;
|
||||
search<TEvent = unknown>(this: That, params: T.EqlSearchRequest | TB.EqlSearchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EqlSearchResponse<TEvent>, unknown>>;
|
||||
search<TEvent = unknown>(this: That, params: T.EqlSearchRequest | TB.EqlSearchRequest, options?: TransportRequestOptions): Promise<T.EqlSearchResponse<TEvent>>;
|
||||
}
|
||||
export {};
|
||||
139
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/eql.js
generated
vendored
Executable file
139
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/eql.js
generated
vendored
Executable file
|
|
@ -0,0 +1,139 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class Eql {
|
||||
constructor(transport) {
|
||||
Object.defineProperty(this, "transport", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
this.transport = transport;
|
||||
}
|
||||
async delete(params, options) {
|
||||
const acceptedPath = ['id'];
|
||||
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 = 'DELETE';
|
||||
const path = `/_eql/search/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'eql.delete',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async get(params, options) {
|
||||
const acceptedPath = ['id'];
|
||||
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 = 'GET';
|
||||
const path = `/_eql/search/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'eql.get',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async getStatus(params, options) {
|
||||
const acceptedPath = ['id'];
|
||||
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 = 'GET';
|
||||
const path = `/_eql/search/status/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'eql.get_status',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async search(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const acceptedBody = ['query', 'case_sensitive', 'event_category_field', 'tiebreaker_field', 'timestamp_field', 'fetch_size', 'filter', 'keep_alive', 'keep_on_completion', 'wait_for_completion_timeout', 'size', 'fields', 'result_position', 'runtime_mappings'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = body != null ? 'POST' : 'GET';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_eql/search`;
|
||||
const meta = {
|
||||
name: 'eql.search',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
}
|
||||
exports.default = Eql;
|
||||
//# sourceMappingURL=eql.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/eql.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/eql.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"eql.js","sourceRoot":"","sources":["../../../src/api/api/eql.ts"],"names":[],"mappings":"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"}
|
||||
32
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/esql.d.ts
generated
vendored
Executable file
32
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/esql.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
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 Esql {
|
||||
transport: Transport;
|
||||
constructor(transport: Transport);
|
||||
/**
|
||||
* Executes an ESQL request asynchronously
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/esql-async-query-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
asyncQuery(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
asyncQuery(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
asyncQuery(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* Retrieves the results of a previously submitted async query request given its ID.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/esql-async-query-get-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
asyncQueryGet(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
asyncQueryGet(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
asyncQueryGet(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* Executes an ES|QL request
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/esql-rest.html | Elasticsearch API documentation}
|
||||
*/
|
||||
query(this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EsqlQueryResponse>;
|
||||
query(this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EsqlQueryResponse, unknown>>;
|
||||
query(this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptions): Promise<T.EsqlQueryResponse>;
|
||||
}
|
||||
export {};
|
||||
110
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/esql.js
generated
vendored
Executable file
110
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/esql.js
generated
vendored
Executable file
|
|
@ -0,0 +1,110 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class Esql {
|
||||
constructor(transport) {
|
||||
Object.defineProperty(this, "transport", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
this.transport = transport;
|
||||
}
|
||||
async asyncQuery(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'POST';
|
||||
const path = '/_query/async';
|
||||
const meta = {
|
||||
name: 'esql.async_query'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async asyncQueryGet(params, options) {
|
||||
const acceptedPath = ['id'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = `/_query/async/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'esql.async_query_get',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async query(params, options) {
|
||||
const acceptedPath = [];
|
||||
const acceptedBody = ['columnar', 'filter', 'locale', 'params', 'query'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'POST';
|
||||
const path = '/_query';
|
||||
const meta = {
|
||||
name: 'esql.query'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
}
|
||||
exports.default = Esql;
|
||||
//# sourceMappingURL=esql.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/esql.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/esql.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"esql.js","sourceRoot":"","sources":["../../../src/api/api/esql.ts"],"names":[],"mappings":"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"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/exists.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/exists.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Checks if a document in an index exists.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/docs-get.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function ExistsApi(this: That, params: T.ExistsRequest | TB.ExistsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ExistsResponse>;
|
||||
export default function ExistsApi(this: That, params: T.ExistsRequest | TB.ExistsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ExistsResponse, unknown>>;
|
||||
export default function ExistsApi(this: That, params: T.ExistsRequest | TB.ExistsRequest, options?: TransportRequestOptions): Promise<T.ExistsResponse>;
|
||||
export {};
|
||||
46
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/exists.js
generated
vendored
Executable file
46
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/exists.js
generated
vendored
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function ExistsApi(params, options) {
|
||||
const acceptedPath = ['id', '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 = 'HEAD';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_doc/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'exists',
|
||||
pathParts: {
|
||||
id: params.id,
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = ExistsApi;
|
||||
//# sourceMappingURL=exists.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/exists.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/exists.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"exists.js","sourceRoot":"","sources":["../../../src/api/api/exists.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,SAAS,CAAc,MAA0C,EAAE,OAAiC;IAChI,MAAM,YAAY,GAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9C,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;IAEtB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,MAAM,CAAA;IACrB,MAAM,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;IAC/G,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE;YACT,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AAxBD,4BAwBC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/exists_source.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/exists_source.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Checks if a document's `_source` is stored.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/docs-get.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function ExistsSourceApi(this: That, params: T.ExistsSourceRequest | TB.ExistsSourceRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ExistsSourceResponse>;
|
||||
export default function ExistsSourceApi(this: That, params: T.ExistsSourceRequest | TB.ExistsSourceRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ExistsSourceResponse, unknown>>;
|
||||
export default function ExistsSourceApi(this: That, params: T.ExistsSourceRequest | TB.ExistsSourceRequest, options?: TransportRequestOptions): Promise<T.ExistsSourceResponse>;
|
||||
export {};
|
||||
46
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/exists_source.js
generated
vendored
Executable file
46
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/exists_source.js
generated
vendored
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function ExistsSourceApi(params, options) {
|
||||
const acceptedPath = ['id', '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 = 'HEAD';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_source/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'exists_source',
|
||||
pathParts: {
|
||||
id: params.id,
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = ExistsSourceApi;
|
||||
//# sourceMappingURL=exists_source.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/exists_source.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/exists_source.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"exists_source.js","sourceRoot":"","sources":["../../../src/api/api/exists_source.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,eAAe,CAAc,MAAsD,EAAE,OAAiC;IAClJ,MAAM,YAAY,GAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9C,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;IAEtB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,MAAM,CAAA;IACrB,MAAM,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,YAAY,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;IAClH,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE;YACT,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AAxBD,kCAwBC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/explain.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/explain.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Returns information about why a specific document matches (or doesn’t match) a query.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/search-explain.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function ExplainApi<TDocument = unknown>(this: That, params: T.ExplainRequest | TB.ExplainRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ExplainResponse<TDocument>>;
|
||||
export default function ExplainApi<TDocument = unknown>(this: That, params: T.ExplainRequest | TB.ExplainRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ExplainResponse<TDocument>, unknown>>;
|
||||
export default function ExplainApi<TDocument = unknown>(this: That, params: T.ExplainRequest | TB.ExplainRequest, options?: TransportRequestOptions): Promise<T.ExplainResponse<TDocument>>;
|
||||
export {};
|
||||
60
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/explain.js
generated
vendored
Executable file
60
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/explain.js
generated
vendored
Executable file
|
|
@ -0,0 +1,60 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function ExplainApi(params, options) {
|
||||
const acceptedPath = ['id', 'index'];
|
||||
const acceptedBody = ['query'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = body != null ? 'POST' : 'GET';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_explain/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'explain',
|
||||
pathParts: {
|
||||
id: params.id,
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = ExplainApi;
|
||||
//# sourceMappingURL=explain.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/explain.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/explain.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"explain.js","sourceRoot":"","sources":["../../../src/api/api/explain.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,UAAU,CAAmC,MAA4C,EAAE,OAAiC;IACxJ,MAAM,YAAY,GAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9C,MAAM,YAAY,GAAa,CAAC,OAAO,CAAC,CAAA;IACxC,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,mBAAmB;IACnB,MAAM,QAAQ,GAAQ,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAA;IAClC,IAAI,IAAkC,CAAA;IACtC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAChC,IAAI,GAAG,QAAQ,CAAA;KAChB;SAAM;QACL,IAAI,GAAG,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;KACtD;IAED,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAA;YACjB,mBAAmB;YACnB,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SACxB;aAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACrC,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAA;IAC5C,MAAM,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,aAAa,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;IACnH,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,SAAS;QACf,SAAS,EAAE;YACT,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AApCD,6BAoCC"}
|
||||
25
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/features.d.ts
generated
vendored
Executable file
25
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/features.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
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 Features {
|
||||
transport: Transport;
|
||||
constructor(transport: Transport);
|
||||
/**
|
||||
* Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-features-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
getFeatures(this: That, params?: T.FeaturesGetFeaturesRequest | TB.FeaturesGetFeaturesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FeaturesGetFeaturesResponse>;
|
||||
getFeatures(this: That, params?: T.FeaturesGetFeaturesRequest | TB.FeaturesGetFeaturesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FeaturesGetFeaturesResponse, unknown>>;
|
||||
getFeatures(this: That, params?: T.FeaturesGetFeaturesRequest | TB.FeaturesGetFeaturesRequest, options?: TransportRequestOptions): Promise<T.FeaturesGetFeaturesResponse>;
|
||||
/**
|
||||
* Resets the internal state of features, usually by deleting system indices
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/modules-snapshots.html | Elasticsearch API documentation}
|
||||
*/
|
||||
resetFeatures(this: That, params?: T.FeaturesResetFeaturesRequest | TB.FeaturesResetFeaturesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FeaturesResetFeaturesResponse>;
|
||||
resetFeatures(this: That, params?: T.FeaturesResetFeaturesRequest | TB.FeaturesResetFeaturesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FeaturesResetFeaturesResponse, unknown>>;
|
||||
resetFeatures(this: That, params?: T.FeaturesResetFeaturesRequest | TB.FeaturesResetFeaturesRequest, options?: TransportRequestOptions): Promise<T.FeaturesResetFeaturesResponse>;
|
||||
}
|
||||
export {};
|
||||
75
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/features.js
generated
vendored
Executable file
75
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/features.js
generated
vendored
Executable file
|
|
@ -0,0 +1,75 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class Features {
|
||||
constructor(transport) {
|
||||
Object.defineProperty(this, "transport", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
this.transport = transport;
|
||||
}
|
||||
async getFeatures(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_features';
|
||||
const meta = {
|
||||
name: 'features.get_features'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async resetFeatures(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
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 = '/_features/_reset';
|
||||
const meta = {
|
||||
name: 'features.reset_features'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
}
|
||||
exports.default = Features;
|
||||
//# sourceMappingURL=features.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/features.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/features.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../../src/api/api/features.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAuBH,MAAqB,QAAQ;IAE3B,YAAa,SAAoB;QADjC;;;;;WAAoB;QAElB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IASD,KAAK,CAAC,WAAW,CAAc,MAAqE,EAAE,OAAiC;QACrI,MAAM,YAAY,GAAa,EAAE,CAAA;QACjC,MAAM,WAAW,GAAwB,EAAE,CAAA;QAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;QAEtB,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAA;QACrB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC9B,SAAQ;aACT;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE;gBACzB,mBAAmB;gBACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;aAC/B;SACF;QAED,MAAM,MAAM,GAAG,KAAK,CAAA;QACpB,MAAM,IAAI,GAAG,YAAY,CAAA;QACzB,MAAM,IAAI,GAA6B;YACrC,IAAI,EAAE,uBAAuB;SAC9B,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;IASD,KAAK,CAAC,aAAa,CAAc,MAAyE,EAAE,OAAiC;QAC3I,MAAM,YAAY,GAAa,EAAE,CAAA;QACjC,MAAM,WAAW,GAAwB,EAAE,CAAA;QAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;QAEtB,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAA;QACrB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC9B,SAAQ;aACT;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE;gBACzB,mBAAmB;gBACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;aAC/B;SACF;QAED,MAAM,MAAM,GAAG,MAAM,CAAA;QACrB,MAAM,IAAI,GAAG,mBAAmB,CAAA;QAChC,MAAM,IAAI,GAA6B;YACrC,IAAI,EAAE,yBAAyB;SAChC,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACF;AAjED,2BAiEC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/field_caps.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/field_caps.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* The field capabilities API returns the information about the capabilities of fields among multiple indices. The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type of keyword is returned as any other field that belongs to the `keyword` family.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/search-field-caps.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function FieldCapsApi(this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FieldCapsResponse>;
|
||||
export default function FieldCapsApi(this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FieldCapsResponse, unknown>>;
|
||||
export default function FieldCapsApi(this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptions): Promise<T.FieldCapsResponse>;
|
||||
export {};
|
||||
68
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/field_caps.js
generated
vendored
Executable file
68
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/field_caps.js
generated
vendored
Executable file
|
|
@ -0,0 +1,68 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function FieldCapsApi(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const acceptedBody = ['fields', 'index_filter', 'runtime_mappings'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.index != null) {
|
||||
method = body != null ? 'POST' : 'GET';
|
||||
path = `/${encodeURIComponent(params.index.toString())}/_field_caps`;
|
||||
}
|
||||
else {
|
||||
method = body != null ? 'POST' : 'GET';
|
||||
path = '/_field_caps';
|
||||
}
|
||||
const meta = {
|
||||
name: 'field_caps',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = FieldCapsApi;
|
||||
//# sourceMappingURL=field_caps.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/field_caps.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/field_caps.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"field_caps.js","sourceRoot":"","sources":["../../../src/api/api/field_caps.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,YAAY,CAAc,MAAiD,EAAE,OAAiC;IAC1I,MAAM,YAAY,GAAa,CAAC,OAAO,CAAC,CAAA;IACxC,MAAM,YAAY,GAAa,CAAC,QAAQ,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAA;IAC7E,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,mBAAmB;IACnB,MAAM,QAAQ,GAAQ,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAA;IAClC,IAAI,IAAkC,CAAA;IACtC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAChC,IAAI,GAAG,QAAQ,CAAA;KAChB;SAAM;QACL,IAAI,GAAG,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;KACtD;IAED,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAA;IACrB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAA;YACjB,mBAAmB;YACnB,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SACxB;aAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACrC,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,IAAI,IAAI,GAAG,EAAE,CAAA;IACb,IAAI,MAAM,CAAC,KAAK,IAAI,IAAI,EAAE;QACxB,MAAM,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAA;QACtC,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,cAAc,CAAA;KACrE;SAAM;QACL,MAAM,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAA;QACtC,IAAI,GAAG,cAAc,CAAA;KACtB;IACD,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE;YACT,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AA3CD,+BA2CC"}
|
||||
48
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/fleet.d.ts
generated
vendored
Executable file
48
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/fleet.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,48 @@
|
|||
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 Fleet {
|
||||
transport: Transport;
|
||||
constructor(transport: Transport);
|
||||
/**
|
||||
* Deletes a secret stored by Fleet.
|
||||
*/
|
||||
deleteSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
deleteSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
deleteSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* Retrieves a secret stored by Fleet.
|
||||
*/
|
||||
getSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
getSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
getSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* Returns the current global checkpoints for an index. This API is design for internal use by the fleet server project.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-global-checkpoints.html | Elasticsearch API documentation}
|
||||
*/
|
||||
globalCheckpoints(this: That, params: T.FleetGlobalCheckpointsRequest | TB.FleetGlobalCheckpointsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FleetGlobalCheckpointsResponse>;
|
||||
globalCheckpoints(this: That, params: T.FleetGlobalCheckpointsRequest | TB.FleetGlobalCheckpointsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FleetGlobalCheckpointsResponse, unknown>>;
|
||||
globalCheckpoints(this: That, params: T.FleetGlobalCheckpointsRequest | TB.FleetGlobalCheckpointsRequest, options?: TransportRequestOptions): Promise<T.FleetGlobalCheckpointsResponse>;
|
||||
/**
|
||||
* Executes several [fleet searches](https://www.elastic.co/guide/en/elasticsearch/reference/current/fleet-search.html) with a single API request. The API follows the same structure as the [multi search](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html) API. However, similar to the fleet search API, it supports the wait_for_checkpoints parameter.
|
||||
*/
|
||||
msearch<TDocument = unknown>(this: That, params: T.FleetMsearchRequest | TB.FleetMsearchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FleetMsearchResponse<TDocument>>;
|
||||
msearch<TDocument = unknown>(this: That, params: T.FleetMsearchRequest | TB.FleetMsearchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FleetMsearchResponse<TDocument>, unknown>>;
|
||||
msearch<TDocument = unknown>(this: That, params: T.FleetMsearchRequest | TB.FleetMsearchRequest, options?: TransportRequestOptions): Promise<T.FleetMsearchResponse<TDocument>>;
|
||||
/**
|
||||
* Creates a secret stored by Fleet.
|
||||
*/
|
||||
postSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
||||
postSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
||||
postSecret(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
||||
/**
|
||||
* The purpose of the fleet search api is to provide a search api where the search will only be executed after provided checkpoint has been processed and is visible for searches inside of Elasticsearch.
|
||||
*/
|
||||
search<TDocument = unknown>(this: That, params: T.FleetSearchRequest | TB.FleetSearchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FleetSearchResponse<TDocument>>;
|
||||
search<TDocument = unknown>(this: That, params: T.FleetSearchRequest | TB.FleetSearchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FleetSearchResponse<TDocument>, unknown>>;
|
||||
search<TDocument = unknown>(this: That, params: T.FleetSearchRequest | TB.FleetSearchRequest, options?: TransportRequestOptions): Promise<T.FleetSearchResponse<TDocument>>;
|
||||
}
|
||||
export {};
|
||||
197
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/fleet.js
generated
vendored
Executable file
197
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/fleet.js
generated
vendored
Executable file
|
|
@ -0,0 +1,197 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class Fleet {
|
||||
constructor(transport) {
|
||||
Object.defineProperty(this, "transport", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
this.transport = transport;
|
||||
}
|
||||
async deleteSecret(params, options) {
|
||||
const acceptedPath = ['id'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'DELETE';
|
||||
const path = `/_fleet/secret/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'fleet.delete_secret',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async getSecret(params, options) {
|
||||
const acceptedPath = ['id'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = `/_fleet/secret/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'fleet.get_secret',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async globalCheckpoints(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 = 'GET';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_fleet/global_checkpoints`;
|
||||
const meta = {
|
||||
name: 'fleet.global_checkpoints',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async msearch(params, options) {
|
||||
var _a;
|
||||
const acceptedPath = ['index'];
|
||||
const acceptedBody = ['searches'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
let body = (_a = params.body) !== null && _a !== void 0 ? _a : undefined;
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
// @ts-expect-error
|
||||
body = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.index != null) {
|
||||
method = body != null ? 'POST' : 'GET';
|
||||
path = `/${encodeURIComponent(params.index.toString())}/_fleet/_fleet_msearch`;
|
||||
}
|
||||
else {
|
||||
method = body != null ? 'POST' : 'GET';
|
||||
path = '/_fleet/_fleet_msearch';
|
||||
}
|
||||
const meta = {
|
||||
name: 'fleet.msearch',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, bulkBody: body, meta }, options);
|
||||
}
|
||||
async postSecret(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'POST';
|
||||
const path = '/_fleet/secret';
|
||||
const meta = {
|
||||
name: 'fleet.post_secret'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
async search(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const acceptedBody = ['aggregations', 'aggs', 'collapse', 'explain', 'ext', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = body != null ? 'POST' : 'GET';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_fleet/_fleet_search`;
|
||||
const meta = {
|
||||
name: 'fleet.search',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
}
|
||||
exports.default = Fleet;
|
||||
//# sourceMappingURL=fleet.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/fleet.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/fleet.js.map
generated
vendored
Executable file
File diff suppressed because one or more lines are too long
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Returns a document.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/docs-get.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function GetApi<TDocument = unknown>(this: That, params: T.GetRequest | TB.GetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.GetResponse<TDocument>>;
|
||||
export default function GetApi<TDocument = unknown>(this: That, params: T.GetRequest | TB.GetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.GetResponse<TDocument>, unknown>>;
|
||||
export default function GetApi<TDocument = unknown>(this: That, params: T.GetRequest | TB.GetRequest, options?: TransportRequestOptions): Promise<T.GetResponse<TDocument>>;
|
||||
export {};
|
||||
46
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get.js
generated
vendored
Executable file
46
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get.js
generated
vendored
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function GetApi(params, options) {
|
||||
const acceptedPath = ['id', '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 = 'GET';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_doc/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'get',
|
||||
pathParts: {
|
||||
id: params.id,
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = GetApi;
|
||||
//# sourceMappingURL=get.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/api/api/get.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,MAAM,CAAmC,MAAoC,EAAE,OAAiC;IAC5I,MAAM,YAAY,GAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9C,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;IAEtB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,KAAK,CAAA;IACpB,MAAM,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;IAC/G,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,KAAK;QACX,SAAS,EAAE;YACT,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AAxBD,yBAwBC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Retrieves a stored script or search template.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/modules-scripting.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function GetScriptApi(this: That, params: T.GetScriptRequest | TB.GetScriptRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.GetScriptResponse>;
|
||||
export default function GetScriptApi(this: That, params: T.GetScriptRequest | TB.GetScriptRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.GetScriptResponse, unknown>>;
|
||||
export default function GetScriptApi(this: That, params: T.GetScriptRequest | TB.GetScriptRequest, options?: TransportRequestOptions): Promise<T.GetScriptResponse>;
|
||||
export {};
|
||||
45
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script.js
generated
vendored
Executable file
45
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script.js
generated
vendored
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function GetScriptApi(params, options) {
|
||||
const acceptedPath = ['id'];
|
||||
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 = 'GET';
|
||||
const path = `/_scripts/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'get_script',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = GetScriptApi;
|
||||
//# sourceMappingURL=get_script.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"get_script.js","sourceRoot":"","sources":["../../../src/api/api/get_script.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,YAAY,CAAc,MAAgD,EAAE,OAAiC;IACzI,MAAM,YAAY,GAAa,CAAC,IAAI,CAAC,CAAA;IACrC,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;IAEtB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,KAAK,CAAA;IACpB,MAAM,IAAI,GAAG,aAAa,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;IACpE,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE;YACT,EAAE,EAAE,MAAM,CAAC,EAAE;SACd;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AAvBD,+BAuBC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script_context.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script_context.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Returns all script contexts.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/painless/8.15/painless-contexts.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function GetScriptContextApi(this: That, params?: T.GetScriptContextRequest | TB.GetScriptContextRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.GetScriptContextResponse>;
|
||||
export default function GetScriptContextApi(this: That, params?: T.GetScriptContextRequest | TB.GetScriptContextRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.GetScriptContextResponse, unknown>>;
|
||||
export default function GetScriptContextApi(this: That, params?: T.GetScriptContextRequest | TB.GetScriptContextRequest, options?: TransportRequestOptions): Promise<T.GetScriptContextResponse>;
|
||||
export {};
|
||||
43
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script_context.js
generated
vendored
Executable file
43
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script_context.js
generated
vendored
Executable file
|
|
@ -0,0 +1,43 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function GetScriptContextApi(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_script_context';
|
||||
const meta = {
|
||||
name: 'get_script_context'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = GetScriptContextApi;
|
||||
//# sourceMappingURL=get_script_context.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script_context.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script_context.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"get_script_context.js","sourceRoot":"","sources":["../../../src/api/api/get_script_context.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,mBAAmB,CAAc,MAA+D,EAAE,OAAiC;IAC/J,MAAM,YAAY,GAAa,EAAE,CAAA;IACjC,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;IAEtB,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAA;IACrB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,KAAK,CAAA;IACpB,MAAM,IAAI,GAAG,kBAAkB,CAAA;IAC/B,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,oBAAoB;KAC3B,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AArBD,sCAqBC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Returns available script types, languages and contexts
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/modules-scripting.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function GetScriptLanguagesApi(this: That, params?: T.GetScriptLanguagesRequest | TB.GetScriptLanguagesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.GetScriptLanguagesResponse>;
|
||||
export default function GetScriptLanguagesApi(this: That, params?: T.GetScriptLanguagesRequest | TB.GetScriptLanguagesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.GetScriptLanguagesResponse, unknown>>;
|
||||
export default function GetScriptLanguagesApi(this: That, params?: T.GetScriptLanguagesRequest | TB.GetScriptLanguagesRequest, options?: TransportRequestOptions): Promise<T.GetScriptLanguagesResponse>;
|
||||
export {};
|
||||
43
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.js
generated
vendored
Executable file
43
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.js
generated
vendored
Executable file
|
|
@ -0,0 +1,43 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function GetScriptLanguagesApi(params, options) {
|
||||
const acceptedPath = [];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = 'GET';
|
||||
const path = '/_script_language';
|
||||
const meta = {
|
||||
name: 'get_script_languages'
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = GetScriptLanguagesApi;
|
||||
//# sourceMappingURL=get_script_languages.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"get_script_languages.js","sourceRoot":"","sources":["../../../src/api/api/get_script_languages.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,qBAAqB,CAAc,MAAmE,EAAE,OAAiC;IACrK,MAAM,YAAY,GAAa,EAAE,CAAA;IACjC,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;IAEtB,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAA;IACrB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,KAAK,CAAA;IACpB,MAAM,IAAI,GAAG,mBAAmB,CAAA;IAChC,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,sBAAsB;KAC7B,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AArBD,wCAqBC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_source.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_source.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Returns the source of a document.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/docs-get.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function GetSourceApi<TDocument = unknown>(this: That, params: T.GetSourceRequest | TB.GetSourceRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.GetSourceResponse<TDocument>>;
|
||||
export default function GetSourceApi<TDocument = unknown>(this: That, params: T.GetSourceRequest | TB.GetSourceRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.GetSourceResponse<TDocument>, unknown>>;
|
||||
export default function GetSourceApi<TDocument = unknown>(this: That, params: T.GetSourceRequest | TB.GetSourceRequest, options?: TransportRequestOptions): Promise<T.GetSourceResponse<TDocument>>;
|
||||
export {};
|
||||
46
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_source.js
generated
vendored
Executable file
46
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_source.js
generated
vendored
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function GetSourceApi(params, options) {
|
||||
const acceptedPath = ['id', '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 = 'GET';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_source/${encodeURIComponent(params.id.toString())}`;
|
||||
const meta = {
|
||||
name: 'get_source',
|
||||
pathParts: {
|
||||
id: params.id,
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = GetSourceApi;
|
||||
//# sourceMappingURL=get_source.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_source.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/get_source.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"get_source.js","sourceRoot":"","sources":["../../../src/api/api/get_source.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,YAAY,CAAmC,MAAgD,EAAE,OAAiC;IAC9J,MAAM,YAAY,GAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9C,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;IAEtB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,MAAM,MAAM,GAAG,KAAK,CAAA;IACpB,MAAM,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,YAAY,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;IAClH,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE;YACT,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AAxBD,+BAwBC"}
|
||||
18
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/graph.d.ts
generated
vendored
Executable file
18
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/graph.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
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);
|
||||
/**
|
||||
* Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/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 {};
|
||||
70
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/graph.js
generated
vendored
Executable file
70
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/graph.js
generated
vendored
Executable file
|
|
@ -0,0 +1,70 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class Graph {
|
||||
constructor(transport) {
|
||||
Object.defineProperty(this, "transport", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
this.transport = transport;
|
||||
}
|
||||
async explore(params, options) {
|
||||
const acceptedPath = ['index'];
|
||||
const acceptedBody = ['connections', 'controls', 'query', 'vertices'];
|
||||
const querystring = {};
|
||||
// @ts-expect-error
|
||||
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
||||
let body;
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody;
|
||||
}
|
||||
else {
|
||||
body = userBody != null ? { ...userBody } : undefined;
|
||||
}
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body !== null && body !== void 0 ? body : {};
|
||||
// @ts-expect-error
|
||||
body[key] = params[key];
|
||||
}
|
||||
else if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
const method = body != null ? 'POST' : 'GET';
|
||||
const path = `/${encodeURIComponent(params.index.toString())}/_graph/explore`;
|
||||
const meta = {
|
||||
name: 'graph.explore',
|
||||
pathParts: {
|
||||
index: params.index
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
}
|
||||
exports.default = Graph;
|
||||
//# sourceMappingURL=graph.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/graph.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/graph.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"graph.js","sourceRoot":"","sources":["../../../src/api/api/graph.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAuBH,MAAqB,KAAK;IAExB,YAAa,SAAoB;QADjC;;;;;WAAoB;QAElB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IASD,KAAK,CAAC,OAAO,CAAc,MAAsD,EAAE,OAAiC;QAClH,MAAM,YAAY,GAAa,CAAC,OAAO,CAAC,CAAA;QACxC,MAAM,YAAY,GAAa,CAAC,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAAA;QAC/E,MAAM,WAAW,GAAwB,EAAE,CAAA;QAC3C,mBAAmB;QACnB,MAAM,QAAQ,GAAQ,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAA;QAClC,IAAI,IAAkC,CAAA;QACtC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;YAChC,IAAI,GAAG,QAAQ,CAAA;SAChB;aAAM;YACL,IAAI,GAAG,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;SACtD;QAED,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC9B,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAA;gBACjB,mBAAmB;gBACnB,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;aACxB;iBAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACrC,SAAQ;aACT;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE;gBACzB,mBAAmB;gBACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;aAC/B;SACF;QAED,MAAM,MAAM,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAA;QAC5C,MAAM,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,iBAAiB,CAAA;QAC7E,MAAM,IAAI,GAA6B;YACrC,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE;gBACT,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB;SACF,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACF;AAjDD,wBAiDC"}
|
||||
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/health_report.d.ts
generated
vendored
Executable file
14
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/health_report.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';
|
||||
import * as T from '../types';
|
||||
import * as TB from '../typesWithBodyKey';
|
||||
interface That {
|
||||
transport: Transport;
|
||||
}
|
||||
/**
|
||||
* Returns the health of the cluster.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/health-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default function HealthReportApi(this: That, params?: T.HealthReportRequest | TB.HealthReportRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.HealthReportResponse>;
|
||||
export default function HealthReportApi(this: That, params?: T.HealthReportRequest | TB.HealthReportRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.HealthReportResponse, unknown>>;
|
||||
export default function HealthReportApi(this: That, params?: T.HealthReportRequest | TB.HealthReportRequest, options?: TransportRequestOptions): Promise<T.HealthReportResponse>;
|
||||
export {};
|
||||
54
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/health_report.js
generated
vendored
Executable file
54
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/health_report.js
generated
vendored
Executable file
|
|
@ -0,0 +1,54 @@
|
|||
"use strict";
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
async function HealthReportApi(params, options) {
|
||||
const acceptedPath = ['feature'];
|
||||
const querystring = {};
|
||||
const body = undefined;
|
||||
params = params !== null && params !== void 0 ? params : {};
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue;
|
||||
}
|
||||
else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key];
|
||||
}
|
||||
}
|
||||
let method = '';
|
||||
let path = '';
|
||||
if (params.feature != null) {
|
||||
method = 'GET';
|
||||
path = `/_health_report/${encodeURIComponent(params.feature.toString())}`;
|
||||
}
|
||||
else {
|
||||
method = 'GET';
|
||||
path = '/_health_report';
|
||||
}
|
||||
const meta = {
|
||||
name: 'health_report',
|
||||
pathParts: {
|
||||
feature: params.feature
|
||||
}
|
||||
};
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
||||
}
|
||||
exports.default = HealthReportApi;
|
||||
//# sourceMappingURL=health_report.js.map
|
||||
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/health_report.js.map
generated
vendored
Executable file
1
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/health_report.js.map
generated
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"health_report.js","sourceRoot":"","sources":["../../../src/api/api/health_report.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BY,KAAK,UAAU,eAAe,CAAc,MAAuD,EAAE,OAAiC;IACnJ,MAAM,YAAY,GAAa,CAAC,SAAS,CAAC,CAAA;IAC1C,MAAM,WAAW,GAAwB,EAAE,CAAA;IAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;IAEtB,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAA;IACrB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,SAAQ;SACT;aAAM,IAAI,GAAG,KAAK,MAAM,EAAE;YACzB,mBAAmB;YACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SAC/B;KACF;IAED,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,IAAI,IAAI,GAAG,EAAE,CAAA;IACb,IAAI,MAAM,CAAC,OAAO,IAAI,IAAI,EAAE;QAC1B,MAAM,GAAG,KAAK,CAAA;QACd,IAAI,GAAG,mBAAmB,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;KAC1E;SAAM;QACL,MAAM,GAAG,KAAK,CAAA;QACd,IAAI,GAAG,iBAAiB,CAAA;KACzB;IACD,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE;YACT,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACzF,CAAC;AA/BD,kCA+BC"}
|
||||
88
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/ilm.d.ts
generated
vendored
Executable file
88
BACK_BACK/node_modules/@elastic/elasticsearch/lib/api/api/ilm.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,88 @@
|
|||
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 Ilm {
|
||||
transport: Transport;
|
||||
constructor(transport: Transport);
|
||||
/**
|
||||
* Deletes the specified lifecycle policy definition. You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ilm-delete-lifecycle.html | Elasticsearch API documentation}
|
||||
*/
|
||||
deleteLifecycle(this: That, params: T.IlmDeleteLifecycleRequest | TB.IlmDeleteLifecycleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IlmDeleteLifecycleResponse>;
|
||||
deleteLifecycle(this: That, params: T.IlmDeleteLifecycleRequest | TB.IlmDeleteLifecycleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IlmDeleteLifecycleResponse, unknown>>;
|
||||
deleteLifecycle(this: That, params: T.IlmDeleteLifecycleRequest | TB.IlmDeleteLifecycleRequest, options?: TransportRequestOptions): Promise<T.IlmDeleteLifecycleResponse>;
|
||||
/**
|
||||
* Retrieves information about the index’s current lifecycle state, such as the currently executing phase, action, and step. Shows when the index entered each one, the definition of the running phase, and information about any failures.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ilm-explain-lifecycle.html | Elasticsearch API documentation}
|
||||
*/
|
||||
explainLifecycle(this: That, params: T.IlmExplainLifecycleRequest | TB.IlmExplainLifecycleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IlmExplainLifecycleResponse>;
|
||||
explainLifecycle(this: That, params: T.IlmExplainLifecycleRequest | TB.IlmExplainLifecycleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IlmExplainLifecycleResponse, unknown>>;
|
||||
explainLifecycle(this: That, params: T.IlmExplainLifecycleRequest | TB.IlmExplainLifecycleRequest, options?: TransportRequestOptions): Promise<T.IlmExplainLifecycleResponse>;
|
||||
/**
|
||||
* Retrieves a lifecycle policy.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ilm-get-lifecycle.html | Elasticsearch API documentation}
|
||||
*/
|
||||
getLifecycle(this: That, params?: T.IlmGetLifecycleRequest | TB.IlmGetLifecycleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IlmGetLifecycleResponse>;
|
||||
getLifecycle(this: That, params?: T.IlmGetLifecycleRequest | TB.IlmGetLifecycleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IlmGetLifecycleResponse, unknown>>;
|
||||
getLifecycle(this: That, params?: T.IlmGetLifecycleRequest | TB.IlmGetLifecycleRequest, options?: TransportRequestOptions): Promise<T.IlmGetLifecycleResponse>;
|
||||
/**
|
||||
* Retrieves the current index lifecycle management (ILM) status.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ilm-get-status.html | Elasticsearch API documentation}
|
||||
*/
|
||||
getStatus(this: That, params?: T.IlmGetStatusRequest | TB.IlmGetStatusRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IlmGetStatusResponse>;
|
||||
getStatus(this: That, params?: T.IlmGetStatusRequest | TB.IlmGetStatusRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IlmGetStatusResponse, unknown>>;
|
||||
getStatus(this: That, params?: T.IlmGetStatusRequest | TB.IlmGetStatusRequest, options?: TransportRequestOptions): Promise<T.IlmGetStatusResponse>;
|
||||
/**
|
||||
* Switches the indices, ILM policies, and legacy, composable and component templates from using custom node attributes and attribute-based allocation filters to using data tiers, and optionally deletes one legacy index template.+ Using node roles enables ILM to automatically move the indices between data tiers.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ilm-migrate-to-data-tiers.html | Elasticsearch API documentation}
|
||||
*/
|
||||
migrateToDataTiers(this: That, params?: T.IlmMigrateToDataTiersRequest | TB.IlmMigrateToDataTiersRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IlmMigrateToDataTiersResponse>;
|
||||
migrateToDataTiers(this: That, params?: T.IlmMigrateToDataTiersRequest | TB.IlmMigrateToDataTiersRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IlmMigrateToDataTiersResponse, unknown>>;
|
||||
migrateToDataTiers(this: That, params?: T.IlmMigrateToDataTiersRequest | TB.IlmMigrateToDataTiersRequest, options?: TransportRequestOptions): Promise<T.IlmMigrateToDataTiersResponse>;
|
||||
/**
|
||||
* Manually moves an index into the specified step and executes that step.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ilm-move-to-step.html | Elasticsearch API documentation}
|
||||
*/
|
||||
moveToStep(this: That, params: T.IlmMoveToStepRequest | TB.IlmMoveToStepRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IlmMoveToStepResponse>;
|
||||
moveToStep(this: That, params: T.IlmMoveToStepRequest | TB.IlmMoveToStepRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IlmMoveToStepResponse, unknown>>;
|
||||
moveToStep(this: That, params: T.IlmMoveToStepRequest | TB.IlmMoveToStepRequest, options?: TransportRequestOptions): Promise<T.IlmMoveToStepResponse>;
|
||||
/**
|
||||
* Creates a lifecycle policy. If the specified policy exists, the policy is replaced and the policy version is incremented.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ilm-put-lifecycle.html | Elasticsearch API documentation}
|
||||
*/
|
||||
putLifecycle(this: That, params: T.IlmPutLifecycleRequest | TB.IlmPutLifecycleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IlmPutLifecycleResponse>;
|
||||
putLifecycle(this: That, params: T.IlmPutLifecycleRequest | TB.IlmPutLifecycleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IlmPutLifecycleResponse, unknown>>;
|
||||
putLifecycle(this: That, params: T.IlmPutLifecycleRequest | TB.IlmPutLifecycleRequest, options?: TransportRequestOptions): Promise<T.IlmPutLifecycleResponse>;
|
||||
/**
|
||||
* Removes the assigned lifecycle policy and stops managing the specified index
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ilm-remove-policy.html | Elasticsearch API documentation}
|
||||
*/
|
||||
removePolicy(this: That, params: T.IlmRemovePolicyRequest | TB.IlmRemovePolicyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IlmRemovePolicyResponse>;
|
||||
removePolicy(this: That, params: T.IlmRemovePolicyRequest | TB.IlmRemovePolicyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IlmRemovePolicyResponse, unknown>>;
|
||||
removePolicy(this: That, params: T.IlmRemovePolicyRequest | TB.IlmRemovePolicyRequest, options?: TransportRequestOptions): Promise<T.IlmRemovePolicyResponse>;
|
||||
/**
|
||||
* Retries executing the policy for an index that is in the ERROR step.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ilm-retry-policy.html | Elasticsearch API documentation}
|
||||
*/
|
||||
retry(this: That, params: T.IlmRetryRequest | TB.IlmRetryRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IlmRetryResponse>;
|
||||
retry(this: That, params: T.IlmRetryRequest | TB.IlmRetryRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IlmRetryResponse, unknown>>;
|
||||
retry(this: That, params: T.IlmRetryRequest | TB.IlmRetryRequest, options?: TransportRequestOptions): Promise<T.IlmRetryResponse>;
|
||||
/**
|
||||
* Start the index lifecycle management (ILM) plugin.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ilm-start.html | Elasticsearch API documentation}
|
||||
*/
|
||||
start(this: That, params?: T.IlmStartRequest | TB.IlmStartRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IlmStartResponse>;
|
||||
start(this: That, params?: T.IlmStartRequest | TB.IlmStartRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IlmStartResponse, unknown>>;
|
||||
start(this: That, params?: T.IlmStartRequest | TB.IlmStartRequest, options?: TransportRequestOptions): Promise<T.IlmStartResponse>;
|
||||
/**
|
||||
* Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/ilm-stop.html | Elasticsearch API documentation}
|
||||
*/
|
||||
stop(this: That, params?: T.IlmStopRequest | TB.IlmStopRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IlmStopResponse>;
|
||||
stop(this: That, params?: T.IlmStopRequest | TB.IlmStopRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IlmStopResponse, unknown>>;
|
||||
stop(this: That, params?: T.IlmStopRequest | TB.IlmStopRequest, options?: TransportRequestOptions): Promise<T.IlmStopResponse>;
|
||||
}
|
||||
export {};
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue