@elastic/elasticsearch 8.9.1 → 8.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/catalog-info.yaml +5 -4
- package/lib/api/api/async_search.d.ts +4 -4
- package/lib/api/api/autoscaling.d.ts +4 -4
- package/lib/api/api/bulk.d.ts +1 -1
- package/lib/api/api/cat.d.ts +26 -26
- package/lib/api/api/ccr.d.ts +13 -13
- package/lib/api/api/clear_scroll.d.ts +1 -1
- package/lib/api/api/close_point_in_time.d.ts +1 -1
- package/lib/api/api/cluster.d.ts +16 -16
- package/lib/api/api/cluster.js +1 -1
- package/lib/api/api/cluster.js.map +1 -1
- package/lib/api/api/count.d.ts +1 -1
- package/lib/api/api/create.d.ts +1 -1
- package/lib/api/api/dangling_indices.d.ts +3 -3
- package/lib/api/api/delete.d.ts +1 -1
- package/lib/api/api/delete_by_query.d.ts +1 -1
- package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
- package/lib/api/api/delete_script.d.ts +1 -1
- package/lib/api/api/enrich.d.ts +5 -5
- package/lib/api/api/eql.d.ts +4 -4
- package/lib/api/api/exists.d.ts +1 -1
- package/lib/api/api/exists_source.d.ts +1 -1
- package/lib/api/api/explain.d.ts +1 -1
- package/lib/api/api/features.d.ts +2 -2
- package/lib/api/api/field_caps.d.ts +1 -1
- package/lib/api/api/fleet.d.ts +1 -1
- package/lib/api/api/get.d.ts +1 -1
- package/lib/api/api/get_script.d.ts +1 -1
- package/lib/api/api/get_script_context.d.ts +1 -1
- package/lib/api/api/get_script_languages.d.ts +1 -1
- package/lib/api/api/get_source.d.ts +1 -1
- package/lib/api/api/graph.d.ts +1 -1
- package/lib/api/api/health_report.d.ts +1 -1
- package/lib/api/api/ilm.d.ts +11 -11
- package/lib/api/api/index.d.ts +1 -1
- package/lib/api/api/indices.d.ts +62 -62
- package/lib/api/api/indices.js +1 -1
- package/lib/api/api/indices.js.map +1 -1
- package/lib/api/api/info.d.ts +1 -1
- package/lib/api/api/ingest.d.ts +6 -6
- package/lib/api/api/knn_search.d.ts +1 -1
- package/lib/api/api/license.d.ts +7 -7
- package/lib/api/api/logstash.d.ts +3 -3
- package/lib/api/api/mget.d.ts +1 -1
- package/lib/api/api/migration.d.ts +3 -3
- package/lib/api/api/ml.d.ts +73 -73
- package/lib/api/api/ml.js +2 -2
- package/lib/api/api/ml.js.map +1 -1
- package/lib/api/api/monitoring.d.ts +1 -1
- package/lib/api/api/msearch.d.ts +1 -1
- package/lib/api/api/msearch_template.d.ts +1 -1
- package/lib/api/api/mtermvectors.d.ts +1 -1
- package/lib/api/api/nodes.d.ts +7 -7
- package/lib/api/api/open_point_in_time.d.ts +1 -1
- package/lib/api/api/ping.d.ts +1 -1
- package/lib/api/api/put_script.d.ts +1 -1
- package/lib/api/api/query_ruleset.d.ts +39 -0
- package/lib/api/api/query_ruleset.js +116 -0
- package/lib/api/api/query_ruleset.js.map +1 -0
- package/lib/api/api/rank_eval.d.ts +1 -1
- package/lib/api/api/reindex.d.ts +1 -1
- package/lib/api/api/reindex_rethrottle.d.ts +1 -1
- package/lib/api/api/render_search_template.d.ts +1 -1
- package/lib/api/api/rollup.d.ts +8 -8
- package/lib/api/api/scripts_painless_execute.d.ts +1 -1
- package/lib/api/api/scroll.d.ts +1 -1
- package/lib/api/api/search.d.ts +1 -1
- package/lib/api/api/search_application.d.ts +9 -9
- package/lib/api/api/search_mvt.d.ts +1 -1
- package/lib/api/api/search_shards.d.ts +1 -1
- package/lib/api/api/search_template.d.ts +1 -1
- package/lib/api/api/searchable_snapshots.d.ts +4 -4
- package/lib/api/api/security.d.ts +57 -57
- package/lib/api/api/security.js +1 -1
- package/lib/api/api/security.js.map +1 -1
- package/lib/api/api/slm.d.ts +9 -9
- package/lib/api/api/snapshot.d.ts +12 -12
- package/lib/api/api/sql.d.ts +6 -6
- package/lib/api/api/ssl.d.ts +1 -1
- package/lib/api/api/synonyms.d.ts +40 -12
- package/lib/api/api/synonyms.js +108 -11
- package/lib/api/api/synonyms.js.map +1 -1
- package/lib/api/api/tasks.d.ts +3 -3
- package/lib/api/api/terms_enum.d.ts +1 -1
- package/lib/api/api/termvectors.d.ts +1 -1
- package/lib/api/api/text_structure.d.ts +1 -1
- package/lib/api/api/transform.d.ts +11 -11
- package/lib/api/api/update.d.ts +1 -1
- package/lib/api/api/update_by_query.d.ts +1 -1
- package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
- package/lib/api/api/watcher.d.ts +13 -13
- package/lib/api/api/xpack.d.ts +2 -2
- package/lib/api/index.d.ts +4 -0
- package/lib/api/index.js +14 -2
- package/lib/api/index.js.map +1 -1
- package/lib/api/types.d.ts +293 -114
- package/lib/api/typesWithBodyKey.d.ts +302 -114
- package/lib/client.d.ts +2 -0
- package/lib/client.js +7 -2
- package/lib/client.js.map +1 -1
- package/lib/helpers.js +10 -5
- package/lib/helpers.js.map +1 -1
- package/package.json +5 -9
package/lib/api/api/synonyms.js
CHANGED
|
@@ -28,42 +28,76 @@ class Synonyms {
|
|
|
28
28
|
});
|
|
29
29
|
this.transport = transport;
|
|
30
30
|
}
|
|
31
|
-
async
|
|
32
|
-
const acceptedPath = ['
|
|
31
|
+
async deleteSynonym(params, options) {
|
|
32
|
+
const acceptedPath = ['id'];
|
|
33
33
|
const querystring = {};
|
|
34
34
|
const body = undefined;
|
|
35
|
-
params = params !== null && params !== void 0 ? params : {};
|
|
36
35
|
for (const key in params) {
|
|
37
36
|
if (acceptedPath.includes(key)) {
|
|
38
37
|
continue;
|
|
39
38
|
}
|
|
40
39
|
else if (key !== 'body') {
|
|
40
|
+
// @ts-expect-error
|
|
41
41
|
querystring[key] = params[key];
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
const method = 'DELETE';
|
|
45
|
-
const path = `/_synonyms/${encodeURIComponent(params.
|
|
45
|
+
const path = `/_synonyms/${encodeURIComponent(params.id.toString())}`;
|
|
46
46
|
return await this.transport.request({ path, method, querystring, body }, options);
|
|
47
47
|
}
|
|
48
|
-
async
|
|
49
|
-
const acceptedPath = ['
|
|
48
|
+
async deleteSynonymRule(params, options) {
|
|
49
|
+
const acceptedPath = ['set_id', 'rule_id'];
|
|
50
|
+
const querystring = {};
|
|
51
|
+
const body = undefined;
|
|
52
|
+
for (const key in params) {
|
|
53
|
+
if (acceptedPath.includes(key)) {
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
else if (key !== 'body') {
|
|
57
|
+
// @ts-expect-error
|
|
58
|
+
querystring[key] = params[key];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const method = 'DELETE';
|
|
62
|
+
const path = `/_synonyms/${encodeURIComponent(params.set_id.toString())}/${encodeURIComponent(params.rule_id.toString())}`;
|
|
63
|
+
return await this.transport.request({ path, method, querystring, body }, options);
|
|
64
|
+
}
|
|
65
|
+
async getSynonym(params, options) {
|
|
66
|
+
const acceptedPath = ['id'];
|
|
67
|
+
const querystring = {};
|
|
68
|
+
const body = undefined;
|
|
69
|
+
for (const key in params) {
|
|
70
|
+
if (acceptedPath.includes(key)) {
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
else if (key !== 'body') {
|
|
74
|
+
// @ts-expect-error
|
|
75
|
+
querystring[key] = params[key];
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const method = 'GET';
|
|
79
|
+
const path = `/_synonyms/${encodeURIComponent(params.id.toString())}`;
|
|
80
|
+
return await this.transport.request({ path, method, querystring, body }, options);
|
|
81
|
+
}
|
|
82
|
+
async getSynonymRule(params, options) {
|
|
83
|
+
const acceptedPath = ['set_id', 'rule_id'];
|
|
50
84
|
const querystring = {};
|
|
51
85
|
const body = undefined;
|
|
52
|
-
params = params !== null && params !== void 0 ? params : {};
|
|
53
86
|
for (const key in params) {
|
|
54
87
|
if (acceptedPath.includes(key)) {
|
|
55
88
|
continue;
|
|
56
89
|
}
|
|
57
90
|
else if (key !== 'body') {
|
|
91
|
+
// @ts-expect-error
|
|
58
92
|
querystring[key] = params[key];
|
|
59
93
|
}
|
|
60
94
|
}
|
|
61
95
|
const method = 'GET';
|
|
62
|
-
const path = `/_synonyms/${encodeURIComponent(params.
|
|
96
|
+
const path = `/_synonyms/${encodeURIComponent(params.set_id.toString())}/${encodeURIComponent(params.rule_id.toString())}`;
|
|
63
97
|
return await this.transport.request({ path, method, querystring, body }, options);
|
|
64
98
|
}
|
|
65
|
-
async
|
|
66
|
-
const acceptedPath = [
|
|
99
|
+
async getSynonymsSets(params, options) {
|
|
100
|
+
const acceptedPath = [];
|
|
67
101
|
const querystring = {};
|
|
68
102
|
const body = undefined;
|
|
69
103
|
params = params !== null && params !== void 0 ? params : {};
|
|
@@ -72,11 +106,74 @@ class Synonyms {
|
|
|
72
106
|
continue;
|
|
73
107
|
}
|
|
74
108
|
else if (key !== 'body') {
|
|
109
|
+
// @ts-expect-error
|
|
110
|
+
querystring[key] = params[key];
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
const method = 'GET';
|
|
114
|
+
const path = '/_synonyms';
|
|
115
|
+
return await this.transport.request({ path, method, querystring, body }, options);
|
|
116
|
+
}
|
|
117
|
+
async putSynonym(params, options) {
|
|
118
|
+
const acceptedPath = ['id'];
|
|
119
|
+
const acceptedBody = ['synonyms_set'];
|
|
120
|
+
const querystring = {};
|
|
121
|
+
// @ts-expect-error
|
|
122
|
+
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
123
|
+
let body;
|
|
124
|
+
if (typeof userBody === 'string') {
|
|
125
|
+
body = userBody;
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
body = userBody != null ? { ...userBody } : undefined;
|
|
129
|
+
}
|
|
130
|
+
for (const key in params) {
|
|
131
|
+
if (acceptedBody.includes(key)) {
|
|
132
|
+
body = body !== null && body !== void 0 ? body : {};
|
|
133
|
+
// @ts-expect-error
|
|
134
|
+
body[key] = params[key];
|
|
135
|
+
}
|
|
136
|
+
else if (acceptedPath.includes(key)) {
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
else if (key !== 'body') {
|
|
140
|
+
// @ts-expect-error
|
|
141
|
+
querystring[key] = params[key];
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
const method = 'PUT';
|
|
145
|
+
const path = `/_synonyms/${encodeURIComponent(params.id.toString())}`;
|
|
146
|
+
return await this.transport.request({ path, method, querystring, body }, options);
|
|
147
|
+
}
|
|
148
|
+
async putSynonymRule(params, options) {
|
|
149
|
+
const acceptedPath = ['set_id', 'rule_id'];
|
|
150
|
+
const acceptedBody = ['synonyms'];
|
|
151
|
+
const querystring = {};
|
|
152
|
+
// @ts-expect-error
|
|
153
|
+
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
154
|
+
let body;
|
|
155
|
+
if (typeof userBody === 'string') {
|
|
156
|
+
body = userBody;
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
body = userBody != null ? { ...userBody } : undefined;
|
|
160
|
+
}
|
|
161
|
+
for (const key in params) {
|
|
162
|
+
if (acceptedBody.includes(key)) {
|
|
163
|
+
body = body !== null && body !== void 0 ? body : {};
|
|
164
|
+
// @ts-expect-error
|
|
165
|
+
body[key] = params[key];
|
|
166
|
+
}
|
|
167
|
+
else if (acceptedPath.includes(key)) {
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
else if (key !== 'body') {
|
|
171
|
+
// @ts-expect-error
|
|
75
172
|
querystring[key] = params[key];
|
|
76
173
|
}
|
|
77
174
|
}
|
|
78
175
|
const method = 'PUT';
|
|
79
|
-
const path = `/_synonyms/${encodeURIComponent(params.
|
|
176
|
+
const path = `/_synonyms/${encodeURIComponent(params.set_id.toString())}/${encodeURIComponent(params.rule_id.toString())}`;
|
|
80
177
|
return await this.transport.request({ path, method, querystring, body }, options);
|
|
81
178
|
}
|
|
82
179
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"synonyms.js","sourceRoot":"","sources":["../../../src/api/api/synonyms.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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,cAAc,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,IAAI,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;QAC1H,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;IACnF,CAAC;CACF;AApND,2BAoNC"}
|
package/lib/api/api/tasks.d.ts
CHANGED
|
@@ -9,21 +9,21 @@ export default class Tasks {
|
|
|
9
9
|
constructor(transport: Transport);
|
|
10
10
|
/**
|
|
11
11
|
* Cancels a task, if it can be cancelled through an API.
|
|
12
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
12
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/tasks.html | Elasticsearch API documentation}
|
|
13
13
|
*/
|
|
14
14
|
cancel(this: That, params?: T.TasksCancelRequest | TB.TasksCancelRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TasksCancelResponse>;
|
|
15
15
|
cancel(this: That, params?: T.TasksCancelRequest | TB.TasksCancelRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TasksCancelResponse, unknown>>;
|
|
16
16
|
cancel(this: That, params?: T.TasksCancelRequest | TB.TasksCancelRequest, options?: TransportRequestOptions): Promise<T.TasksCancelResponse>;
|
|
17
17
|
/**
|
|
18
18
|
* Returns information about a task.
|
|
19
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
19
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/tasks.html | Elasticsearch API documentation}
|
|
20
20
|
*/
|
|
21
21
|
get(this: That, params: T.TasksGetRequest | TB.TasksGetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TasksGetResponse>;
|
|
22
22
|
get(this: That, params: T.TasksGetRequest | TB.TasksGetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TasksGetResponse, unknown>>;
|
|
23
23
|
get(this: That, params: T.TasksGetRequest | TB.TasksGetRequest, options?: TransportRequestOptions): Promise<T.TasksGetResponse>;
|
|
24
24
|
/**
|
|
25
25
|
* Returns a list of tasks.
|
|
26
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
26
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/tasks.html | Elasticsearch API documentation}
|
|
27
27
|
*/
|
|
28
28
|
list(this: That, params?: T.TasksListRequest | TB.TasksListRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TasksListResponse>;
|
|
29
29
|
list(this: That, params?: T.TasksListRequest | TB.TasksListRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TasksListResponse, unknown>>;
|
|
@@ -6,7 +6,7 @@ interface That {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/search-terms-enum.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function TermsEnumApi(this: That, params: T.TermsEnumRequest | TB.TermsEnumRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TermsEnumResponse>;
|
|
12
12
|
export default function TermsEnumApi(this: That, params: T.TermsEnumRequest | TB.TermsEnumRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TermsEnumResponse, unknown>>;
|
|
@@ -6,7 +6,7 @@ interface That {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Returns information and statistics about terms in the fields of a particular document.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-termvectors.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function TermvectorsApi<TDocument = unknown>(this: That, params: T.TermvectorsRequest<TDocument> | TB.TermvectorsRequest<TDocument>, options?: TransportRequestOptionsWithOutMeta): Promise<T.TermvectorsResponse>;
|
|
12
12
|
export default function TermvectorsApi<TDocument = unknown>(this: That, params: T.TermvectorsRequest<TDocument> | TB.TermvectorsRequest<TDocument>, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TermvectorsResponse, unknown>>;
|
|
@@ -9,7 +9,7 @@ export default class TextStructure {
|
|
|
9
9
|
constructor(transport: Transport);
|
|
10
10
|
/**
|
|
11
11
|
* Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch.
|
|
12
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
12
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/find-structure.html | Elasticsearch API documentation}
|
|
13
13
|
*/
|
|
14
14
|
findStructure<TJsonDocument = unknown>(this: That, params: T.TextStructureFindStructureRequest<TJsonDocument> | TB.TextStructureFindStructureRequest<TJsonDocument>, options?: TransportRequestOptionsWithOutMeta): Promise<T.TextStructureFindStructureResponse>;
|
|
15
15
|
findStructure<TJsonDocument = unknown>(this: That, params: T.TextStructureFindStructureRequest<TJsonDocument> | TB.TextStructureFindStructureRequest<TJsonDocument>, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TextStructureFindStructureResponse, unknown>>;
|
|
@@ -9,77 +9,77 @@ export default class Transform {
|
|
|
9
9
|
constructor(transport: Transport);
|
|
10
10
|
/**
|
|
11
11
|
* Deletes an existing transform.
|
|
12
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
12
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/delete-transform.html | Elasticsearch API documentation}
|
|
13
13
|
*/
|
|
14
14
|
deleteTransform(this: That, params: T.TransformDeleteTransformRequest | TB.TransformDeleteTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformDeleteTransformResponse>;
|
|
15
15
|
deleteTransform(this: That, params: T.TransformDeleteTransformRequest | TB.TransformDeleteTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformDeleteTransformResponse, unknown>>;
|
|
16
16
|
deleteTransform(this: That, params: T.TransformDeleteTransformRequest | TB.TransformDeleteTransformRequest, options?: TransportRequestOptions): Promise<T.TransformDeleteTransformResponse>;
|
|
17
17
|
/**
|
|
18
18
|
* Retrieves configuration information for transforms.
|
|
19
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
19
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/get-transform.html | Elasticsearch API documentation}
|
|
20
20
|
*/
|
|
21
21
|
getTransform(this: That, params?: T.TransformGetTransformRequest | TB.TransformGetTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformGetTransformResponse>;
|
|
22
22
|
getTransform(this: That, params?: T.TransformGetTransformRequest | TB.TransformGetTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformGetTransformResponse, unknown>>;
|
|
23
23
|
getTransform(this: That, params?: T.TransformGetTransformRequest | TB.TransformGetTransformRequest, options?: TransportRequestOptions): Promise<T.TransformGetTransformResponse>;
|
|
24
24
|
/**
|
|
25
25
|
* Retrieves usage information for transforms.
|
|
26
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
26
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/get-transform-stats.html | Elasticsearch API documentation}
|
|
27
27
|
*/
|
|
28
28
|
getTransformStats(this: That, params: T.TransformGetTransformStatsRequest | TB.TransformGetTransformStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformGetTransformStatsResponse>;
|
|
29
29
|
getTransformStats(this: That, params: T.TransformGetTransformStatsRequest | TB.TransformGetTransformStatsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformGetTransformStatsResponse, unknown>>;
|
|
30
30
|
getTransformStats(this: That, params: T.TransformGetTransformStatsRequest | TB.TransformGetTransformStatsRequest, options?: TransportRequestOptions): Promise<T.TransformGetTransformStatsResponse>;
|
|
31
31
|
/**
|
|
32
32
|
* Previews a transform.
|
|
33
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
33
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/preview-transform.html | Elasticsearch API documentation}
|
|
34
34
|
*/
|
|
35
35
|
previewTransform<TTransform = unknown>(this: That, params?: T.TransformPreviewTransformRequest | TB.TransformPreviewTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformPreviewTransformResponse<TTransform>>;
|
|
36
36
|
previewTransform<TTransform = unknown>(this: That, params?: T.TransformPreviewTransformRequest | TB.TransformPreviewTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformPreviewTransformResponse<TTransform>, unknown>>;
|
|
37
37
|
previewTransform<TTransform = unknown>(this: That, params?: T.TransformPreviewTransformRequest | TB.TransformPreviewTransformRequest, options?: TransportRequestOptions): Promise<T.TransformPreviewTransformResponse<TTransform>>;
|
|
38
38
|
/**
|
|
39
39
|
* Instantiates a transform.
|
|
40
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
40
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/put-transform.html | Elasticsearch API documentation}
|
|
41
41
|
*/
|
|
42
42
|
putTransform(this: That, params: T.TransformPutTransformRequest | TB.TransformPutTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformPutTransformResponse>;
|
|
43
43
|
putTransform(this: That, params: T.TransformPutTransformRequest | TB.TransformPutTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformPutTransformResponse, unknown>>;
|
|
44
44
|
putTransform(this: That, params: T.TransformPutTransformRequest | TB.TransformPutTransformRequest, options?: TransportRequestOptions): Promise<T.TransformPutTransformResponse>;
|
|
45
45
|
/**
|
|
46
46
|
* Resets an existing transform.
|
|
47
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
47
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/reset-transform.html | Elasticsearch API documentation}
|
|
48
48
|
*/
|
|
49
49
|
resetTransform(this: That, params: T.TransformResetTransformRequest | TB.TransformResetTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformResetTransformResponse>;
|
|
50
50
|
resetTransform(this: That, params: T.TransformResetTransformRequest | TB.TransformResetTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformResetTransformResponse, unknown>>;
|
|
51
51
|
resetTransform(this: That, params: T.TransformResetTransformRequest | TB.TransformResetTransformRequest, options?: TransportRequestOptions): Promise<T.TransformResetTransformResponse>;
|
|
52
52
|
/**
|
|
53
53
|
* Schedules now a transform.
|
|
54
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
54
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/schedule-now-transform.html | Elasticsearch API documentation}
|
|
55
55
|
*/
|
|
56
56
|
scheduleNowTransform(this: That, params: T.TransformScheduleNowTransformRequest | TB.TransformScheduleNowTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformScheduleNowTransformResponse>;
|
|
57
57
|
scheduleNowTransform(this: That, params: T.TransformScheduleNowTransformRequest | TB.TransformScheduleNowTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformScheduleNowTransformResponse, unknown>>;
|
|
58
58
|
scheduleNowTransform(this: That, params: T.TransformScheduleNowTransformRequest | TB.TransformScheduleNowTransformRequest, options?: TransportRequestOptions): Promise<T.TransformScheduleNowTransformResponse>;
|
|
59
59
|
/**
|
|
60
60
|
* Starts one or more transforms.
|
|
61
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
61
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/start-transform.html | Elasticsearch API documentation}
|
|
62
62
|
*/
|
|
63
63
|
startTransform(this: That, params: T.TransformStartTransformRequest | TB.TransformStartTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformStartTransformResponse>;
|
|
64
64
|
startTransform(this: That, params: T.TransformStartTransformRequest | TB.TransformStartTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformStartTransformResponse, unknown>>;
|
|
65
65
|
startTransform(this: That, params: T.TransformStartTransformRequest | TB.TransformStartTransformRequest, options?: TransportRequestOptions): Promise<T.TransformStartTransformResponse>;
|
|
66
66
|
/**
|
|
67
67
|
* Stops one or more transforms.
|
|
68
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
68
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/stop-transform.html | Elasticsearch API documentation}
|
|
69
69
|
*/
|
|
70
70
|
stopTransform(this: That, params: T.TransformStopTransformRequest | TB.TransformStopTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformStopTransformResponse>;
|
|
71
71
|
stopTransform(this: That, params: T.TransformStopTransformRequest | TB.TransformStopTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformStopTransformResponse, unknown>>;
|
|
72
72
|
stopTransform(this: That, params: T.TransformStopTransformRequest | TB.TransformStopTransformRequest, options?: TransportRequestOptions): Promise<T.TransformStopTransformResponse>;
|
|
73
73
|
/**
|
|
74
74
|
* Updates certain properties of a transform.
|
|
75
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
75
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/update-transform.html | Elasticsearch API documentation}
|
|
76
76
|
*/
|
|
77
77
|
updateTransform(this: That, params: T.TransformUpdateTransformRequest | TB.TransformUpdateTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformUpdateTransformResponse>;
|
|
78
78
|
updateTransform(this: That, params: T.TransformUpdateTransformRequest | TB.TransformUpdateTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformUpdateTransformResponse, unknown>>;
|
|
79
79
|
updateTransform(this: That, params: T.TransformUpdateTransformRequest | TB.TransformUpdateTransformRequest, options?: TransportRequestOptions): Promise<T.TransformUpdateTransformResponse>;
|
|
80
80
|
/**
|
|
81
81
|
* Upgrades all transforms.
|
|
82
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
82
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/upgrade-transforms.html | Elasticsearch API documentation}
|
|
83
83
|
*/
|
|
84
84
|
upgradeTransforms(this: That, params?: T.TransformUpgradeTransformsRequest | TB.TransformUpgradeTransformsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformUpgradeTransformsResponse>;
|
|
85
85
|
upgradeTransforms(this: That, params?: T.TransformUpgradeTransformsRequest | TB.TransformUpgradeTransformsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformUpgradeTransformsResponse, unknown>>;
|
package/lib/api/api/update.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface That {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Updates a document with a script or partial document.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-update.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function UpdateApi<TDocument = unknown, TPartialDocument = unknown, TDocumentR = unknown>(this: That, params: T.UpdateRequest<TDocument, TPartialDocument> | TB.UpdateRequest<TDocument, TPartialDocument>, options?: TransportRequestOptionsWithOutMeta): Promise<T.UpdateResponse<TDocumentR>>;
|
|
12
12
|
export default function UpdateApi<TDocument = unknown, TPartialDocument = unknown, TDocumentR = unknown>(this: That, params: T.UpdateRequest<TDocument, TPartialDocument> | TB.UpdateRequest<TDocument, TPartialDocument>, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.UpdateResponse<TDocumentR>, unknown>>;
|
|
@@ -6,7 +6,7 @@ interface That {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Performs an update on every document in the index without changing the source, for example to pick up a mapping change.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-update-by-query.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function UpdateByQueryApi(this: That, params: T.UpdateByQueryRequest | TB.UpdateByQueryRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.UpdateByQueryResponse>;
|
|
12
12
|
export default function UpdateByQueryApi(this: That, params: T.UpdateByQueryRequest | TB.UpdateByQueryRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.UpdateByQueryResponse, unknown>>;
|
|
@@ -6,7 +6,7 @@ interface That {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Changes the number of requests per second for a particular Update By Query operation.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-update-by-query.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function UpdateByQueryRethrottleApi(this: That, params: T.UpdateByQueryRethrottleRequest | TB.UpdateByQueryRethrottleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.UpdateByQueryRethrottleResponse>;
|
|
12
12
|
export default function UpdateByQueryRethrottleApi(this: That, params: T.UpdateByQueryRethrottleRequest | TB.UpdateByQueryRethrottleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.UpdateByQueryRethrottleResponse, unknown>>;
|
package/lib/api/api/watcher.d.ts
CHANGED
|
@@ -9,91 +9,91 @@ export default class Watcher {
|
|
|
9
9
|
constructor(transport: Transport);
|
|
10
10
|
/**
|
|
11
11
|
* Acknowledges a watch, manually throttling the execution of the watch's actions.
|
|
12
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
12
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/watcher-api-ack-watch.html | Elasticsearch API documentation}
|
|
13
13
|
*/
|
|
14
14
|
ackWatch(this: That, params: T.WatcherAckWatchRequest | TB.WatcherAckWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherAckWatchResponse>;
|
|
15
15
|
ackWatch(this: That, params: T.WatcherAckWatchRequest | TB.WatcherAckWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherAckWatchResponse, unknown>>;
|
|
16
16
|
ackWatch(this: That, params: T.WatcherAckWatchRequest | TB.WatcherAckWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherAckWatchResponse>;
|
|
17
17
|
/**
|
|
18
18
|
* Activates a currently inactive watch.
|
|
19
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
19
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/watcher-api-activate-watch.html | Elasticsearch API documentation}
|
|
20
20
|
*/
|
|
21
21
|
activateWatch(this: That, params: T.WatcherActivateWatchRequest | TB.WatcherActivateWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherActivateWatchResponse>;
|
|
22
22
|
activateWatch(this: That, params: T.WatcherActivateWatchRequest | TB.WatcherActivateWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherActivateWatchResponse, unknown>>;
|
|
23
23
|
activateWatch(this: That, params: T.WatcherActivateWatchRequest | TB.WatcherActivateWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherActivateWatchResponse>;
|
|
24
24
|
/**
|
|
25
25
|
* Deactivates a currently active watch.
|
|
26
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
26
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/watcher-api-deactivate-watch.html | Elasticsearch API documentation}
|
|
27
27
|
*/
|
|
28
28
|
deactivateWatch(this: That, params: T.WatcherDeactivateWatchRequest | TB.WatcherDeactivateWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherDeactivateWatchResponse>;
|
|
29
29
|
deactivateWatch(this: That, params: T.WatcherDeactivateWatchRequest | TB.WatcherDeactivateWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherDeactivateWatchResponse, unknown>>;
|
|
30
30
|
deactivateWatch(this: That, params: T.WatcherDeactivateWatchRequest | TB.WatcherDeactivateWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherDeactivateWatchResponse>;
|
|
31
31
|
/**
|
|
32
32
|
* Removes a watch from Watcher.
|
|
33
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
33
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/watcher-api-delete-watch.html | Elasticsearch API documentation}
|
|
34
34
|
*/
|
|
35
35
|
deleteWatch(this: That, params: T.WatcherDeleteWatchRequest | TB.WatcherDeleteWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherDeleteWatchResponse>;
|
|
36
36
|
deleteWatch(this: That, params: T.WatcherDeleteWatchRequest | TB.WatcherDeleteWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherDeleteWatchResponse, unknown>>;
|
|
37
37
|
deleteWatch(this: That, params: T.WatcherDeleteWatchRequest | TB.WatcherDeleteWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherDeleteWatchResponse>;
|
|
38
38
|
/**
|
|
39
39
|
* Forces the execution of a stored watch.
|
|
40
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
40
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/watcher-api-execute-watch.html | Elasticsearch API documentation}
|
|
41
41
|
*/
|
|
42
42
|
executeWatch(this: That, params?: T.WatcherExecuteWatchRequest | TB.WatcherExecuteWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherExecuteWatchResponse>;
|
|
43
43
|
executeWatch(this: That, params?: T.WatcherExecuteWatchRequest | TB.WatcherExecuteWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherExecuteWatchResponse, unknown>>;
|
|
44
44
|
executeWatch(this: That, params?: T.WatcherExecuteWatchRequest | TB.WatcherExecuteWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherExecuteWatchResponse>;
|
|
45
45
|
/**
|
|
46
46
|
* Retrieve settings for the watcher system index
|
|
47
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
47
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/watcher-api-get-settings.html | Elasticsearch API documentation}
|
|
48
48
|
*/
|
|
49
49
|
getSettings(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
|
50
50
|
getSettings(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
|
51
51
|
getSettings(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
|
52
52
|
/**
|
|
53
53
|
* Retrieves a watch by its ID.
|
|
54
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
54
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/watcher-api-get-watch.html | Elasticsearch API documentation}
|
|
55
55
|
*/
|
|
56
56
|
getWatch(this: That, params: T.WatcherGetWatchRequest | TB.WatcherGetWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherGetWatchResponse>;
|
|
57
57
|
getWatch(this: That, params: T.WatcherGetWatchRequest | TB.WatcherGetWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherGetWatchResponse, unknown>>;
|
|
58
58
|
getWatch(this: That, params: T.WatcherGetWatchRequest | TB.WatcherGetWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherGetWatchResponse>;
|
|
59
59
|
/**
|
|
60
60
|
* Creates a new watch, or updates an existing one.
|
|
61
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
61
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/watcher-api-put-watch.html | Elasticsearch API documentation}
|
|
62
62
|
*/
|
|
63
63
|
putWatch(this: That, params: T.WatcherPutWatchRequest | TB.WatcherPutWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherPutWatchResponse>;
|
|
64
64
|
putWatch(this: That, params: T.WatcherPutWatchRequest | TB.WatcherPutWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherPutWatchResponse, unknown>>;
|
|
65
65
|
putWatch(this: That, params: T.WatcherPutWatchRequest | TB.WatcherPutWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherPutWatchResponse>;
|
|
66
66
|
/**
|
|
67
67
|
* Retrieves stored watches.
|
|
68
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
68
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/watcher-api-query-watches.html | Elasticsearch API documentation}
|
|
69
69
|
*/
|
|
70
70
|
queryWatches(this: That, params?: T.WatcherQueryWatchesRequest | TB.WatcherQueryWatchesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherQueryWatchesResponse>;
|
|
71
71
|
queryWatches(this: That, params?: T.WatcherQueryWatchesRequest | TB.WatcherQueryWatchesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherQueryWatchesResponse, unknown>>;
|
|
72
72
|
queryWatches(this: That, params?: T.WatcherQueryWatchesRequest | TB.WatcherQueryWatchesRequest, options?: TransportRequestOptions): Promise<T.WatcherQueryWatchesResponse>;
|
|
73
73
|
/**
|
|
74
74
|
* Starts Watcher if it is not already running.
|
|
75
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
75
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/watcher-api-start.html | Elasticsearch API documentation}
|
|
76
76
|
*/
|
|
77
77
|
start(this: That, params?: T.WatcherStartRequest | TB.WatcherStartRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherStartResponse>;
|
|
78
78
|
start(this: That, params?: T.WatcherStartRequest | TB.WatcherStartRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherStartResponse, unknown>>;
|
|
79
79
|
start(this: That, params?: T.WatcherStartRequest | TB.WatcherStartRequest, options?: TransportRequestOptions): Promise<T.WatcherStartResponse>;
|
|
80
80
|
/**
|
|
81
81
|
* Retrieves the current Watcher metrics.
|
|
82
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
82
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/watcher-api-stats.html | Elasticsearch API documentation}
|
|
83
83
|
*/
|
|
84
84
|
stats(this: That, params?: T.WatcherStatsRequest | TB.WatcherStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherStatsResponse>;
|
|
85
85
|
stats(this: That, params?: T.WatcherStatsRequest | TB.WatcherStatsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherStatsResponse, unknown>>;
|
|
86
86
|
stats(this: That, params?: T.WatcherStatsRequest | TB.WatcherStatsRequest, options?: TransportRequestOptions): Promise<T.WatcherStatsResponse>;
|
|
87
87
|
/**
|
|
88
88
|
* Stops Watcher if it is running.
|
|
89
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
89
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/watcher-api-stop.html | Elasticsearch API documentation}
|
|
90
90
|
*/
|
|
91
91
|
stop(this: That, params?: T.WatcherStopRequest | TB.WatcherStopRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherStopResponse>;
|
|
92
92
|
stop(this: That, params?: T.WatcherStopRequest | TB.WatcherStopRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherStopResponse, unknown>>;
|
|
93
93
|
stop(this: That, params?: T.WatcherStopRequest | TB.WatcherStopRequest, options?: TransportRequestOptions): Promise<T.WatcherStopResponse>;
|
|
94
94
|
/**
|
|
95
95
|
* Update settings for the watcher system index
|
|
96
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
96
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/watcher-api-update-settings.html | Elasticsearch API documentation}
|
|
97
97
|
*/
|
|
98
98
|
updateSettings(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
|
99
99
|
updateSettings(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
package/lib/api/api/xpack.d.ts
CHANGED
|
@@ -9,14 +9,14 @@ export default class Xpack {
|
|
|
9
9
|
constructor(transport: Transport);
|
|
10
10
|
/**
|
|
11
11
|
* Retrieves information about the installed X-Pack features.
|
|
12
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
12
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/info-api.html | Elasticsearch API documentation}
|
|
13
13
|
*/
|
|
14
14
|
info(this: That, params?: T.XpackInfoRequest | TB.XpackInfoRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.XpackInfoResponse>;
|
|
15
15
|
info(this: That, params?: T.XpackInfoRequest | TB.XpackInfoRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.XpackInfoResponse, unknown>>;
|
|
16
16
|
info(this: That, params?: T.XpackInfoRequest | TB.XpackInfoRequest, options?: TransportRequestOptions): Promise<T.XpackInfoResponse>;
|
|
17
17
|
/**
|
|
18
18
|
* Retrieves usage information about the installed X-Pack features.
|
|
19
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
19
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.11/usage-api.html | Elasticsearch API documentation}
|
|
20
20
|
*/
|
|
21
21
|
usage(this: That, params?: T.XpackUsageRequest | TB.XpackUsageRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.XpackUsageResponse>;
|
|
22
22
|
usage(this: That, params?: T.XpackUsageRequest | TB.XpackUsageRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.XpackUsageResponse, unknown>>;
|
package/lib/api/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ import NodesApi from './api/nodes';
|
|
|
47
47
|
import openPointInTimeApi from './api/open_point_in_time';
|
|
48
48
|
import pingApi from './api/ping';
|
|
49
49
|
import putScriptApi from './api/put_script';
|
|
50
|
+
import QueryRulesetApi from './api/query_ruleset';
|
|
50
51
|
import rankEvalApi from './api/rank_eval';
|
|
51
52
|
import reindexApi from './api/reindex';
|
|
52
53
|
import reindexRethrottleApi from './api/reindex_rethrottle';
|
|
@@ -128,6 +129,7 @@ export default interface API {
|
|
|
128
129
|
openPointInTime: typeof openPointInTimeApi;
|
|
129
130
|
ping: typeof pingApi;
|
|
130
131
|
putScript: typeof putScriptApi;
|
|
132
|
+
queryRuleset: QueryRulesetApi;
|
|
131
133
|
rankEval: typeof rankEvalApi;
|
|
132
134
|
reindex: typeof reindexApi;
|
|
133
135
|
reindexRethrottle: typeof reindexRethrottleApi;
|
|
@@ -179,6 +181,7 @@ declare const kMigration: unique symbol;
|
|
|
179
181
|
declare const kMl: unique symbol;
|
|
180
182
|
declare const kMonitoring: unique symbol;
|
|
181
183
|
declare const kNodes: unique symbol;
|
|
184
|
+
declare const kQueryRuleset: unique symbol;
|
|
182
185
|
declare const kRollup: unique symbol;
|
|
183
186
|
declare const kSearchApplication: unique symbol;
|
|
184
187
|
declare const kSearchableSnapshots: unique symbol;
|
|
@@ -215,6 +218,7 @@ export default class API {
|
|
|
215
218
|
[kMl]: symbol | null;
|
|
216
219
|
[kMonitoring]: symbol | null;
|
|
217
220
|
[kNodes]: symbol | null;
|
|
221
|
+
[kQueryRuleset]: symbol | null;
|
|
218
222
|
[kRollup]: symbol | null;
|
|
219
223
|
[kSearchApplication]: symbol | null;
|
|
220
224
|
[kSearchableSnapshots]: symbol | null;
|
package/lib/api/index.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* specific language governing permissions and limitations
|
|
18
18
|
* under the License.
|
|
19
19
|
*/
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10;
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11;
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
const tslib_1 = require("tslib");
|
|
23
23
|
/* eslint-disable import/export */
|
|
@@ -76,6 +76,7 @@ const nodes_1 = tslib_1.__importDefault(require("./api/nodes"));
|
|
|
76
76
|
const open_point_in_time_1 = tslib_1.__importDefault(require("./api/open_point_in_time"));
|
|
77
77
|
const ping_1 = tslib_1.__importDefault(require("./api/ping"));
|
|
78
78
|
const put_script_1 = tslib_1.__importDefault(require("./api/put_script"));
|
|
79
|
+
const query_ruleset_1 = tslib_1.__importDefault(require("./api/query_ruleset"));
|
|
79
80
|
const rank_eval_1 = tslib_1.__importDefault(require("./api/rank_eval"));
|
|
80
81
|
const reindex_1 = tslib_1.__importDefault(require("./api/reindex"));
|
|
81
82
|
const reindex_rethrottle_1 = tslib_1.__importDefault(require("./api/reindex_rethrottle"));
|
|
@@ -126,6 +127,7 @@ const kMigration = Symbol('Migration');
|
|
|
126
127
|
const kMl = Symbol('Ml');
|
|
127
128
|
const kMonitoring = Symbol('Monitoring');
|
|
128
129
|
const kNodes = Symbol('Nodes');
|
|
130
|
+
const kQueryRuleset = Symbol('QueryRuleset');
|
|
129
131
|
const kRollup = Symbol('Rollup');
|
|
130
132
|
const kSearchApplication = Symbol('SearchApplication');
|
|
131
133
|
const kSearchableSnapshots = Symbol('SearchableSnapshots');
|
|
@@ -353,6 +355,12 @@ class API {
|
|
|
353
355
|
writable: true,
|
|
354
356
|
value: void 0
|
|
355
357
|
});
|
|
358
|
+
Object.defineProperty(this, _11, {
|
|
359
|
+
enumerable: true,
|
|
360
|
+
configurable: true,
|
|
361
|
+
writable: true,
|
|
362
|
+
value: void 0
|
|
363
|
+
});
|
|
356
364
|
this[kAsyncSearch] = null;
|
|
357
365
|
this[kAutoscaling] = null;
|
|
358
366
|
this[kCat] = null;
|
|
@@ -373,6 +381,7 @@ class API {
|
|
|
373
381
|
this[kMl] = null;
|
|
374
382
|
this[kMonitoring] = null;
|
|
375
383
|
this[kNodes] = null;
|
|
384
|
+
this[kQueryRuleset] = null;
|
|
376
385
|
this[kRollup] = null;
|
|
377
386
|
this[kSearchApplication] = null;
|
|
378
387
|
this[kSearchableSnapshots] = null;
|
|
@@ -391,7 +400,7 @@ class API {
|
|
|
391
400
|
}
|
|
392
401
|
}
|
|
393
402
|
exports.default = API;
|
|
394
|
-
_a = kAsyncSearch, _b = kAutoscaling, _c = kCat, _d = kCcr, _e = kCluster, _f = kDanglingIndices, _g = kEnrich, _h = kEql, _j = kFeatures, _k = kFleet, _l = kGraph, _m = kIlm, _o = kIndices, _p = kIngest, _q = kLicense, _r = kLogstash, _s = kMigration, _t = kMl, _u = kMonitoring, _v = kNodes, _w =
|
|
403
|
+
_a = kAsyncSearch, _b = kAutoscaling, _c = kCat, _d = kCcr, _e = kCluster, _f = kDanglingIndices, _g = kEnrich, _h = kEql, _j = kFeatures, _k = kFleet, _l = kGraph, _m = kIlm, _o = kIndices, _p = kIngest, _q = kLicense, _r = kLogstash, _s = kMigration, _t = kMl, _u = kMonitoring, _v = kNodes, _w = kQueryRuleset, _x = kRollup, _y = kSearchApplication, _z = kSearchableSnapshots, _0 = kSecurity, _1 = kShutdown, _2 = kSlm, _3 = kSnapshot, _4 = kSql, _5 = kSsl, _6 = kSynonyms, _7 = kTasks, _8 = kTextStructure, _9 = kTransform, _10 = kWatcher, _11 = kXpack;
|
|
395
404
|
API.prototype.bulk = bulk_1.default;
|
|
396
405
|
API.prototype.clearScroll = clear_scroll_1.default;
|
|
397
406
|
API.prototype.closePointInTime = close_point_in_time_1.default;
|
|
@@ -497,6 +506,9 @@ Object.defineProperties(API.prototype, {
|
|
|
497
506
|
nodes: {
|
|
498
507
|
get() { return this[kNodes] === null ? (this[kNodes] = new nodes_1.default(this.transport)) : this[kNodes]; }
|
|
499
508
|
},
|
|
509
|
+
queryRuleset: {
|
|
510
|
+
get() { return this[kQueryRuleset] === null ? (this[kQueryRuleset] = new query_ruleset_1.default(this.transport)) : this[kQueryRuleset]; }
|
|
511
|
+
},
|
|
500
512
|
rollup: {
|
|
501
513
|
get() { return this[kRollup] === null ? (this[kRollup] = new rollup_1.default(this.transport)) : this[kRollup]; }
|
|
502
514
|
},
|