plugin-elastic-report 0.0.0-stage → 0.1.1
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/ai/skills/elastic-report/SKILLS.md +32 -0
- package/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/index.js +10 -0
- package/dist/client-v2/851.488fdbf5bc5b6a36.js +10 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/externalVersion.js +20 -0
- package/dist/index.js +48 -0
- package/dist/locale/en-US.json +99 -0
- package/dist/locale/vi-VN.json +99 -0
- package/dist/locale/zh-CN.json +99 -0
- package/dist/node_modules/@elastic/elasticsearch/.dockerignore +11 -0
- package/dist/node_modules/@elastic/elasticsearch/LICENSE +202 -0
- package/dist/node_modules/@elastic/elasticsearch/NOTICE.txt +2 -0
- package/dist/node_modules/@elastic/elasticsearch/catalog-info.yaml +50 -0
- package/dist/node_modules/@elastic/elasticsearch/codecov.yml +14 -0
- package/dist/node_modules/@elastic/elasticsearch/index.d.ts +28 -0
- package/dist/node_modules/@elastic/elasticsearch/index.js +85525 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/async_search.d.ts +39 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/async_search.js +155 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/autoscaling.d.ts +39 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/autoscaling.js +130 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/bulk.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/bulk.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/capabilities.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/capabilities.js +43 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/cat.d.ts +193 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/cat.js +766 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ccr.d.ts +102 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ccr.js +395 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/clear_scroll.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/clear_scroll.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/close_point_in_time.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/close_point_in_time.js +56 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/cluster.d.ts +123 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/cluster.js +482 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/connector.d.ts +245 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/connector.js +1121 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/count.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/count.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/create.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/create.js +53 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/dangling_indices.d.ts +32 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/dangling_indices.js +100 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete.js +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query.js +59 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query_rethrottle.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query_rethrottle.js +45 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete_script.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete_script.js +45 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/enrich.d.ts +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/enrich.js +169 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/eql.d.ts +39 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/eql.js +139 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/esql.d.ts +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/esql.js +170 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/exists.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/exists.js +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/exists_source.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/exists_source.js +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/explain.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/explain.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/features.d.ts +25 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/features.js +75 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/field_caps.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/field_caps.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/fleet.d.ts +50 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/fleet.js +211 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get.js +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_script.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_script.js +45 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_script_context.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_script_context.js +43 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.js +43 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_source.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_source.js +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/graph.d.ts +18 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/graph.js +70 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/health_report.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/health_report.js +54 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ilm.d.ts +88 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ilm.js +329 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/index.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/index.js +61 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/indices.d.ts +494 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/indices.js +2133 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/inference.d.ts +221 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/inference.js +1167 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/info.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/info.js +43 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ingest.d.ts +95 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ingest.js +389 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/knn_search.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/knn_search.js +59 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/license.d.ts +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/license.js +194 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/logstash.d.ts +32 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/logstash.js +118 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/mget.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/mget.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/migration.d.ts +32 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/migration.js +107 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ml.d.ts +522 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ml.js +2468 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/monitoring.d.ts +18 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/monitoring.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/msearch.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/msearch.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/msearch_template.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/msearch_template.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/mtermvectors.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/mtermvectors.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/nodes.d.ts +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/nodes.js +290 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/open_point_in_time.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/open_point_in_time.js +59 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ping.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ping.js +43 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/profiling.d.ts +39 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/profiling.js +135 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/put_script.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/put_script.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/query_rules.d.ts +67 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/query_rules.js +260 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/rank_eval.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/rank_eval.js +67 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/reindex.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/reindex.js +56 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/reindex_rethrottle.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/reindex_rethrottle.js +45 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/render_search_template.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/render_search_template.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/rollup.d.ts +67 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/rollup.js +263 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/scripts_painless_execute.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/scripts_painless_execute.js +57 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/scroll.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/scroll.js +59 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search.js +75 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_application.d.ts +81 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_application.js +313 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_mvt.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_mvt.js +63 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_shards.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_shards.js +54 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_template.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_template.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/searchable_snapshots.d.ts +39 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/searchable_snapshots.js +167 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/security.d.ts +459 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/security.js +1982 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/shutdown.d.ts +32 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/shutdown.js +125 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/simulate.d.ts +18 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/simulate.js +78 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/slm.d.ts +74 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/slm.js +253 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/snapshot.d.ts +102 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/snapshot.js +410 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/sql.d.ts +53 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/sql.js +205 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ssl.d.ts +18 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ssl.js +54 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/streams.d.ts +32 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/streams.js +96 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/synonyms.d.ts +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/synonyms.js +223 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/tasks.d.ts +32 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/tasks.js +109 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/terms_enum.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/terms_enum.js +59 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/termvectors.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/termvectors.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/text_structure.d.ts +39 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/text_structure.js +148 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/transform.d.ts +101 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/transform.js +386 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/update.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/update.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/update_by_query.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/update_by_query.js +59 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/update_by_query_rethrottle.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/update_by_query_rethrottle.js +45 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/watcher.d.ts +102 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/watcher.js +405 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/xpack.d.ts +25 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/xpack.js +75 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/index.d.ts +265 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/index.js +632 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/types.d.ts +19933 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/types.js +21 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/typesWithBodyKey.d.ts +20606 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/typesWithBodyKey.js +21 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/client.d.ts +152 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/client.js +369 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/helpers.d.ts +184 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/helpers.js +889 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/sniffingTransport.d.ts +4 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/sniffingTransport.js +56 -0
- package/dist/node_modules/@elastic/elasticsearch/node_modules/.bin/arrow2csv +15 -0
- package/dist/node_modules/@elastic/elasticsearch/node_modules/.bin/arrow2csv.cmd +7 -0
- package/dist/node_modules/@elastic/elasticsearch/package.json +1 -0
- package/dist/node_modules/@elastic/elasticsearch/tsconfig.json +38 -0
- package/dist/server/acl-guard.js +107 -0
- package/dist/server/collections/es-report-data-views.js +79 -0
- package/dist/server/collections/es-reports.js +95 -0
- package/dist/server/index.js +58 -0
- package/dist/server/mcp/ElasticReportMcpServer.js +344 -0
- package/dist/server/mcp/ElasticReportToolCatalog.js +417 -0
- package/dist/server/plugin.js +395 -0
- package/dist/server/services/ElasticReportService.js +263 -0
- package/dist/server/services/ElasticsearchConnectionService.js +332 -0
- package/dist/server/services/ReportQueryCompiler.js +858 -0
- package/dist/shared/constants.js +81 -0
- package/dist/shared/types.js +24 -0
- package/package.json +61 -4
- package/server.d.ts +2 -0
- package/server.js +1 -0
- package/src/client/index.tsx +19 -0
- package/src/client-v2/__tests__/elastic-report.test.tsx +311 -0
- package/src/client-v2/api.ts +224 -0
- package/src/client-v2/components/ElasticBasicCharts.tsx +399 -0
- package/src/client-v2/components/ElasticReportBlock.tsx +160 -0
- package/src/client-v2/components/ElasticReportRenderer.tsx +707 -0
- package/src/client-v2/components/HighlightText.tsx +50 -0
- package/src/client-v2/components/ReportSelect.tsx +72 -0
- package/src/client-v2/index.tsx +14 -0
- package/src/client-v2/locale.ts +23 -0
- package/src/client-v2/models/ElasticReportBlockModel.tsx +85 -0
- package/src/client-v2/pages/ElasticReportManager.tsx +1047 -0
- package/src/client-v2/plugin.tsx +52 -0
- package/src/index.ts +11 -0
- package/src/locale/en-US.json +99 -0
- package/src/locale/vi-VN.json +99 -0
- package/src/locale/zh-CN.json +99 -0
- package/src/server/__tests__/query-compiler.test.ts +231 -0
- package/src/server/__tests__/report-mcp-acl.integration.test.ts +377 -0
- package/src/server/acl-guard.ts +103 -0
- package/src/server/collections/es-report-data-views.ts +58 -0
- package/src/server/collections/es-reports.ts +74 -0
- package/src/server/index.ts +15 -0
- package/src/server/mcp/ElasticReportMcpServer.ts +391 -0
- package/src/server/mcp/ElasticReportToolCatalog.ts +417 -0
- package/src/server/plugin.ts +431 -0
- package/src/server/services/ElasticReportService.ts +326 -0
- package/src/server/services/ElasticsearchConnectionService.ts +401 -0
- package/src/server/services/ReportQueryCompiler.ts +1017 -0
- package/src/shared/constants.ts +29 -0
- package/src/shared/types.ts +175 -0
- package/README.md +0 -3
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Licensed to Elasticsearch B.V. under one or more contributor
|
|
4
|
+
* license agreements. See the NOTICE file distributed with
|
|
5
|
+
* this work for additional information regarding copyright
|
|
6
|
+
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
7
|
+
* the Apache License, Version 2.0 (the "License") you may
|
|
8
|
+
* not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing,
|
|
14
|
+
* software distributed under the License is distributed on an
|
|
15
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
16
|
+
* KIND, either express or implied. See the License for the
|
|
17
|
+
* specific language governing permissions and limitations
|
|
18
|
+
* under the License.
|
|
19
|
+
*/
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
const tslib_1 = require("tslib");
|
|
22
|
+
const node_assert_1 = tslib_1.__importDefault(require("node:assert"));
|
|
23
|
+
const transport_1 = require("@elastic/transport");
|
|
24
|
+
class SniffingTransport extends transport_1.Transport {
|
|
25
|
+
sniff(opts) {
|
|
26
|
+
var _a;
|
|
27
|
+
if (this.isSniffing)
|
|
28
|
+
return;
|
|
29
|
+
this.isSniffing = true;
|
|
30
|
+
const request = {
|
|
31
|
+
method: 'GET',
|
|
32
|
+
path: (_a = this.sniffEndpoint) !== null && _a !== void 0 ? _a : '/_nodes/_all/http'
|
|
33
|
+
};
|
|
34
|
+
this.request(request, { id: opts.requestId, meta: true })
|
|
35
|
+
.then(result => {
|
|
36
|
+
var _a, _b;
|
|
37
|
+
(0, node_assert_1.default)(isObject(result.body), 'The body should be an object');
|
|
38
|
+
this.isSniffing = false;
|
|
39
|
+
const protocol = (_b = (_a = result.meta.connection) === null || _a === void 0 ? void 0 : _a.url.protocol) !== null && _b !== void 0 ? _b : 'http:';
|
|
40
|
+
const hosts = this.connectionPool.nodesToHost(result.body.nodes, protocol);
|
|
41
|
+
this.connectionPool.update(hosts);
|
|
42
|
+
result.meta.sniff = { hosts, reason: opts.reason };
|
|
43
|
+
this.diagnostic.emit('sniff', null, result);
|
|
44
|
+
})
|
|
45
|
+
.catch(err => {
|
|
46
|
+
this.isSniffing = false;
|
|
47
|
+
err.meta.sniff = { hosts: [], reason: opts.reason };
|
|
48
|
+
this.diagnostic.emit('sniff', err, null);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.default = SniffingTransport;
|
|
53
|
+
function isObject(obj) {
|
|
54
|
+
return typeof obj === 'object';
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=sniffingTransport.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -x "$basedir/node" ]; then
|
|
9
|
+
"$basedir/node" "$basedir/../../../../apache-arrow/bin/arrow2csv.js" "$@"
|
|
10
|
+
ret=$?
|
|
11
|
+
else
|
|
12
|
+
node "$basedir/../../../../apache-arrow/bin/arrow2csv.js" "$@"
|
|
13
|
+
ret=$?
|
|
14
|
+
fi
|
|
15
|
+
exit $ret
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"@elastic/elasticsearch","version":"8.19.2","versionCanary":"8.19.2-canary.0","description":"The official Elasticsearch client for Node.js","main":"./index.js","types":"index.d.ts","exports":{"require":"./index.js","import":"./index.js","types":"./index.d.ts"},"scripts":{"test":"npm run build && npm run lint && tap","test:unit":"npm run build && tap","test:unit-bun":"bun run build && bunx tap","test:esm":"npm run build && cd test/esm/ && npm install && node test-import.mjs","test:coverage-100":"npm run build && tap --coverage --100","test:coverage-report":"npm run build && tap --coverage && nyc report --reporter=text-lcov > coverage.lcov","test:coverage-ui":"npm run build && tap --coverage --coverage-report=html","test:integration-build":"npm run build && node test/integration/index.js","test:integration":"npm run test:integration-build && env tap run --jobs=1 --allow-empty-coverage --allow-incomplete-coverage --reporter=junit --reporter-file=report-junit.xml generated-tests/","lint":"ts-standard src","lint:fix":"ts-standard --fix src","license-checker":"license-checker --production --onlyAllow='MIT;Apache-2.0;Apache1.1;ISC;BSD-3-Clause;BSD-2-Clause;0BSD'","prebuild":"npm run clean-build && npm run lint","build":"tsc && rm lib/package.json && mv lib/src/* lib/ && rm -rf lib/src","clean-build":"rimraf ./lib && mkdir lib","prepublishOnly":"npm run build"},"keywords":["elasticsearch","elastic","kibana","mapping","REST","search","client","index"],"contributors":[{"name":"Elastic Client Library Maintainers","company":"Elastic BV"}],"license":"Apache-2.0","repository":{"type":"git","url":"https://github.com/elastic/elasticsearch-js.git"},"bugs":{"url":"https://github.com/elastic/elasticsearch-js/issues"},"homepage":"http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html","engines":{"node":">=20"},"devDependencies":{"@elastic/request-converter":"8.18.0","@sinonjs/fake-timers":"14.0.0","@types/debug":"4.1.12","@types/ms":"2.1.0","@types/node":"22.15.2","@types/sinonjs__fake-timers":"8.1.5","@types/split2":"4.2.3","@types/stoppable":"1.1.3","chai":"5.2.0","cross-zip":"4.0.1","desm":"1.3.1","into-stream":"8.0.1","js-yaml":"4.1.0","license-checker":"25.0.1","minimist":"1.2.8","ms":"2.1.3","node-abort-controller":"3.1.1","node-fetch":"2.7.0","ora":"5.4.1","proxy":"2.2.0","rimraf":"6.0.1","semver":"7.7.1","split2":"4.2.0","stoppable":"1.1.0","tap":"21.1.0","ts-node":"10.9.2","ts-standard":"12.0.2","typescript":"5.8.3","workq":"3.0.0","xmlbuilder2":"3.1.1","zx":"7.2.3"},"dependencies":{"@elastic/transport":"^8.9.6","apache-arrow":"18.x - 21.x","tslib":"^2.4.0"},"tap":{"disable-coverage":true,"files":["test/unit/{*,**/*}.test.ts"]},"_lastModified":"2026-11-29T21:31:19.057Z"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2019",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"pretty": true,
|
|
8
|
+
"noEmitOnError": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"removeComments": false,
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"newLine": "lf",
|
|
14
|
+
"noUnusedLocals": true,
|
|
15
|
+
"noFallthroughCasesInSwitch": true,
|
|
16
|
+
"useDefineForClassFields": true,
|
|
17
|
+
"forceConsistentCasingInFileNames": true,
|
|
18
|
+
"skipLibCheck": false,
|
|
19
|
+
"esModuleInterop": true,
|
|
20
|
+
"isolatedModules": true,
|
|
21
|
+
"importHelpers": true,
|
|
22
|
+
"outDir": "lib",
|
|
23
|
+
"lib": [
|
|
24
|
+
"ES2019",
|
|
25
|
+
"dom"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"formatCodeOptions": {
|
|
29
|
+
"identSize": 2,
|
|
30
|
+
"tabSize": 2
|
|
31
|
+
},
|
|
32
|
+
"exclude": [
|
|
33
|
+
"node_modules"
|
|
34
|
+
],
|
|
35
|
+
"include": [
|
|
36
|
+
"./src/**/*.ts"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var acl_guard_exports = {};
|
|
28
|
+
__export(acl_guard_exports, {
|
|
29
|
+
assertAuthenticated: () => assertAuthenticated,
|
|
30
|
+
assertCanManageReports: () => assertCanManageReports,
|
|
31
|
+
canManageReports: () => canManageReports
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(acl_guard_exports);
|
|
34
|
+
var import_constants = require("../shared/constants");
|
|
35
|
+
var import_ElasticReportService = require("./services/ElasticReportService");
|
|
36
|
+
function getCurrentRoles(ctx) {
|
|
37
|
+
var _a, _b, _c;
|
|
38
|
+
const roles = /* @__PURE__ */ new Set();
|
|
39
|
+
const state = ctx == null ? void 0 : ctx.state;
|
|
40
|
+
if (typeof (state == null ? void 0 : state.currentRole) === "string" && state.currentRole.trim()) {
|
|
41
|
+
roles.add(state.currentRole.trim());
|
|
42
|
+
}
|
|
43
|
+
if (Array.isArray(state == null ? void 0 : state.currentRoles)) {
|
|
44
|
+
for (const r of state.currentRoles) {
|
|
45
|
+
if (typeof r === "string" && r.trim()) roles.add(r.trim());
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const headerRole = (_b = (_a = ctx == null ? void 0 : ctx.request) == null ? void 0 : _a.headers) == null ? void 0 : _b["x-role"];
|
|
49
|
+
if (typeof headerRole === "string" && headerRole.trim()) {
|
|
50
|
+
roles.add(headerRole.trim());
|
|
51
|
+
}
|
|
52
|
+
if (Array.isArray((_c = state == null ? void 0 : state.currentUser) == null ? void 0 : _c.roles)) {
|
|
53
|
+
for (const r of state.currentUser.roles) {
|
|
54
|
+
if (typeof r === "string" && r.trim()) roles.add(r.trim());
|
|
55
|
+
else if (r && typeof r === "object" && typeof r.name === "string" && r.name.trim()) {
|
|
56
|
+
roles.add(r.name.trim());
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return Array.from(roles);
|
|
61
|
+
}
|
|
62
|
+
function assertAuthenticated(ctx) {
|
|
63
|
+
const userId = (0, import_ElasticReportService.extractCurrentUserId)(ctx);
|
|
64
|
+
if (userId === void 0 || userId === null || String(userId).trim() === "") {
|
|
65
|
+
const err = new Error("Authentication required");
|
|
66
|
+
err.status = 401;
|
|
67
|
+
throw err;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function canManageReports(app, ctx) {
|
|
71
|
+
const userId = (0, import_ElasticReportService.extractCurrentUserId)(ctx);
|
|
72
|
+
if (userId === void 0 || userId === null) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
const roles = getCurrentRoles(ctx);
|
|
76
|
+
if (roles.includes("root") || roles.includes("admin")) {
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
if (roles.length === 0) {
|
|
80
|
+
const aclLike2 = app.acl;
|
|
81
|
+
if (typeof (aclLike2 == null ? void 0 : aclLike2.can) !== "function") {
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
return Boolean(aclLike2.can({ role: "member", resource: import_constants.SERVICE_RESOURCE, action: "saveReport" }));
|
|
85
|
+
}
|
|
86
|
+
const aclLike = app.acl;
|
|
87
|
+
if (typeof (aclLike == null ? void 0 : aclLike.can) !== "function") {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
return roles.some(
|
|
91
|
+
(role) => Boolean(aclLike.can({ role, resource: import_constants.SERVICE_RESOURCE, action: "saveReport" })) || Boolean(aclLike.can({ role, resource: import_constants.REPORTS_COLLECTION, action: "create" }))
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
function assertCanManageReports(app, ctx) {
|
|
95
|
+
assertAuthenticated(ctx);
|
|
96
|
+
if (!canManageReports(app, ctx)) {
|
|
97
|
+
const err = new Error("Permission denied: Elastic Report management access is required");
|
|
98
|
+
err.status = 403;
|
|
99
|
+
throw err;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
103
|
+
0 && (module.exports = {
|
|
104
|
+
assertAuthenticated,
|
|
105
|
+
assertCanManageReports,
|
|
106
|
+
canManageReports
|
|
107
|
+
});
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var es_report_data_views_exports = {};
|
|
28
|
+
__export(es_report_data_views_exports, {
|
|
29
|
+
default: () => es_report_data_views_default
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(es_report_data_views_exports);
|
|
32
|
+
var import_database = require("@nocobase/database");
|
|
33
|
+
var import_constants = require("../../shared/constants");
|
|
34
|
+
var es_report_data_views_default = (0, import_database.defineCollection)({
|
|
35
|
+
name: import_constants.DATA_VIEWS_COLLECTION,
|
|
36
|
+
title: "Elasticsearch Report Data Views",
|
|
37
|
+
filterTargetKey: "id",
|
|
38
|
+
autoGenId: true,
|
|
39
|
+
timestamps: true,
|
|
40
|
+
fields: [
|
|
41
|
+
{
|
|
42
|
+
type: "string",
|
|
43
|
+
name: "title",
|
|
44
|
+
allowNull: false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
type: "string",
|
|
48
|
+
name: "dataSourceKey",
|
|
49
|
+
allowNull: false,
|
|
50
|
+
index: true
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: "string",
|
|
54
|
+
name: "indexPattern",
|
|
55
|
+
allowNull: false
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: "string",
|
|
59
|
+
name: "timeField",
|
|
60
|
+
allowNull: true
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
type: "text",
|
|
64
|
+
name: "description",
|
|
65
|
+
allowNull: true
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: "json",
|
|
69
|
+
name: "cachedFields",
|
|
70
|
+
allowNull: true
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
type: "context",
|
|
74
|
+
name: "createdById",
|
|
75
|
+
dataIndex: "state.currentUser.id",
|
|
76
|
+
createOnly: true
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
});
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var es_reports_exports = {};
|
|
28
|
+
__export(es_reports_exports, {
|
|
29
|
+
default: () => es_reports_default
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(es_reports_exports);
|
|
32
|
+
var import_database = require("@nocobase/database");
|
|
33
|
+
var import_constants = require("../../shared/constants");
|
|
34
|
+
var es_reports_default = (0, import_database.defineCollection)({
|
|
35
|
+
name: import_constants.REPORTS_COLLECTION,
|
|
36
|
+
title: "Elasticsearch Reports",
|
|
37
|
+
filterTargetKey: "id",
|
|
38
|
+
autoGenId: true,
|
|
39
|
+
timestamps: true,
|
|
40
|
+
fields: [
|
|
41
|
+
{
|
|
42
|
+
type: "string",
|
|
43
|
+
name: "title",
|
|
44
|
+
allowNull: false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
type: "text",
|
|
48
|
+
name: "description",
|
|
49
|
+
allowNull: true
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
type: "bigInt",
|
|
53
|
+
name: "dataViewId",
|
|
54
|
+
allowNull: false,
|
|
55
|
+
index: true
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: "belongsTo",
|
|
59
|
+
name: "dataView",
|
|
60
|
+
target: import_constants.DATA_VIEWS_COLLECTION,
|
|
61
|
+
foreignKey: "dataViewId",
|
|
62
|
+
targetKey: "id",
|
|
63
|
+
constraints: false
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: "string",
|
|
67
|
+
name: "visualization",
|
|
68
|
+
allowNull: false,
|
|
69
|
+
defaultValue: "table"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: "json",
|
|
73
|
+
name: "spec",
|
|
74
|
+
allowNull: false
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
type: "boolean",
|
|
78
|
+
name: "published",
|
|
79
|
+
allowNull: false,
|
|
80
|
+
defaultValue: true,
|
|
81
|
+
index: true
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: "context",
|
|
85
|
+
name: "createdById",
|
|
86
|
+
dataIndex: "state.currentUser.id",
|
|
87
|
+
createOnly: true
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
type: "context",
|
|
91
|
+
name: "updatedById",
|
|
92
|
+
dataIndex: "state.currentUser.id"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
29
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
+
mod
|
|
36
|
+
));
|
|
37
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
|
+
var server_exports = {};
|
|
39
|
+
__export(server_exports, {
|
|
40
|
+
PluginElasticReportServer: () => import_plugin.PluginElasticReportServer,
|
|
41
|
+
default: () => import_plugin.default
|
|
42
|
+
});
|
|
43
|
+
module.exports = __toCommonJS(server_exports);
|
|
44
|
+
var import_plugin = __toESM(require("./plugin"));
|
|
45
|
+
__reExport(server_exports, require("./services/ReportQueryCompiler"), module.exports);
|
|
46
|
+
__reExport(server_exports, require("./services/ElasticsearchConnectionService"), module.exports);
|
|
47
|
+
__reExport(server_exports, require("./services/ElasticReportService"), module.exports);
|
|
48
|
+
__reExport(server_exports, require("./mcp/ElasticReportMcpServer"), module.exports);
|
|
49
|
+
__reExport(server_exports, require("./mcp/ElasticReportToolCatalog"), module.exports);
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
PluginElasticReportServer,
|
|
53
|
+
...require("./services/ReportQueryCompiler"),
|
|
54
|
+
...require("./services/ElasticsearchConnectionService"),
|
|
55
|
+
...require("./services/ElasticReportService"),
|
|
56
|
+
...require("./mcp/ElasticReportMcpServer"),
|
|
57
|
+
...require("./mcp/ElasticReportToolCatalog")
|
|
58
|
+
});
|