@elastic/elasticsearch 8.17.0 → 8.18.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/lib/api/api/async_search.d.ts +5 -5
- package/lib/api/api/autoscaling.d.ts +4 -4
- package/lib/api/api/bulk.d.ts +2 -2
- package/lib/api/api/cat.d.ts +52 -52
- package/lib/api/api/ccr.d.ts +26 -26
- package/lib/api/api/ccr.js +1 -1
- package/lib/api/api/ccr.js.map +1 -1
- 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 +30 -30
- package/lib/api/api/connector.d.ts +50 -50
- package/lib/api/api/connector.js +69 -13
- package/lib/api/api/connector.js.map +1 -1
- package/lib/api/api/count.d.ts +2 -2
- package/lib/api/api/create.d.ts +2 -2
- package/lib/api/api/dangling_indices.d.ts +3 -3
- package/lib/api/api/delete.d.ts +2 -2
- package/lib/api/api/delete_by_query.d.ts +2 -2
- 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/eql.js +1 -1
- package/lib/api/api/eql.js.map +1 -1
- package/lib/api/api/esql.d.ts +25 -11
- package/lib/api/api/esql.js +65 -5
- package/lib/api/api/esql.js.map +1 -1
- package/lib/api/api/exists.d.ts +2 -2
- package/lib/api/api/exists_source.d.ts +2 -2
- package/lib/api/api/explain.d.ts +2 -2
- package/lib/api/api/features.d.ts +4 -4
- package/lib/api/api/field_caps.d.ts +1 -1
- package/lib/api/api/fleet.d.ts +4 -2
- package/lib/api/api/fleet.js.map +1 -1
- package/lib/api/api/get.d.ts +2 -2
- 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 +2 -2
- package/lib/api/api/graph.d.ts +1 -1
- package/lib/api/api/health_report.d.ts +2 -2
- package/lib/api/api/ilm.d.ts +22 -22
- package/lib/api/api/index.d.ts +2 -2
- package/lib/api/api/indices.d.ts +143 -108
- package/lib/api/api/indices.js +137 -3
- package/lib/api/api/indices.js.map +1 -1
- package/lib/api/api/inference.d.ts +165 -11
- package/lib/api/api/inference.js +843 -13
- package/lib/api/api/inference.js.map +1 -1
- package/lib/api/api/info.d.ts +2 -2
- package/lib/api/api/ingest.d.ts +25 -25
- package/lib/api/api/ingest.js +12 -4
- package/lib/api/api/ingest.js.map +1 -1
- package/lib/api/api/knn_search.d.ts +2 -2
- package/lib/api/api/license.d.ts +14 -14
- package/lib/api/api/logstash.d.ts +6 -6
- package/lib/api/api/mget.d.ts +2 -2
- package/lib/api/api/migration.d.ts +6 -6
- package/lib/api/api/ml.d.ts +84 -84
- package/lib/api/api/ml.js +21 -7
- package/lib/api/api/ml.js.map +1 -1
- package/lib/api/api/monitoring.d.ts +2 -2
- package/lib/api/api/msearch.d.ts +1 -1
- package/lib/api/api/msearch_template.d.ts +2 -2
- package/lib/api/api/mtermvectors.d.ts +2 -2
- package/lib/api/api/nodes.d.ts +14 -14
- package/lib/api/api/open_point_in_time.d.ts +2 -2
- package/lib/api/api/ping.d.ts +2 -2
- package/lib/api/api/profiling.d.ts +4 -4
- package/lib/api/api/put_script.d.ts +1 -1
- package/lib/api/api/query_rules.d.ts +12 -12
- package/lib/api/api/rank_eval.d.ts +1 -1
- package/lib/api/api/reindex.d.ts +2 -2
- package/lib/api/api/reindex_rethrottle.d.ts +2 -2
- package/lib/api/api/render_search_template.d.ts +1 -1
- package/lib/api/api/render_search_template.js +2 -2
- package/lib/api/api/render_search_template.js.map +1 -1
- package/lib/api/api/rollup.d.ts +16 -16
- package/lib/api/api/scripts_painless_execute.d.ts +2 -2
- package/lib/api/api/scroll.d.ts +1 -1
- package/lib/api/api/search.d.ts +2 -2
- package/lib/api/api/search_application.d.ts +19 -19
- package/lib/api/api/search_application.js +27 -6
- package/lib/api/api/search_application.js.map +1 -1
- package/lib/api/api/search_mvt.d.ts +2 -2
- package/lib/api/api/search_shards.d.ts +2 -2
- package/lib/api/api/search_template.d.ts +1 -1
- package/lib/api/api/searchable_snapshots.d.ts +8 -8
- package/lib/api/api/security.d.ts +135 -128
- package/lib/api/api/security.js +120 -13
- package/lib/api/api/security.js.map +1 -1
- package/lib/api/api/shutdown.d.ts +6 -6
- package/lib/api/api/simulate.d.ts +5 -5
- package/lib/api/api/simulate.js +17 -3
- package/lib/api/api/simulate.js.map +1 -1
- package/lib/api/api/slm.d.ts +18 -18
- package/lib/api/api/snapshot.d.ts +29 -29
- package/lib/api/api/snapshot.js +4 -4
- package/lib/api/api/snapshot.js.map +1 -1
- package/lib/api/api/sql.d.ts +9 -9
- package/lib/api/api/sql.js +1 -1
- package/lib/api/api/sql.js.map +1 -1
- package/lib/api/api/ssl.d.ts +1 -1
- package/lib/api/api/synonyms.d.ts +10 -10
- package/lib/api/api/tasks.d.ts +6 -6
- package/lib/api/api/terms_enum.d.ts +2 -2
- package/lib/api/api/termvectors.d.ts +2 -2
- package/lib/api/api/termvectors.js +1 -1
- package/lib/api/api/termvectors.js.map +1 -1
- package/lib/api/api/text_structure.d.ts +14 -14
- package/lib/api/api/text_structure.js +18 -4
- package/lib/api/api/text_structure.js.map +1 -1
- package/lib/api/api/transform.d.ts +19 -19
- package/lib/api/api/update.d.ts +2 -2
- package/lib/api/api/update_by_query.d.ts +2 -2
- package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
- package/lib/api/api/watcher.d.ts +32 -32
- package/lib/api/api/watcher.js +19 -3
- package/lib/api/api/watcher.js.map +1 -1
- package/lib/api/api/xpack.d.ts +4 -4
- package/lib/api/types.d.ts +1531 -256
- package/lib/api/typesWithBodyKey.d.ts +1654 -260
- package/lib/client.d.ts +0 -7
- package/lib/client.js +26 -2
- package/lib/client.js.map +1 -1
- package/package.json +7 -8
package/lib/api/api/ping.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ interface That {
|
|
|
5
5
|
transport: Transport;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* Ping the cluster.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
8
|
+
* Ping the cluster. Get information about whether the cluster is running.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cluster.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function PingApi(this: That, params?: T.PingRequest | TB.PingRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.PingResponse>;
|
|
12
12
|
export default function PingApi(this: That, params?: T.PingRequest | TB.PingRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.PingResponse, unknown>>;
|
|
@@ -9,28 +9,28 @@ export default class Profiling {
|
|
|
9
9
|
constructor(transport: Transport);
|
|
10
10
|
/**
|
|
11
11
|
* Extracts a UI-optimized structure to render flamegraphs from Universal Profiling.
|
|
12
|
-
* @see {@link https://www.elastic.co/guide/en/observability/8.
|
|
12
|
+
* @see {@link https://www.elastic.co/guide/en/observability/8.18/universal-profiling.html | Elasticsearch API documentation}
|
|
13
13
|
*/
|
|
14
14
|
flamegraph(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
|
15
15
|
flamegraph(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
|
16
16
|
flamegraph(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
|
17
17
|
/**
|
|
18
18
|
* Extracts raw stacktrace information from Universal Profiling.
|
|
19
|
-
* @see {@link https://www.elastic.co/guide/en/observability/8.
|
|
19
|
+
* @see {@link https://www.elastic.co/guide/en/observability/8.18/universal-profiling.html | Elasticsearch API documentation}
|
|
20
20
|
*/
|
|
21
21
|
stacktraces(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
|
22
22
|
stacktraces(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
|
23
23
|
stacktraces(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
|
24
24
|
/**
|
|
25
25
|
* Returns basic information about the status of Universal Profiling.
|
|
26
|
-
* @see {@link https://www.elastic.co/guide/en/observability/8.
|
|
26
|
+
* @see {@link https://www.elastic.co/guide/en/observability/8.18/universal-profiling.html | Elasticsearch API documentation}
|
|
27
27
|
*/
|
|
28
28
|
status(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
|
29
29
|
status(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
|
30
30
|
status(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
|
|
31
31
|
/**
|
|
32
32
|
* Extracts a list of topN functions from Universal Profiling.
|
|
33
|
-
* @see {@link https://www.elastic.co/guide/en/observability/8.
|
|
33
|
+
* @see {@link https://www.elastic.co/guide/en/observability/8.18/universal-profiling.html | Elasticsearch API documentation}
|
|
34
34
|
*/
|
|
35
35
|
topnFunctions(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
|
|
36
36
|
topnFunctions(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
|
|
@@ -6,7 +6,7 @@ interface That {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Create or update a script or search template. Creates or updates a stored script or search template.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/create-stored-script-api.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function PutScriptApi(this: That, params: T.PutScriptRequest | TB.PutScriptRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.PutScriptResponse>;
|
|
12
12
|
export default function PutScriptApi(this: That, params: T.PutScriptRequest | TB.PutScriptRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.PutScriptResponse, unknown>>;
|
|
@@ -8,57 +8,57 @@ export default class QueryRules {
|
|
|
8
8
|
transport: Transport;
|
|
9
9
|
constructor(transport: Transport);
|
|
10
10
|
/**
|
|
11
|
-
* Delete a query rule. Delete a query rule within a query ruleset.
|
|
12
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
11
|
+
* Delete a query rule. Delete a query rule within a query ruleset. This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API.
|
|
12
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/delete-query-rule.html | Elasticsearch API documentation}
|
|
13
13
|
*/
|
|
14
14
|
deleteRule(this: That, params: T.QueryRulesDeleteRuleRequest | TB.QueryRulesDeleteRuleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesDeleteRuleResponse>;
|
|
15
15
|
deleteRule(this: That, params: T.QueryRulesDeleteRuleRequest | TB.QueryRulesDeleteRuleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesDeleteRuleResponse, unknown>>;
|
|
16
16
|
deleteRule(this: That, params: T.QueryRulesDeleteRuleRequest | TB.QueryRulesDeleteRuleRequest, options?: TransportRequestOptions): Promise<T.QueryRulesDeleteRuleResponse>;
|
|
17
17
|
/**
|
|
18
|
-
* Delete a query ruleset.
|
|
19
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
18
|
+
* Delete a query ruleset. Remove a query ruleset and its associated data. This is a destructive action that is not recoverable.
|
|
19
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/delete-query-ruleset.html | Elasticsearch API documentation}
|
|
20
20
|
*/
|
|
21
21
|
deleteRuleset(this: That, params: T.QueryRulesDeleteRulesetRequest | TB.QueryRulesDeleteRulesetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesDeleteRulesetResponse>;
|
|
22
22
|
deleteRuleset(this: That, params: T.QueryRulesDeleteRulesetRequest | TB.QueryRulesDeleteRulesetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesDeleteRulesetResponse, unknown>>;
|
|
23
23
|
deleteRuleset(this: That, params: T.QueryRulesDeleteRulesetRequest | TB.QueryRulesDeleteRulesetRequest, options?: TransportRequestOptions): Promise<T.QueryRulesDeleteRulesetResponse>;
|
|
24
24
|
/**
|
|
25
25
|
* Get a query rule. Get details about a query rule within a query ruleset.
|
|
26
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
26
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-query-rule.html | Elasticsearch API documentation}
|
|
27
27
|
*/
|
|
28
28
|
getRule(this: That, params: T.QueryRulesGetRuleRequest | TB.QueryRulesGetRuleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesGetRuleResponse>;
|
|
29
29
|
getRule(this: That, params: T.QueryRulesGetRuleRequest | TB.QueryRulesGetRuleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesGetRuleResponse, unknown>>;
|
|
30
30
|
getRule(this: That, params: T.QueryRulesGetRuleRequest | TB.QueryRulesGetRuleRequest, options?: TransportRequestOptions): Promise<T.QueryRulesGetRuleResponse>;
|
|
31
31
|
/**
|
|
32
32
|
* Get a query ruleset. Get details about a query ruleset.
|
|
33
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
33
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-query-ruleset.html | Elasticsearch API documentation}
|
|
34
34
|
*/
|
|
35
35
|
getRuleset(this: That, params: T.QueryRulesGetRulesetRequest | TB.QueryRulesGetRulesetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesGetRulesetResponse>;
|
|
36
36
|
getRuleset(this: That, params: T.QueryRulesGetRulesetRequest | TB.QueryRulesGetRulesetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesGetRulesetResponse, unknown>>;
|
|
37
37
|
getRuleset(this: That, params: T.QueryRulesGetRulesetRequest | TB.QueryRulesGetRulesetRequest, options?: TransportRequestOptions): Promise<T.QueryRulesGetRulesetResponse>;
|
|
38
38
|
/**
|
|
39
39
|
* Get all query rulesets. Get summarized information about the query rulesets.
|
|
40
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
40
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/list-query-rulesets.html | Elasticsearch API documentation}
|
|
41
41
|
*/
|
|
42
42
|
listRulesets(this: That, params?: T.QueryRulesListRulesetsRequest | TB.QueryRulesListRulesetsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesListRulesetsResponse>;
|
|
43
43
|
listRulesets(this: That, params?: T.QueryRulesListRulesetsRequest | TB.QueryRulesListRulesetsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesListRulesetsResponse, unknown>>;
|
|
44
44
|
listRulesets(this: That, params?: T.QueryRulesListRulesetsRequest | TB.QueryRulesListRulesetsRequest, options?: TransportRequestOptions): Promise<T.QueryRulesListRulesetsResponse>;
|
|
45
45
|
/**
|
|
46
|
-
* Create or update a query rule. Create or update a query rule within a query ruleset.
|
|
47
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
46
|
+
* Create or update a query rule. Create or update a query rule within a query ruleset. IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule. It is advised to use one or the other in query rulesets, to avoid errors. Additionally, pinned queries have a maximum limit of 100 pinned hits. If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset.
|
|
47
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/put-query-rule.html | Elasticsearch API documentation}
|
|
48
48
|
*/
|
|
49
49
|
putRule(this: That, params: T.QueryRulesPutRuleRequest | TB.QueryRulesPutRuleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesPutRuleResponse>;
|
|
50
50
|
putRule(this: That, params: T.QueryRulesPutRuleRequest | TB.QueryRulesPutRuleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesPutRuleResponse, unknown>>;
|
|
51
51
|
putRule(this: That, params: T.QueryRulesPutRuleRequest | TB.QueryRulesPutRuleRequest, options?: TransportRequestOptions): Promise<T.QueryRulesPutRuleResponse>;
|
|
52
52
|
/**
|
|
53
|
-
* Create or update a query ruleset.
|
|
54
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
53
|
+
* Create or update a query ruleset. There is a limit of 100 rules per ruleset. This limit can be increased by using the `xpack.applications.rules.max_rules_per_ruleset` cluster setting. IMPORTANT: Due to limitations within pinned queries, you can only select documents using `ids` or `docs`, but cannot use both in single rule. It is advised to use one or the other in query rulesets, to avoid errors. Additionally, pinned queries have a maximum limit of 100 pinned hits. If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset.
|
|
54
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/put-query-ruleset.html | Elasticsearch API documentation}
|
|
55
55
|
*/
|
|
56
56
|
putRuleset(this: That, params: T.QueryRulesPutRulesetRequest | TB.QueryRulesPutRulesetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesPutRulesetResponse>;
|
|
57
57
|
putRuleset(this: That, params: T.QueryRulesPutRulesetRequest | TB.QueryRulesPutRulesetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesPutRulesetResponse, unknown>>;
|
|
58
58
|
putRuleset(this: That, params: T.QueryRulesPutRulesetRequest | TB.QueryRulesPutRulesetRequest, options?: TransportRequestOptions): Promise<T.QueryRulesPutRulesetResponse>;
|
|
59
59
|
/**
|
|
60
60
|
* Test a query ruleset. Evaluate match criteria against a query ruleset to identify the rules that would match that criteria.
|
|
61
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
61
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/test-query-ruleset.html | Elasticsearch API documentation}
|
|
62
62
|
*/
|
|
63
63
|
test(this: That, params: T.QueryRulesTestRequest | TB.QueryRulesTestRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.QueryRulesTestResponse>;
|
|
64
64
|
test(this: That, params: T.QueryRulesTestRequest | TB.QueryRulesTestRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.QueryRulesTestResponse, unknown>>;
|
|
@@ -6,7 +6,7 @@ interface That {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Evaluate ranked search results. Evaluate the quality of ranked search results over a set of typical search queries.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/search-rank-eval.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function RankEvalApi(this: That, params: T.RankEvalRequest | TB.RankEvalRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RankEvalResponse>;
|
|
12
12
|
export default function RankEvalApi(this: That, params: T.RankEvalRequest | TB.RankEvalRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RankEvalResponse, unknown>>;
|
package/lib/api/api/reindex.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ interface That {
|
|
|
5
5
|
transport: Transport;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* Reindex documents. Copies documents from a source to a destination. The source can be any existing index, alias, or data stream. The destination must differ from the source. For example, you cannot reindex a data stream into itself.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
8
|
+
* Reindex documents. Copy documents from a source to a destination. You can copy all documents to the destination index or reindex a subset of the documents. The source can be any existing index, alias, or data stream. The destination must differ from the source. For example, you cannot reindex a data stream into itself. IMPORTANT: Reindex requires `_source` to be enabled for all documents in the source. The destination should be configured as wanted before calling the reindex API. Reindex does not copy the settings from the source or its associated template. Mappings, shard counts, and replicas, for example, must be configured ahead of time. If the Elasticsearch security features are enabled, you must have the following security privileges: * The `read` index privilege for the source data stream, index, or alias. * The `write` index privilege for the destination data stream, index, or index alias. * To automatically create a data stream or index with a reindex API request, you must have the `auto_configure`, `create_index`, or `manage` index privilege for the destination data stream, index, or alias. * If reindexing from a remote cluster, the `source.remote.user` must have the `monitor` cluster privilege and the `read` index privilege for the source data stream, index, or alias. If reindexing from a remote cluster, you must explicitly allow the remote host in the `reindex.remote.whitelist` setting. Automatic data stream creation requires a matching index template with data stream enabled. The `dest` element can be configured like the index API to control optimistic concurrency control. Omitting `version_type` or setting it to `internal` causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. Setting `version_type` to `external` causes Elasticsearch to preserve the `version` from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. Setting `op_type` to `create` causes the reindex API to create only missing documents in the destination. All existing documents will cause a version conflict. IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an `op_type` of `create`. A reindex can only add new documents to a destination data stream. It cannot update existing documents in a destination data stream. By default, version conflicts abort the reindex process. To continue reindexing if there are conflicts, set the `conflicts` request body property to `proceed`. In this case, the response includes a count of the version conflicts that were encountered. Note that the handling of other error types is unaffected by the `conflicts` property. Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than `max_docs` until it has successfully indexed `max_docs` documents into the target or it has gone through every document in the source query. NOTE: The reindex API makes no effort to handle ID collisions. The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. Instead, make sure that IDs are unique by using a script. **Running reindex asynchronously** If the request contains `wait_for_completion=false`, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. Elasticsearch creates a record of this task as a document at `_tasks/<task_id>`. **Reindex from multiple sources** If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. That way you can resume the process if there are any errors by removing the partially completed source and starting over. It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. For example, you can use a bash script like this: ``` for index in i1 i2 i3 i4 i5; do curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ "source": { "index": "'$index'" }, "dest": { "index": "'$index'-reindexed" } }' done ``` **Throttling** Set `requests_per_second` to any positive decimal number (`1.4`, `6`, `1000`, for example) to throttle the rate at which reindex issues batches of index operations. Requests are throttled by padding each batch with a wait time. To turn off throttling, set `requests_per_second` to `-1`. The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. The padding time is the difference between the batch size divided by the `requests_per_second` and the time spent writing. By default the batch size is `1000`, so if `requests_per_second` is set to `500`: ``` target_time = 1000 / 500 per second = 2 seconds wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds ``` Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. This is "bursty" instead of "smooth". **Slicing** Reindex supports sliced scroll to parallelize the reindexing process. This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. NOTE: Reindexing from remote clusters does not support manual or automatic slicing. You can slice a reindex request manually by providing a slice ID and total number of slices to each request. You can also let reindex automatically parallelize by using sliced scroll to slice on `_id`. The `slices` parameter specifies the number of slices to use. Adding `slices` to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: * You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. * Fetching the status of the task for the request with `slices` only contains the status of completed slices. * These sub-requests are individually addressable for things like cancellation and rethrottling. * Rethrottling the request with `slices` will rethrottle the unfinished sub-request proportionally. * Canceling the request with `slices` will cancel each sub-request. * Due to the nature of `slices`, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. * Parameters like `requests_per_second` and `max_docs` on a request with `slices` are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using `max_docs` with `slices` might not result in exactly `max_docs` documents being reindexed. * Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. If slicing automatically, setting `slices` to `auto` will choose a reasonable number for most indices. If slicing manually or otherwise tuning automatic slicing, use the following guidelines. Query performance is most efficient when the number of slices is equal to the number of shards in the index. If that number is large (for example, `500`), choose a lower number as too many slices will hurt performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. Indexing performance scales linearly across available resources with the number of slices. Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. **Modify documents during reindexing** Like `_update_by_query`, reindex operations support a script that modifies the document. Unlike `_update_by_query`, the script is allowed to modify the document's metadata. Just as in `_update_by_query`, you can set `ctx.op` to change the operation that is run on the destination. For example, set `ctx.op` to `noop` if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the `noop` counter in the response body. Set `ctx.op` to `delete` if your script decides that the document must be deleted from the destination. The deletion will be reported in the `deleted` counter in the response body. Setting `ctx.op` to anything else will return an error, as will setting any other field in `ctx`. Think of the possibilities! Just be careful; you are able to change: * `_id` * `_index` * `_version` * `_routing` Setting `_version` to `null` or clearing it from the `ctx` map is just like not sending the version in an indexing request. It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. **Reindex from remote** Reindex supports reindexing from a remote Elasticsearch cluster. The `host` parameter must contain a scheme, host, port, and optional path. The `username` and `password` parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. There are a range of settings available to configure the behavior of the HTTPS connection. When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. Remote hosts must be explicitly allowed with the `reindex.remote.whitelist` setting. It can be set to a comma delimited list of allowed remote host and port combinations. Scheme is ignored; only the host and port are used. For example: ``` reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] ``` The list of allowed hosts must be configured on any nodes that will coordinate the reindex. This feature should work with remote clusters of any version of Elasticsearch. This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. WARNING: Elasticsearch does not support forward compatibility across major versions. For example, you cannot reindex from a 7.x cluster into a 6.x cluster. To enable queries sent to older versions of Elasticsearch, the `query` parameter is sent directly to the remote host without validation or modification. NOTE: Reindexing from remote clusters does not support manual or automatic slicing. Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. If the remote index includes very large documents you'll need to use a smaller batch size. It is also possible to set the socket read timeout on the remote connection with the `socket_timeout` field and the connection timeout with the `connect_timeout` field. Both default to 30 seconds. **Configuring SSL parameters** Reindex from remote supports configurable SSL settings. These must be specified in the `elasticsearch.yml` file, with the exception of the secure settings, which you add in the Elasticsearch keystore. It is not possible to configure SSL in the body of the reindex request.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/docs-reindex.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function ReindexApi(this: That, params: T.ReindexRequest | TB.ReindexRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ReindexResponse>;
|
|
12
12
|
export default function ReindexApi(this: That, params: T.ReindexRequest | TB.ReindexRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ReindexResponse, unknown>>;
|
|
@@ -5,8 +5,8 @@ interface That {
|
|
|
5
5
|
transport: Transport;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* Throttle a reindex operation. Change the number of requests per second for a particular reindex operation.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
8
|
+
* Throttle a reindex operation. Change the number of requests per second for a particular reindex operation. For example: ``` POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 ``` Rethrottling that speeds up the query takes effect immediately. Rethrottling that slows down the query will take effect after completing the current batch. This behavior prevents scroll timeouts.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/docs-reindex.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function ReindexRethrottleApi(this: That, params: T.ReindexRethrottleRequest | TB.ReindexRethrottleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ReindexRethrottleResponse>;
|
|
12
12
|
export default function ReindexRethrottleApi(this: That, params: T.ReindexRethrottleRequest | TB.ReindexRethrottleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ReindexRethrottleResponse, unknown>>;
|
|
@@ -6,7 +6,7 @@ interface That {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Render a search template. Render a search template as a search request body.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/render-search-template-api.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function RenderSearchTemplateApi(this: That, params?: T.RenderSearchTemplateRequest | TB.RenderSearchTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RenderSearchTemplateResponse>;
|
|
12
12
|
export default function RenderSearchTemplateApi(this: That, params?: T.RenderSearchTemplateRequest | TB.RenderSearchTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RenderSearchTemplateResponse, unknown>>;
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.default = RenderSearchTemplateApi;
|
|
22
22
|
async function RenderSearchTemplateApi(params, options) {
|
|
23
|
-
const acceptedPath = [
|
|
24
|
-
const acceptedBody = ['file', 'params', 'source'];
|
|
23
|
+
const acceptedPath = [];
|
|
24
|
+
const acceptedBody = ['id', 'file', 'params', 'source'];
|
|
25
25
|
const querystring = {};
|
|
26
26
|
// @ts-expect-error
|
|
27
27
|
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render_search_template.js","sourceRoot":"","sources":["../../../../src/api/api/render_search_template.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BH,0CA2CC;AA3Cc,KAAK,UAAU,uBAAuB,CAAc,MAAuE,EAAE,OAAiC;IAC3K,MAAM,YAAY,GAAa,
|
|
1
|
+
{"version":3,"file":"render_search_template.js","sourceRoot":"","sources":["../../../../src/api/api/render_search_template.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA8BH,0CA2CC;AA3Cc,KAAK,UAAU,uBAAuB,CAAc,MAAuE,EAAE,OAAiC;IAC3K,MAAM,YAAY,GAAa,EAAE,CAAA;IACjC,MAAM,YAAY,GAAa,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAA;IACjE,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,CAAC;QACjC,IAAI,GAAG,QAAQ,CAAA;IACjB,CAAC;SAAM,CAAC;QACN,IAAI,GAAG,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IACvD,CAAC;IAED,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAA;IACrB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QACzB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE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port;
|
|
9
9
|
constructor(transport: Transport);
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
11
|
+
* Delete a rollup job. A job must be stopped before it can be deleted. If you attempt to delete a started job, an error occurs. Similarly, if you attempt to delete a nonexistent job, an exception occurs. IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. The API does not delete any previously rolled up data. This is by design; a user may wish to roll up a static data set. Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). Thus the job can be deleted, leaving behind the rolled up data for analysis. If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: ``` POST my_rollup_index/_delete_by_query { "query": { "term": { "_rollup.id": "the_rollup_job_id" } } } ```
|
|
12
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rollup-delete-job.html | Elasticsearch API documentation}
|
|
13
13
|
*/
|
|
14
14
|
deleteJob(this: That, params: T.RollupDeleteJobRequest | TB.RollupDeleteJobRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupDeleteJobResponse>;
|
|
15
15
|
deleteJob(this: That, params: T.RollupDeleteJobRequest | TB.RollupDeleteJobRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupDeleteJobResponse, unknown>>;
|
|
16
16
|
deleteJob(this: That, params: T.RollupDeleteJobRequest | TB.RollupDeleteJobRequest, options?: TransportRequestOptions): Promise<T.RollupDeleteJobResponse>;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
18
|
+
* Get rollup job information. Get the configuration, stats, and status of rollup jobs. NOTE: This API returns only active (both `STARTED` and `STOPPED`) jobs. If a job was created, ran for a while, then was deleted, the API does not return any details about it. For details about a historical rollup job, the rollup capabilities API may be more useful.
|
|
19
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rollup-get-job.html | Elasticsearch API documentation}
|
|
20
20
|
*/
|
|
21
21
|
getJobs(this: That, params?: T.RollupGetJobsRequest | TB.RollupGetJobsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupGetJobsResponse>;
|
|
22
22
|
getJobs(this: That, params?: T.RollupGetJobsRequest | TB.RollupGetJobsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupGetJobsResponse, unknown>>;
|
|
23
23
|
getJobs(this: That, params?: T.RollupGetJobsRequest | TB.RollupGetJobsRequest, options?: TransportRequestOptions): Promise<T.RollupGetJobsResponse>;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
25
|
+
* Get the rollup job capabilities. Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. This API enables you to inspect an index and determine: 1. Does this index have associated rollup data somewhere in the cluster? 2. If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live?
|
|
26
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rollup-get-rollup-caps.html | Elasticsearch API documentation}
|
|
27
27
|
*/
|
|
28
28
|
getRollupCaps(this: That, params?: T.RollupGetRollupCapsRequest | TB.RollupGetRollupCapsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupGetRollupCapsResponse>;
|
|
29
29
|
getRollupCaps(this: That, params?: T.RollupGetRollupCapsRequest | TB.RollupGetRollupCapsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupGetRollupCapsResponse, unknown>>;
|
|
30
30
|
getRollupCaps(this: That, params?: T.RollupGetRollupCapsRequest | TB.RollupGetRollupCapsRequest, options?: TransportRequestOptions): Promise<T.RollupGetRollupCapsResponse>;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
32
|
+
* Get the rollup index capabilities. Get the rollup capabilities of all jobs inside of a rollup index. A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: * What jobs are stored in an index (or indices specified via a pattern)? * What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job?
|
|
33
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rollup-get-rollup-index-caps.html | Elasticsearch API documentation}
|
|
34
34
|
*/
|
|
35
35
|
getRollupIndexCaps(this: That, params: T.RollupGetRollupIndexCapsRequest | TB.RollupGetRollupIndexCapsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupGetRollupIndexCapsResponse>;
|
|
36
36
|
getRollupIndexCaps(this: That, params: T.RollupGetRollupIndexCapsRequest | TB.RollupGetRollupIndexCapsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupGetRollupIndexCapsResponse, unknown>>;
|
|
37
37
|
getRollupIndexCaps(this: That, params: T.RollupGetRollupIndexCapsRequest | TB.RollupGetRollupIndexCapsRequest, options?: TransportRequestOptions): Promise<T.RollupGetRollupIndexCapsResponse>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
39
|
+
* Create a rollup job. WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. Jobs are created in a `STOPPED` state. You can start them with the start rollup jobs API.
|
|
40
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rollup-put-job.html | Elasticsearch API documentation}
|
|
41
41
|
*/
|
|
42
42
|
putJob(this: That, params: T.RollupPutJobRequest | TB.RollupPutJobRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupPutJobResponse>;
|
|
43
43
|
putJob(this: That, params: T.RollupPutJobRequest | TB.RollupPutJobRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupPutJobResponse, unknown>>;
|
|
44
44
|
putJob(this: That, params: T.RollupPutJobRequest | TB.RollupPutJobRequest, options?: TransportRequestOptions): Promise<T.RollupPutJobResponse>;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
46
|
+
* Search rolled-up data. The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. The request body supports a subset of features from the regular search API. The following functionality is not available: `size`: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. `highlighter`, `suggestors`, `post_filter`, `profile`, `explain`: These are similarly disallowed. **Searching both historical rollup and non-rollup data** The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. This is done by simply adding the live indices to the URI. For example: ``` GET sensor-1,sensor_rollup/_rollup_search { "size": 0, "aggregations": { "max_temperature": { "max": { "field": "temperature" } } } } ``` The rollup search endpoint does two things when the search runs: * The original request is sent to the non-rollup index unaltered. * A rewritten version of the original request is sent to the rollup index. When the two responses are received, the endpoint rewrites the rollup response and merges the two together. During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used.
|
|
47
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rollup-search.html | Elasticsearch API documentation}
|
|
48
48
|
*/
|
|
49
49
|
rollupSearch<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.RollupRollupSearchRequest | TB.RollupRollupSearchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupRollupSearchResponse<TDocument, TAggregations>>;
|
|
50
50
|
rollupSearch<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.RollupRollupSearchRequest | TB.RollupRollupSearchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupRollupSearchResponse<TDocument, TAggregations>, unknown>>;
|
|
51
51
|
rollupSearch<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.RollupRollupSearchRequest | TB.RollupRollupSearchRequest, options?: TransportRequestOptions): Promise<T.RollupRollupSearchResponse<TDocument, TAggregations>>;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
54
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
53
|
+
* Start rollup jobs. If you try to start a job that does not exist, an exception occurs. If you try to start a job that is already started, nothing happens.
|
|
54
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rollup-start-job.html | Elasticsearch API documentation}
|
|
55
55
|
*/
|
|
56
56
|
startJob(this: That, params: T.RollupStartJobRequest | TB.RollupStartJobRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupStartJobResponse>;
|
|
57
57
|
startJob(this: That, params: T.RollupStartJobRequest | TB.RollupStartJobRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupStartJobResponse, unknown>>;
|
|
58
58
|
startJob(this: That, params: T.RollupStartJobRequest | TB.RollupStartJobRequest, options?: TransportRequestOptions): Promise<T.RollupStartJobResponse>;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
61
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
60
|
+
* Stop rollup jobs. If you try to stop a job that does not exist, an exception occurs. If you try to stop a job that is already stopped, nothing happens. Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. This is accomplished with the `wait_for_completion` query parameter, and optionally a timeout. For example: ``` POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s ``` The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. If the specified time elapses without the job moving to STOPPED, a timeout exception occurs.
|
|
61
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rollup-stop-job.html | Elasticsearch API documentation}
|
|
62
62
|
*/
|
|
63
63
|
stopJob(this: That, params: T.RollupStopJobRequest | TB.RollupStopJobRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.RollupStopJobResponse>;
|
|
64
64
|
stopJob(this: That, params: T.RollupStopJobRequest | TB.RollupStopJobRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.RollupStopJobResponse, unknown>>;
|
|
@@ -5,8 +5,8 @@ interface That {
|
|
|
5
5
|
transport: Transport;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* Run a script. Runs a script and returns a result.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/painless/8.
|
|
8
|
+
* Run a script. Runs a script and returns a result. Use this API to build and test scripts, such as when defining a script for a runtime field. This API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster. The API uses several _contexts_, which control how scripts are run, what variables are available at runtime, and what the return type is. Each context requires a script, but additional parameters depend on the context you're using for that script.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/painless/8.18/painless-execute-api.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function ScriptsPainlessExecuteApi<TResult = unknown>(this: That, params?: T.ScriptsPainlessExecuteRequest | TB.ScriptsPainlessExecuteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ScriptsPainlessExecuteResponse<TResult>>;
|
|
12
12
|
export default function ScriptsPainlessExecuteApi<TResult = unknown>(this: That, params?: T.ScriptsPainlessExecuteRequest | TB.ScriptsPainlessExecuteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ScriptsPainlessExecuteResponse<TResult>, unknown>>;
|
package/lib/api/api/scroll.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface That {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Run a scrolling search. IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the `search_after` parameter with a point in time (PIT). The scroll API gets large sets of results from a single scrolling search request. To get the necessary scroll ID, submit a search API request that includes an argument for the `scroll` query parameter. The `scroll` parameter indicates how long Elasticsearch should retain the search context for the request. The search response returns a scroll ID in the `_scroll_id` response body parameter. You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/scroll-api.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function ScrollApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.ScrollRequest | TB.ScrollRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ScrollResponse<TDocument, TAggregations>>;
|
|
12
12
|
export default function ScrollApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.ScrollRequest | TB.ScrollRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.ScrollResponse<TDocument, TAggregations>, unknown>>;
|
package/lib/api/api/search.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ interface That {
|
|
|
5
5
|
transport: Transport;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* Run a search. Get search hits that match the query defined in the request. You can provide search queries using the `q` query string parameter or the request body. If both are specified, only the query parameter is used.
|
|
9
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
8
|
+
* Run a search. Get search hits that match the query defined in the request. You can provide search queries using the `q` query string parameter or the request body. If both are specified, only the query parameter is used. If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. To search a point in time (PIT) for an alias, you must have the `read` index privilege for the alias's data streams or indices. **Search slicing** When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the `slice` and `pit` properties. By default the splitting is done first on the shards, then locally on each shard. The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. IMPORTANT: The same point-in-time ID should be used for all slices. If different PIT IDs are used, slices can overlap and miss documents. This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index.
|
|
9
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/search-search.html | Elasticsearch API documentation}
|
|
10
10
|
*/
|
|
11
11
|
export default function SearchApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params?: T.SearchRequest | TB.SearchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchResponse<TDocument, TAggregations>>;
|
|
12
12
|
export default function SearchApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params?: T.SearchRequest | TB.SearchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchResponse<TDocument, TAggregations>, unknown>>;
|
|
@@ -9,70 +9,70 @@ export default class SearchApplication {
|
|
|
9
9
|
constructor(transport: Transport);
|
|
10
10
|
/**
|
|
11
11
|
* Delete a search application. Remove a search application and its associated alias. Indices attached to the search application are not removed.
|
|
12
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
12
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/delete-search-application.html | Elasticsearch API documentation}
|
|
13
13
|
*/
|
|
14
14
|
delete(this: That, params: T.SearchApplicationDeleteRequest | TB.SearchApplicationDeleteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationDeleteResponse>;
|
|
15
15
|
delete(this: That, params: T.SearchApplicationDeleteRequest | TB.SearchApplicationDeleteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationDeleteResponse, unknown>>;
|
|
16
16
|
delete(this: That, params: T.SearchApplicationDeleteRequest | TB.SearchApplicationDeleteRequest, options?: TransportRequestOptions): Promise<T.SearchApplicationDeleteResponse>;
|
|
17
17
|
/**
|
|
18
18
|
* Delete a behavioral analytics collection. The associated data stream is also deleted.
|
|
19
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
19
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/delete-analytics-collection.html | Elasticsearch API documentation}
|
|
20
20
|
*/
|
|
21
21
|
deleteBehavioralAnalytics(this: That, params: T.SearchApplicationDeleteBehavioralAnalyticsRequest | TB.SearchApplicationDeleteBehavioralAnalyticsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationDeleteBehavioralAnalyticsResponse>;
|
|
22
22
|
deleteBehavioralAnalytics(this: That, params: T.SearchApplicationDeleteBehavioralAnalyticsRequest | TB.SearchApplicationDeleteBehavioralAnalyticsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationDeleteBehavioralAnalyticsResponse, unknown>>;
|
|
23
23
|
deleteBehavioralAnalytics(this: That, params: T.SearchApplicationDeleteBehavioralAnalyticsRequest | TB.SearchApplicationDeleteBehavioralAnalyticsRequest, options?: TransportRequestOptions): Promise<T.SearchApplicationDeleteBehavioralAnalyticsResponse>;
|
|
24
24
|
/**
|
|
25
25
|
* Get search application details.
|
|
26
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
26
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-search-application.html | Elasticsearch API documentation}
|
|
27
27
|
*/
|
|
28
28
|
get(this: That, params: T.SearchApplicationGetRequest | TB.SearchApplicationGetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationGetResponse>;
|
|
29
29
|
get(this: That, params: T.SearchApplicationGetRequest | TB.SearchApplicationGetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationGetResponse, unknown>>;
|
|
30
30
|
get(this: That, params: T.SearchApplicationGetRequest | TB.SearchApplicationGetRequest, options?: TransportRequestOptions): Promise<T.SearchApplicationGetResponse>;
|
|
31
31
|
/**
|
|
32
32
|
* Get behavioral analytics collections.
|
|
33
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
33
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/list-analytics-collection.html | Elasticsearch API documentation}
|
|
34
34
|
*/
|
|
35
35
|
getBehavioralAnalytics(this: That, params?: T.SearchApplicationGetBehavioralAnalyticsRequest | TB.SearchApplicationGetBehavioralAnalyticsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationGetBehavioralAnalyticsResponse>;
|
|
36
36
|
getBehavioralAnalytics(this: That, params?: T.SearchApplicationGetBehavioralAnalyticsRequest | TB.SearchApplicationGetBehavioralAnalyticsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationGetBehavioralAnalyticsResponse, unknown>>;
|
|
37
37
|
getBehavioralAnalytics(this: That, params?: T.SearchApplicationGetBehavioralAnalyticsRequest | TB.SearchApplicationGetBehavioralAnalyticsRequest, options?: TransportRequestOptions): Promise<T.SearchApplicationGetBehavioralAnalyticsResponse>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
39
|
+
* Get search applications. Get information about search applications.
|
|
40
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/list-analytics-collection.html | Elasticsearch API documentation}
|
|
41
41
|
*/
|
|
42
42
|
list(this: That, params?: T.SearchApplicationListRequest | TB.SearchApplicationListRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationListResponse>;
|
|
43
43
|
list(this: That, params?: T.SearchApplicationListRequest | TB.SearchApplicationListRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationListResponse, unknown>>;
|
|
44
44
|
list(this: That, params?: T.SearchApplicationListRequest | TB.SearchApplicationListRequest, options?: TransportRequestOptions): Promise<T.SearchApplicationListResponse>;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
* @see {@link
|
|
46
|
+
* Create a behavioral analytics collection event.
|
|
47
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/post-analytics-collection-event.html | Elasticsearch API documentation}
|
|
48
48
|
*/
|
|
49
|
-
postBehavioralAnalyticsEvent(this: That, params
|
|
50
|
-
postBehavioralAnalyticsEvent(this: That, params
|
|
51
|
-
postBehavioralAnalyticsEvent(this: That, params
|
|
49
|
+
postBehavioralAnalyticsEvent(this: That, params: T.SearchApplicationPostBehavioralAnalyticsEventRequest | TB.SearchApplicationPostBehavioralAnalyticsEventRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationPostBehavioralAnalyticsEventResponse>;
|
|
50
|
+
postBehavioralAnalyticsEvent(this: That, params: T.SearchApplicationPostBehavioralAnalyticsEventRequest | TB.SearchApplicationPostBehavioralAnalyticsEventRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationPostBehavioralAnalyticsEventResponse, unknown>>;
|
|
51
|
+
postBehavioralAnalyticsEvent(this: That, params: T.SearchApplicationPostBehavioralAnalyticsEventRequest | TB.SearchApplicationPostBehavioralAnalyticsEventRequest, options?: TransportRequestOptions): Promise<T.SearchApplicationPostBehavioralAnalyticsEventResponse>;
|
|
52
52
|
/**
|
|
53
53
|
* Create or update a search application.
|
|
54
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
54
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/put-search-application.html | Elasticsearch API documentation}
|
|
55
55
|
*/
|
|
56
56
|
put(this: That, params: T.SearchApplicationPutRequest | TB.SearchApplicationPutRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationPutResponse>;
|
|
57
57
|
put(this: That, params: T.SearchApplicationPutRequest | TB.SearchApplicationPutRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationPutResponse, unknown>>;
|
|
58
58
|
put(this: That, params: T.SearchApplicationPutRequest | TB.SearchApplicationPutRequest, options?: TransportRequestOptions): Promise<T.SearchApplicationPutResponse>;
|
|
59
59
|
/**
|
|
60
60
|
* Create a behavioral analytics collection.
|
|
61
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
61
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/put-analytics-collection.html | Elasticsearch API documentation}
|
|
62
62
|
*/
|
|
63
63
|
putBehavioralAnalytics(this: That, params: T.SearchApplicationPutBehavioralAnalyticsRequest | TB.SearchApplicationPutBehavioralAnalyticsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationPutBehavioralAnalyticsResponse>;
|
|
64
64
|
putBehavioralAnalytics(this: That, params: T.SearchApplicationPutBehavioralAnalyticsRequest | TB.SearchApplicationPutBehavioralAnalyticsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationPutBehavioralAnalyticsResponse, unknown>>;
|
|
65
65
|
putBehavioralAnalytics(this: That, params: T.SearchApplicationPutBehavioralAnalyticsRequest | TB.SearchApplicationPutBehavioralAnalyticsRequest, options?: TransportRequestOptions): Promise<T.SearchApplicationPutBehavioralAnalyticsResponse>;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
68
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
67
|
+
* Render a search application query. Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. If a parameter used in the search template is not specified in `params`, the parameter's default value will be used. The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. You must have `read` privileges on the backing alias of the search application.
|
|
68
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/search-application-render-query.html | Elasticsearch API documentation}
|
|
69
69
|
*/
|
|
70
|
-
renderQuery(this: That, params
|
|
71
|
-
renderQuery(this: That, params
|
|
72
|
-
renderQuery(this: That, params
|
|
70
|
+
renderQuery(this: That, params: T.SearchApplicationRenderQueryRequest | TB.SearchApplicationRenderQueryRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationRenderQueryResponse>;
|
|
71
|
+
renderQuery(this: That, params: T.SearchApplicationRenderQueryRequest | TB.SearchApplicationRenderQueryRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationRenderQueryResponse, unknown>>;
|
|
72
|
+
renderQuery(this: That, params: T.SearchApplicationRenderQueryRequest | TB.SearchApplicationRenderQueryRequest, options?: TransportRequestOptions): Promise<T.SearchApplicationRenderQueryResponse>;
|
|
73
73
|
/**
|
|
74
74
|
* Run a search application search. Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. Unspecified template parameters are assigned their default values if applicable.
|
|
75
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
75
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/search-application-search.html | Elasticsearch API documentation}
|
|
76
76
|
*/
|
|
77
77
|
search<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.SearchApplicationSearchRequest | TB.SearchApplicationSearchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationSearchResponse<TDocument, TAggregations>>;
|
|
78
78
|
search<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.SearchApplicationSearchRequest | TB.SearchApplicationSearchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationSearchResponse<TDocument, TAggregations>, unknown>>;
|
|
@@ -151,15 +151,22 @@ class SearchApplication {
|
|
|
151
151
|
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
152
152
|
}
|
|
153
153
|
async postBehavioralAnalyticsEvent(params, options) {
|
|
154
|
+
var _a;
|
|
154
155
|
const acceptedPath = ['collection_name', 'event_type'];
|
|
156
|
+
const acceptedBody = ['payload'];
|
|
155
157
|
const querystring = {};
|
|
156
|
-
|
|
157
|
-
|
|
158
|
+
// @ts-expect-error
|
|
159
|
+
let body = (_a = params.body) !== null && _a !== void 0 ? _a : undefined;
|
|
158
160
|
for (const key in params) {
|
|
159
|
-
if (
|
|
161
|
+
if (acceptedBody.includes(key)) {
|
|
162
|
+
// @ts-expect-error
|
|
163
|
+
body = params[key];
|
|
164
|
+
}
|
|
165
|
+
else if (acceptedPath.includes(key)) {
|
|
160
166
|
continue;
|
|
161
167
|
}
|
|
162
168
|
else if (key !== 'body') {
|
|
169
|
+
// @ts-expect-error
|
|
163
170
|
querystring[key] = params[key];
|
|
164
171
|
}
|
|
165
172
|
}
|
|
@@ -229,14 +236,28 @@ class SearchApplication {
|
|
|
229
236
|
}
|
|
230
237
|
async renderQuery(params, options) {
|
|
231
238
|
const acceptedPath = ['name'];
|
|
239
|
+
const acceptedBody = ['params'];
|
|
232
240
|
const querystring = {};
|
|
233
|
-
|
|
234
|
-
|
|
241
|
+
// @ts-expect-error
|
|
242
|
+
const userBody = params === null || params === void 0 ? void 0 : params.body;
|
|
243
|
+
let body;
|
|
244
|
+
if (typeof userBody === 'string') {
|
|
245
|
+
body = userBody;
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
body = userBody != null ? { ...userBody } : undefined;
|
|
249
|
+
}
|
|
235
250
|
for (const key in params) {
|
|
236
|
-
if (
|
|
251
|
+
if (acceptedBody.includes(key)) {
|
|
252
|
+
body = body !== null && body !== void 0 ? body : {};
|
|
253
|
+
// @ts-expect-error
|
|
254
|
+
body[key] = params[key];
|
|
255
|
+
}
|
|
256
|
+
else if (acceptedPath.includes(key)) {
|
|
237
257
|
continue;
|
|
238
258
|
}
|
|
239
259
|
else if (key !== 'body') {
|
|
260
|
+
// @ts-expect-error
|
|
240
261
|
querystring[key] = params[key];
|
|
241
262
|
}
|
|
242
263
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search_application.js","sourceRoot":"","sources":["../../../../src/api/api/search_application.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAuBH,MAAqB,iBAAiB;IAEpC,YAAa,SAAoB;QADjC;;;;;WAAoB;QAElB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IASD,KAAK,CAAC,MAAM,CAAc,MAA4E,EAAE,OAAiC;QACvI,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,CAAC;YACzB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC/B,SAAQ;YACV,CAAC;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC;gBAC1B,mBAAmB;gBACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;YAChC,CAAC;QACH,CAAC;QAED,MAAM,MAAM,GAAG,QAAQ,CAAA;QACvB,MAAM,IAAI,GAAG,oCAAoC,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;QAC7F,MAAM,IAAI,GAA6B;YACrC,IAAI,EAAE,2BAA2B;YACjC,SAAS,EAAE;gBACT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QAC/C,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;IASD,KAAK,CAAC,4BAA4B,CAAc,
|
|
1
|
+
{"version":3,"file":"search_application.js","sourceRoot":"","sources":["../../../../src/api/api/search_application.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAuBH,MAAqB,iBAAiB;IAEpC,YAAa,SAAoB;QADjC;;;;;WAAoB;QAElB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IASD,KAAK,CAAC,MAAM,CAAc,MAA4E,EAAE,OAAiC;QACvI,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,CAAC;YACzB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC/B,SAAQ;YACV,CAAC;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC;gBAC1B,mBAAmB;gBACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;YAChC,CAAC;QACH,CAAC;QAED,MAAM,MAAM,GAAG,QAAQ,CAAA;QACvB,MAAM,IAAI,GAAG,oCAAoC,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;QAC7F,MAAM,IAAI,GAA6B;YACrC,IAAI,EAAE,2BAA2B;YACjC,SAAS,EAAE;gBACT,IAAI,EAAE,MAAM,CAAC,IAAI;aAClB;SACF,CAAA;QACD,OAAO,MAAM,IAAI,CA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