plugin-elastic-report 0.0.0-stage → 0.7.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/ai/skills/elastic-report/SKILLS.md +34 -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/357.0dd385384cab5dbf.js +10 -0
- package/dist/client/index.js +10 -0
- package/dist/client-v2/851.142c93fc6d666b28.js +10 -0
- package/dist/client-v2/857.a5bf9637d5fd4ef5.js +10 -0
- package/dist/client-v2/877.f4095a3dbcadf98f.js +10 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/externalVersion.js +21 -0
- package/dist/index.js +48 -0
- package/dist/locale/en-US.json +198 -0
- package/dist/locale/vi-VN.json +198 -0
- package/dist/locale/zh-CN.json +198 -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 +179 -0
- package/dist/server/collections/es-report-data-views.js +85 -0
- package/dist/server/collections/es-reports.js +101 -0
- package/dist/server/index.js +58 -0
- package/dist/server/mcp/ElasticReportMcpServer.js +344 -0
- package/dist/server/mcp/ElasticReportToolCatalog.js +639 -0
- package/dist/server/plugin.js +529 -0
- package/dist/server/services/ElasticReportService.js +377 -0
- package/dist/server/services/ElasticsearchConnectionService.js +572 -0
- package/dist/server/services/ReportExportService.js +243 -0
- package/dist/server/services/ReportQueryCompiler.js +1299 -0
- package/dist/server/workflow/ElasticReportQueryInstruction.js +123 -0
- package/dist/shared/constants.js +96 -0
- package/dist/shared/types.js +24 -0
- package/package.json +62 -4
- package/server.d.ts +2 -0
- package/server.js +1 -0
- package/src/client/index.tsx +34 -0
- package/src/client/workflow-instructions.tsx +44 -0
- package/src/client-v2/__tests__/elastic-report.test.tsx +791 -0
- package/src/client-v2/__tests__/kql-autocomplete.test.ts +178 -0
- package/src/client-v2/api.ts +320 -0
- package/src/client-v2/bus/DashboardFilterBus.ts +212 -0
- package/src/client-v2/components/ElasticBasicCharts.tsx +652 -0
- package/src/client-v2/components/ElasticFilterBar.tsx +372 -0
- package/src/client-v2/components/ElasticKqlInput.tsx +421 -0
- package/src/client-v2/components/ElasticReportBlock.tsx +306 -0
- package/src/client-v2/components/ElasticReportRenderer.tsx +1257 -0
- package/src/client-v2/components/HighlightText.tsx +50 -0
- package/src/client-v2/components/ReportSelect.tsx +85 -0
- package/src/client-v2/index.tsx +14 -0
- package/src/client-v2/locale.ts +23 -0
- package/src/client-v2/models/ElasticFilterBarBlockModel.tsx +115 -0
- package/src/client-v2/models/ElasticReportBlockModel.tsx +118 -0
- package/src/client-v2/pages/ElasticReportManager.tsx +1453 -0
- package/src/client-v2/plugin.tsx +72 -0
- package/src/client-v2/utils/kqlAutocomplete.ts +861 -0
- package/src/client-v2/workflow/instructions.tsx +149 -0
- package/src/index.ts +11 -0
- package/src/locale/en-US.json +198 -0
- package/src/locale/vi-VN.json +198 -0
- package/src/locale/zh-CN.json +198 -0
- package/src/server/__tests__/query-compiler.test.ts +620 -0
- package/src/server/__tests__/report-mcp-acl.integration.test.ts +645 -0
- package/src/server/acl-guard.ts +194 -0
- package/src/server/collections/es-report-data-views.ts +64 -0
- package/src/server/collections/es-reports.ts +80 -0
- package/src/server/index.ts +15 -0
- package/src/server/mcp/ElasticReportMcpServer.ts +391 -0
- package/src/server/mcp/ElasticReportToolCatalog.ts +663 -0
- package/src/server/plugin.ts +599 -0
- package/src/server/services/ElasticReportService.ts +486 -0
- package/src/server/services/ElasticsearchConnectionService.ts +728 -0
- package/src/server/services/ReportExportService.ts +282 -0
- package/src/server/services/ReportQueryCompiler.ts +1552 -0
- package/src/server/workflow/ElasticReportQueryInstruction.ts +124 -0
- package/src/shared/constants.ts +36 -0
- package/src/shared/types.ts +272 -0
- package/README.md +0 -3
|
@@ -0,0 +1,377 @@
|
|
|
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 ElasticReportService_exports = {};
|
|
28
|
+
__export(ElasticReportService_exports, {
|
|
29
|
+
ElasticReportService: () => ElasticReportService,
|
|
30
|
+
extractCurrentUserId: () => extractCurrentUserId,
|
|
31
|
+
extractServerUserContext: () => extractServerUserContext
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(ElasticReportService_exports);
|
|
34
|
+
var import_constants = require("../../shared/constants");
|
|
35
|
+
var import_acl_guard = require("../acl-guard");
|
|
36
|
+
var import_ReportQueryCompiler = require("./ReportQueryCompiler");
|
|
37
|
+
function isRecord(value) {
|
|
38
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
39
|
+
}
|
|
40
|
+
function toPlainObject(modelOrRow) {
|
|
41
|
+
if (isRecord(modelOrRow) && typeof modelOrRow.toJSON === "function") {
|
|
42
|
+
const json = modelOrRow.toJSON();
|
|
43
|
+
return isRecord(json) ? json : {};
|
|
44
|
+
}
|
|
45
|
+
return isRecord(modelOrRow) ? modelOrRow : {};
|
|
46
|
+
}
|
|
47
|
+
function serializeDataView(row) {
|
|
48
|
+
const plain = toPlainObject(row);
|
|
49
|
+
return {
|
|
50
|
+
id: plain.id ?? "",
|
|
51
|
+
title: typeof plain.title === "string" ? plain.title : "",
|
|
52
|
+
dataSourceKey: typeof plain.dataSourceKey === "string" ? plain.dataSourceKey : "",
|
|
53
|
+
indexPattern: typeof plain.indexPattern === "string" ? plain.indexPattern : "",
|
|
54
|
+
timeField: typeof plain.timeField === "string" && plain.timeField.trim() ? plain.timeField.trim() : null,
|
|
55
|
+
description: typeof plain.description === "string" ? plain.description : null,
|
|
56
|
+
allowedRoles: (0, import_acl_guard.normalizeRoleList)(plain.allowedRoles),
|
|
57
|
+
cachedFields: Array.isArray(plain.cachedFields) ? plain.cachedFields : null,
|
|
58
|
+
...typeof plain.createdAt === "string" ? { createdAt: plain.createdAt } : {},
|
|
59
|
+
...typeof plain.updatedAt === "string" ? { updatedAt: plain.updatedAt } : {}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function serializeReport(row) {
|
|
63
|
+
const plain = toPlainObject(row);
|
|
64
|
+
const spec = (0, import_ReportQueryCompiler.normalizeReportSpec)(plain.spec, plain.visualization);
|
|
65
|
+
return {
|
|
66
|
+
id: plain.id ?? "",
|
|
67
|
+
title: typeof plain.title === "string" ? plain.title : "",
|
|
68
|
+
description: typeof plain.description === "string" ? plain.description : null,
|
|
69
|
+
dataViewId: plain.dataViewId ?? "",
|
|
70
|
+
dataView: isRecord(plain.dataView) ? serializeDataView(plain.dataView) : null,
|
|
71
|
+
visualization: spec.visualization,
|
|
72
|
+
spec,
|
|
73
|
+
published: plain.published !== false,
|
|
74
|
+
allowedRoles: (0, import_acl_guard.normalizeRoleList)(plain.allowedRoles),
|
|
75
|
+
...typeof plain.createdAt === "string" ? { createdAt: plain.createdAt } : {},
|
|
76
|
+
...typeof plain.updatedAt === "string" ? { updatedAt: plain.updatedAt } : {}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
class ElasticReportService {
|
|
80
|
+
constructor(app, connections) {
|
|
81
|
+
this.app = app;
|
|
82
|
+
this.connections = connections;
|
|
83
|
+
}
|
|
84
|
+
async listConnections() {
|
|
85
|
+
return this.connections.listConnections();
|
|
86
|
+
}
|
|
87
|
+
async testConnection(dataSourceKey, indexPattern = "*") {
|
|
88
|
+
const client = await this.connections.getClient(dataSourceKey);
|
|
89
|
+
return client.testConnection(indexPattern);
|
|
90
|
+
}
|
|
91
|
+
async listAvailableRoles() {
|
|
92
|
+
if (!this.app.db.hasCollection("roles")) {
|
|
93
|
+
return [];
|
|
94
|
+
}
|
|
95
|
+
const rows = await this.app.db.getRepository("roles").find({
|
|
96
|
+
sort: ["name"]
|
|
97
|
+
});
|
|
98
|
+
return rows.map((row) => {
|
|
99
|
+
const plain = toPlainObject(row);
|
|
100
|
+
const name = typeof plain.name === "string" ? plain.name.trim() : "";
|
|
101
|
+
const rawTitle = typeof plain.title === "string" && plain.title.trim() ? plain.title.trim() : name;
|
|
102
|
+
const title = rawTitle.replace(/^\{\{\s*t\(\s*['"](.+?)['"]\s*\)\s*\}\}$/, "$1");
|
|
103
|
+
return { name, title };
|
|
104
|
+
}).filter((r) => Boolean(r.name) && r.name !== "anonymous");
|
|
105
|
+
}
|
|
106
|
+
async listIndices(dataSourceKey, indexPattern = "*") {
|
|
107
|
+
const client = await this.connections.getClient(dataSourceKey);
|
|
108
|
+
return client.readIndices(indexPattern);
|
|
109
|
+
}
|
|
110
|
+
async listDataViews() {
|
|
111
|
+
const repo = this.app.db.getRepository(import_constants.DATA_VIEWS_COLLECTION);
|
|
112
|
+
const rows = await repo.find({ sort: ["-id"] });
|
|
113
|
+
return rows.map(serializeDataView);
|
|
114
|
+
}
|
|
115
|
+
async getDataView(dataViewId) {
|
|
116
|
+
const repo = this.app.db.getRepository(import_constants.DATA_VIEWS_COLLECTION);
|
|
117
|
+
const row = await repo.findOne({ filterByTk: dataViewId });
|
|
118
|
+
if (!row) {
|
|
119
|
+
throw new Error(`Data view "${String(dataViewId)}" was not found`);
|
|
120
|
+
}
|
|
121
|
+
return serializeDataView(row);
|
|
122
|
+
}
|
|
123
|
+
async inspectFieldsBySource(dataSourceKey, indexPattern) {
|
|
124
|
+
const client = await this.connections.getClient(dataSourceKey);
|
|
125
|
+
return client.inspectFields(indexPattern);
|
|
126
|
+
}
|
|
127
|
+
async inspectDataViewFields(dataViewId, refresh = false) {
|
|
128
|
+
const dataView = await this.getDataView(dataViewId);
|
|
129
|
+
if (!refresh && Array.isArray(dataView.cachedFields) && dataView.cachedFields.length > 0) {
|
|
130
|
+
return { dataView, fields: dataView.cachedFields };
|
|
131
|
+
}
|
|
132
|
+
const fields = await this.inspectFieldsBySource(dataView.dataSourceKey, dataView.indexPattern);
|
|
133
|
+
const repo = this.app.db.getRepository(import_constants.DATA_VIEWS_COLLECTION);
|
|
134
|
+
await repo.update({
|
|
135
|
+
filterByTk: dataView.id,
|
|
136
|
+
values: { cachedFields: fields }
|
|
137
|
+
});
|
|
138
|
+
return {
|
|
139
|
+
dataView: { ...dataView, cachedFields: fields },
|
|
140
|
+
fields
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
async upsertDataView(input, userId) {
|
|
144
|
+
var _a, _b, _c, _d;
|
|
145
|
+
const title = (_a = input.title) == null ? void 0 : _a.trim();
|
|
146
|
+
const dataSourceKey = (_b = input.dataSourceKey) == null ? void 0 : _b.trim();
|
|
147
|
+
const indexPattern = (_c = input.indexPattern) == null ? void 0 : _c.trim();
|
|
148
|
+
if (!title) throw new Error("Data view title is required");
|
|
149
|
+
if (!dataSourceKey) throw new Error("Elasticsearch dataSourceKey is required");
|
|
150
|
+
if (!indexPattern) throw new Error("Index pattern is required");
|
|
151
|
+
const fields = await this.inspectFieldsBySource(dataSourceKey, indexPattern);
|
|
152
|
+
let timeField = ((_d = input.timeField) == null ? void 0 : _d.trim()) || null;
|
|
153
|
+
if (!timeField) {
|
|
154
|
+
const autoDate = fields.find((f) => f.name === "@timestamp" && (f.type === "date" || f.type === "date_nanos")) ?? fields.find((f) => f.type === "date" || f.type === "date_nanos");
|
|
155
|
+
timeField = (autoDate == null ? void 0 : autoDate.name) ?? null;
|
|
156
|
+
}
|
|
157
|
+
const repo = this.app.db.getRepository(import_constants.DATA_VIEWS_COLLECTION);
|
|
158
|
+
const values = {
|
|
159
|
+
title,
|
|
160
|
+
dataSourceKey,
|
|
161
|
+
indexPattern,
|
|
162
|
+
timeField,
|
|
163
|
+
description: input.description ?? null,
|
|
164
|
+
cachedFields: fields,
|
|
165
|
+
...input.allowedRoles !== void 0 ? { allowedRoles: (0, import_acl_guard.normalizeRoleList)(input.allowedRoles) } : {}
|
|
166
|
+
};
|
|
167
|
+
if (input.id !== void 0 && input.id !== null && String(input.id).trim() !== "") {
|
|
168
|
+
await repo.update({
|
|
169
|
+
filterByTk: input.id,
|
|
170
|
+
values
|
|
171
|
+
});
|
|
172
|
+
return this.getDataView(input.id);
|
|
173
|
+
}
|
|
174
|
+
if (values.allowedRoles === void 0) {
|
|
175
|
+
values.allowedRoles = [];
|
|
176
|
+
}
|
|
177
|
+
if (userId !== void 0) {
|
|
178
|
+
values.createdById = userId;
|
|
179
|
+
}
|
|
180
|
+
const created = await repo.create({ values });
|
|
181
|
+
return serializeDataView(created);
|
|
182
|
+
}
|
|
183
|
+
async listReports(options) {
|
|
184
|
+
var _a;
|
|
185
|
+
const repo = this.app.db.getRepository(import_constants.REPORTS_COLLECTION);
|
|
186
|
+
const filter = {};
|
|
187
|
+
if (options == null ? void 0 : options.publishedOnly) {
|
|
188
|
+
filter.published = true;
|
|
189
|
+
}
|
|
190
|
+
if ((_a = options == null ? void 0 : options.search) == null ? void 0 : _a.trim()) {
|
|
191
|
+
filter.title = { $includes: options.search.trim() };
|
|
192
|
+
}
|
|
193
|
+
const rows = await repo.find({
|
|
194
|
+
filter,
|
|
195
|
+
appends: ["dataView"],
|
|
196
|
+
sort: ["-updatedAt", "-id"]
|
|
197
|
+
});
|
|
198
|
+
return rows.map(serializeReport);
|
|
199
|
+
}
|
|
200
|
+
async getReport(reportId) {
|
|
201
|
+
const repo = this.app.db.getRepository(import_constants.REPORTS_COLLECTION);
|
|
202
|
+
const row = await repo.findOne({
|
|
203
|
+
filterByTk: reportId,
|
|
204
|
+
appends: ["dataView"]
|
|
205
|
+
});
|
|
206
|
+
if (!row) {
|
|
207
|
+
throw new Error(`Report "${String(reportId)}" was not found`);
|
|
208
|
+
}
|
|
209
|
+
return serializeReport(row);
|
|
210
|
+
}
|
|
211
|
+
async saveReport(input, userId) {
|
|
212
|
+
var _a;
|
|
213
|
+
const title = (_a = input.title) == null ? void 0 : _a.trim();
|
|
214
|
+
if (!title) {
|
|
215
|
+
throw new Error("Report title is required");
|
|
216
|
+
}
|
|
217
|
+
const dataView = await this.getDataView(input.dataViewId);
|
|
218
|
+
const spec = (0, import_ReportQueryCompiler.normalizeReportSpec)(input.spec);
|
|
219
|
+
if (spec.queryMode !== "simple" && spec.query && spec.query.trim()) {
|
|
220
|
+
(0, import_ReportQueryCompiler.compileKqlToQueryDsl)(spec.query);
|
|
221
|
+
}
|
|
222
|
+
const repo = this.app.db.getRepository(import_constants.REPORTS_COLLECTION);
|
|
223
|
+
const values = {
|
|
224
|
+
title,
|
|
225
|
+
description: input.description ?? null,
|
|
226
|
+
dataViewId: dataView.id,
|
|
227
|
+
visualization: spec.visualization,
|
|
228
|
+
spec,
|
|
229
|
+
published: input.published !== false,
|
|
230
|
+
...input.allowedRoles !== void 0 ? { allowedRoles: (0, import_acl_guard.normalizeRoleList)(input.allowedRoles) } : {},
|
|
231
|
+
...userId !== void 0 ? { updatedById: userId } : {}
|
|
232
|
+
};
|
|
233
|
+
if (input.id !== void 0 && input.id !== null && String(input.id).trim() !== "") {
|
|
234
|
+
await repo.update({
|
|
235
|
+
filterByTk: input.id,
|
|
236
|
+
values
|
|
237
|
+
});
|
|
238
|
+
return this.getReport(input.id);
|
|
239
|
+
}
|
|
240
|
+
if (values.allowedRoles === void 0) {
|
|
241
|
+
values.allowedRoles = [];
|
|
242
|
+
}
|
|
243
|
+
if (userId !== void 0) {
|
|
244
|
+
values.createdById = userId;
|
|
245
|
+
}
|
|
246
|
+
const created = await repo.create({ values });
|
|
247
|
+
const plain = toPlainObject(created);
|
|
248
|
+
return this.getReport(plain.id);
|
|
249
|
+
}
|
|
250
|
+
async previewReport(params) {
|
|
251
|
+
var _a, _b, _c, _d, _e;
|
|
252
|
+
const { dataView, fields } = await this.inspectDataViewFields(params.dataViewId, false);
|
|
253
|
+
const normalizedSpec = (0, import_ReportQueryCompiler.normalizeReportSpec)(params.spec);
|
|
254
|
+
const client = await this.connections.getClient(dataView.dataSourceKey);
|
|
255
|
+
let activePitId = (_a = params.overrides) == null ? void 0 : _a.pitId;
|
|
256
|
+
const needsDeepCursor = normalizedSpec.visualization === "table" && !activePitId && ((((_b = params.overrides) == null ? void 0 : _b.page) ?? 1) * (((_c = params.overrides) == null ? void 0 : _c.pageSize) ?? normalizedSpec.pageSize ?? 20) > 1e4 || Boolean((_d = params.overrides) == null ? void 0 : _d.searchAfter));
|
|
257
|
+
if (needsDeepCursor && !((_e = params.overrides) == null ? void 0 : _e.searchAfter)) {
|
|
258
|
+
activePitId = await client.openPit(dataView.indexPattern, "1m") ?? void 0;
|
|
259
|
+
}
|
|
260
|
+
const { body, effectiveSpec } = (0, import_ReportQueryCompiler.compileSearchRequest)({
|
|
261
|
+
spec: normalizedSpec,
|
|
262
|
+
overrides: params.overrides,
|
|
263
|
+
timeField: dataView.timeField,
|
|
264
|
+
fields,
|
|
265
|
+
maxRowsCap: params.forMcp ? import_constants.MAX_MCP_PREVIEW_SIZE : import_constants.MAX_UI_PAGE_SIZE,
|
|
266
|
+
userContext: params.userContext,
|
|
267
|
+
usePit: Boolean(activePitId)
|
|
268
|
+
});
|
|
269
|
+
const rawSearch = await client.search(
|
|
270
|
+
dataView.indexPattern,
|
|
271
|
+
body,
|
|
272
|
+
activePitId ? { pitId: activePitId } : void 0
|
|
273
|
+
);
|
|
274
|
+
const result = (0, import_ReportQueryCompiler.parseSearchResponse)(rawSearch, body, effectiveSpec, dataView.timeField);
|
|
275
|
+
if (activePitId && !result.pitId) {
|
|
276
|
+
result.pitId = activePitId;
|
|
277
|
+
}
|
|
278
|
+
return { dataView, result };
|
|
279
|
+
}
|
|
280
|
+
async runSavedReport(params) {
|
|
281
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
282
|
+
const report = await this.getReport(params.reportId);
|
|
283
|
+
if (params.requirePublished && !report.published) {
|
|
284
|
+
throw new Error(`Report "${report.title}" is not published`);
|
|
285
|
+
}
|
|
286
|
+
const runtimeOverrides = report.spec.allowInteractiveControls === false ? {
|
|
287
|
+
contextFilters: (_a = params.overrides) == null ? void 0 : _a.contextFilters,
|
|
288
|
+
sharedFilters: (_b = params.overrides) == null ? void 0 : _b.sharedFilters,
|
|
289
|
+
timeZone: (_c = params.overrides) == null ? void 0 : _c.timeZone,
|
|
290
|
+
page: (_d = params.overrides) == null ? void 0 : _d.page,
|
|
291
|
+
pageSize: (_e = params.overrides) == null ? void 0 : _e.pageSize,
|
|
292
|
+
searchAfter: (_f = params.overrides) == null ? void 0 : _f.searchAfter,
|
|
293
|
+
pitId: (_g = params.overrides) == null ? void 0 : _g.pitId
|
|
294
|
+
} : params.overrides;
|
|
295
|
+
const { dataView, result } = await this.previewReport({
|
|
296
|
+
dataViewId: report.dataViewId,
|
|
297
|
+
spec: report.spec,
|
|
298
|
+
overrides: runtimeOverrides,
|
|
299
|
+
forMcp: params.forMcp,
|
|
300
|
+
userContext: params.userContext
|
|
301
|
+
});
|
|
302
|
+
return { report, dataView, result };
|
|
303
|
+
}
|
|
304
|
+
async inspectFieldTopValues(params) {
|
|
305
|
+
const rawField = params.field.trim();
|
|
306
|
+
if (!rawField) {
|
|
307
|
+
throw new Error("field is required");
|
|
308
|
+
}
|
|
309
|
+
let baseSpec = (0, import_ReportQueryCompiler.normalizeReportSpec)({ visualization: "bar" });
|
|
310
|
+
let targetDataViewId = params.dataViewId;
|
|
311
|
+
if (params.reportId !== void 0 && params.reportId !== null && String(params.reportId).trim() !== "") {
|
|
312
|
+
const report = await this.getReport(params.reportId);
|
|
313
|
+
targetDataViewId = report.dataViewId;
|
|
314
|
+
baseSpec = report.spec;
|
|
315
|
+
}
|
|
316
|
+
const { dataView, fields } = await this.inspectDataViewFields(targetDataViewId, false);
|
|
317
|
+
const fieldMap = (0, import_ReportQueryCompiler.buildFieldCapabilityMap)(fields);
|
|
318
|
+
const resolvedField = (0, import_ReportQueryCompiler.resolveAggregatableField)(rawField, fieldMap);
|
|
319
|
+
const topSize = Math.max(1, Math.min(25, Math.trunc(params.size ?? 10)));
|
|
320
|
+
const probeSpec = (0, import_ReportQueryCompiler.normalizeReportSpec)({
|
|
321
|
+
...baseSpec,
|
|
322
|
+
visualization: "bar",
|
|
323
|
+
chart: {
|
|
324
|
+
bucketType: "terms",
|
|
325
|
+
bucketField: resolvedField,
|
|
326
|
+
topN: topSize,
|
|
327
|
+
metricType: "count"
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
const { body, effectiveSpec } = (0, import_ReportQueryCompiler.compileSearchRequest)({
|
|
331
|
+
spec: probeSpec,
|
|
332
|
+
overrides: params.overrides,
|
|
333
|
+
timeField: dataView.timeField,
|
|
334
|
+
fields,
|
|
335
|
+
userContext: params.userContext
|
|
336
|
+
});
|
|
337
|
+
const client = await this.connections.getClient(dataView.dataSourceKey);
|
|
338
|
+
const rawSearch = await client.search(dataView.indexPattern, body);
|
|
339
|
+
const parsed = (0, import_ReportQueryCompiler.parseSearchResponse)(rawSearch, body, effectiveSpec, dataView.timeField);
|
|
340
|
+
const totalDocs = parsed.total;
|
|
341
|
+
return {
|
|
342
|
+
field: rawField,
|
|
343
|
+
resolvedField,
|
|
344
|
+
totalDocs,
|
|
345
|
+
buckets: parsed.series.map((pt) => ({
|
|
346
|
+
value: pt.label,
|
|
347
|
+
count: pt.count,
|
|
348
|
+
percentage: totalDocs > 0 ? Number((pt.count / totalDocs * 100).toFixed(1)) : 0
|
|
349
|
+
}))
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
function extractCurrentUserId(ctx) {
|
|
354
|
+
var _a, _b, _c, _d;
|
|
355
|
+
const stateUser = (_b = (_a = ctx == null ? void 0 : ctx.state) == null ? void 0 : _a.currentUser) == null ? void 0 : _b.id;
|
|
356
|
+
if (stateUser !== void 0 && stateUser !== null) return stateUser;
|
|
357
|
+
const authUser = (_d = (_c = ctx == null ? void 0 : ctx.auth) == null ? void 0 : _c.user) == null ? void 0 : _d.id;
|
|
358
|
+
if (authUser !== void 0 && authUser !== null) return authUser;
|
|
359
|
+
return void 0;
|
|
360
|
+
}
|
|
361
|
+
function extractServerUserContext(ctx) {
|
|
362
|
+
var _a;
|
|
363
|
+
const stateUser = (_a = ctx == null ? void 0 : ctx.state) == null ? void 0 : _a.currentUser;
|
|
364
|
+
const effectiveRole = (0, import_acl_guard.getEffectiveRoles)(ctx)[0];
|
|
365
|
+
return {
|
|
366
|
+
userId: extractCurrentUserId(ctx),
|
|
367
|
+
...typeof (stateUser == null ? void 0 : stateUser.username) === "string" ? { username: stateUser.username } : {},
|
|
368
|
+
...typeof (stateUser == null ? void 0 : stateUser.email) === "string" ? { email: stateUser.email } : {},
|
|
369
|
+
...effectiveRole ? { role: effectiveRole } : {}
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
373
|
+
0 && (module.exports = {
|
|
374
|
+
ElasticReportService,
|
|
375
|
+
extractCurrentUserId,
|
|
376
|
+
extractServerUserContext
|
|
377
|
+
});
|