mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Revert "[Telemetry] enforce import export type (#96199)"
This reverts commit ac46802830
.
This commit is contained in:
parent
9a0c73e515
commit
6b9ba10958
22 changed files with 44 additions and 48 deletions
|
@ -7,7 +7,6 @@
|
|||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"isolatedModules": true,
|
||||
"sourceMap": true,
|
||||
"sourceRoot": "../../../../../packages/kbn-analytics/src",
|
||||
"types": [
|
||||
|
|
|
@ -7,9 +7,7 @@
|
|||
*/
|
||||
|
||||
export { ErrorReporter } from './error_reporter';
|
||||
|
||||
export type { TaskContext } from './task_context';
|
||||
export { createTaskContext } from './task_context';
|
||||
export { TaskContext, createTaskContext } from './task_context';
|
||||
|
||||
export { parseConfigsTask } from './parse_configs_task';
|
||||
export { extractCollectorsTask } from './extract_collectors_task';
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"sourceMap": true,
|
||||
"sourceRoot": "../../../../packages/kbn-telemetry-tools/src",
|
||||
"isolatedModules": true
|
||||
"sourceRoot": "../../../../packages/kbn-telemetry-tools/src"
|
||||
},
|
||||
"include": [
|
||||
"src/**/*",
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"isolatedModules": true
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/*",
|
||||
|
|
|
@ -9,5 +9,7 @@
|
|||
export { getTelemetryOptIn } from './get_telemetry_opt_in';
|
||||
export { getTelemetrySendUsageFrom } from './get_telemetry_send_usage_from';
|
||||
export { getTelemetryAllowChangingOptInStatus } from './get_telemetry_allow_changing_opt_in_status';
|
||||
export { getTelemetryFailureDetails } from './get_telemetry_failure_details';
|
||||
export type { TelemetryFailureDetails } from './get_telemetry_failure_details';
|
||||
export {
|
||||
getTelemetryFailureDetails,
|
||||
TelemetryFailureDetails,
|
||||
} from './get_telemetry_failure_details';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import { PluginInitializerContext } from 'kibana/public';
|
||||
import { TelemetryPlugin, TelemetryPluginConfig } from './plugin';
|
||||
export type { TelemetryPluginStart, TelemetryPluginSetup } from './plugin';
|
||||
export { TelemetryPluginStart, TelemetryPluginSetup } from './plugin';
|
||||
|
||||
export function plugin(initializerContext: PluginInitializerContext<TelemetryPluginConfig>) {
|
||||
return new TelemetryPlugin(initializerContext);
|
||||
|
|
|
@ -13,7 +13,7 @@ import { configSchema, TelemetryConfigType } from './config';
|
|||
|
||||
export { FetcherTask } from './fetcher';
|
||||
export { handleOldSettings } from './handle_old_settings';
|
||||
export type { TelemetryPluginSetup, TelemetryPluginStart } from './plugin';
|
||||
export { TelemetryPluginSetup, TelemetryPluginStart } from './plugin';
|
||||
|
||||
export const config: PluginConfigDescriptor<TelemetryConfigType> = {
|
||||
schema: configSchema,
|
||||
|
@ -34,12 +34,9 @@ export { constants };
|
|||
export {
|
||||
getClusterUuids,
|
||||
getLocalStats,
|
||||
DATA_TELEMETRY_ID,
|
||||
buildDataTelemetryPayload,
|
||||
} from './telemetry_collection';
|
||||
|
||||
export type {
|
||||
TelemetryLocalStats,
|
||||
DATA_TELEMETRY_ID,
|
||||
DataTelemetryIndex,
|
||||
DataTelemetryPayload,
|
||||
buildDataTelemetryPayload,
|
||||
} from './telemetry_collection';
|
||||
|
|
|
@ -7,5 +7,10 @@
|
|||
*/
|
||||
|
||||
export { DATA_TELEMETRY_ID } from './constants';
|
||||
export { getDataTelemetry, buildDataTelemetryPayload } from './get_data_telemetry';
|
||||
export type { DataTelemetryPayload, DataTelemetryIndex } from './get_data_telemetry';
|
||||
|
||||
export {
|
||||
getDataTelemetry,
|
||||
buildDataTelemetryPayload,
|
||||
DataTelemetryPayload,
|
||||
DataTelemetryIndex,
|
||||
} from './get_data_telemetry';
|
||||
|
|
|
@ -6,9 +6,12 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export { DATA_TELEMETRY_ID, buildDataTelemetryPayload } from './get_data_telemetry';
|
||||
export type { DataTelemetryIndex, DataTelemetryPayload } from './get_data_telemetry';
|
||||
export { getLocalStats } from './get_local_stats';
|
||||
export type { TelemetryLocalStats } from './get_local_stats';
|
||||
export {
|
||||
DATA_TELEMETRY_ID,
|
||||
DataTelemetryIndex,
|
||||
DataTelemetryPayload,
|
||||
buildDataTelemetryPayload,
|
||||
} from './get_data_telemetry';
|
||||
export { getLocalStats, TelemetryLocalStats } from './get_local_stats';
|
||||
export { getClusterUuids } from './get_cluster_stats';
|
||||
export { registerCollection } from './register_collection';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
export { getTelemetrySavedObject } from './get_telemetry_saved_object';
|
||||
export { updateTelemetrySavedObject } from './update_telemetry_saved_object';
|
||||
export type {
|
||||
export {
|
||||
TelemetrySavedObject,
|
||||
TelemetrySavedObjectAttributes,
|
||||
} from '../../common/telemetry_config/types';
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"isolatedModules": true
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"public/**/**/*",
|
||||
|
|
|
@ -16,7 +16,7 @@ export function plugin(initializerContext: PluginInitializerContext) {
|
|||
return new TelemetryCollectionManagerPlugin(initializerContext);
|
||||
}
|
||||
|
||||
export type {
|
||||
export {
|
||||
TelemetryCollectionManagerPluginSetup,
|
||||
TelemetryCollectionManagerPluginStart,
|
||||
StatsCollectionConfig,
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"isolatedModules": true
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"server/**/*",
|
||||
|
|
|
@ -10,7 +10,7 @@ import { TelemetryManagementSectionPlugin } from './plugin';
|
|||
|
||||
export { OptInExampleFlyout } from './components';
|
||||
|
||||
export type { TelemetryManagementSectionPluginSetup } from './plugin';
|
||||
export { TelemetryManagementSectionPluginSetup } from './plugin';
|
||||
export function plugin() {
|
||||
return new TelemetryManagementSectionPlugin();
|
||||
}
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"isolatedModules": true
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"public/**/*",
|
||||
|
|
|
@ -10,7 +10,7 @@ import { PluginInitializerContext } from '../../../core/public';
|
|||
import { UsageCollectionPlugin } from './plugin';
|
||||
|
||||
export { METRIC_TYPE } from '@kbn/analytics';
|
||||
export type { UsageCollectionSetup, UsageCollectionStart } from './plugin';
|
||||
export { UsageCollectionSetup, UsageCollectionStart } from './plugin';
|
||||
export { TrackApplicationView } from './components';
|
||||
|
||||
export function plugin(initializerContext: PluginInitializerContext) {
|
||||
|
|
|
@ -6,10 +6,9 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export { CollectorSet } from './collector_set';
|
||||
export type { CollectorSetPublic } from './collector_set';
|
||||
export { Collector } from './collector';
|
||||
export type {
|
||||
export { CollectorSet, CollectorSetPublic } from './collector_set';
|
||||
export {
|
||||
Collector,
|
||||
AllowedSchemaTypes,
|
||||
AllowedSchemaNumberTypes,
|
||||
SchemaField,
|
||||
|
@ -17,5 +16,4 @@ export type {
|
|||
CollectorOptions,
|
||||
CollectorFetchContext,
|
||||
} from './collector';
|
||||
export { UsageCollector } from './usage_collector';
|
||||
export type { UsageCollectorOptions } from './usage_collector';
|
||||
export { UsageCollector, UsageCollectorOptions } from './usage_collector';
|
||||
|
|
|
@ -9,16 +9,17 @@
|
|||
import { PluginInitializerContext } from 'src/core/server';
|
||||
import { UsageCollectionPlugin } from './plugin';
|
||||
|
||||
export { Collector } from './collector';
|
||||
export type {
|
||||
export {
|
||||
AllowedSchemaTypes,
|
||||
MakeSchemaFrom,
|
||||
SchemaField,
|
||||
CollectorOptions,
|
||||
UsageCollectorOptions,
|
||||
Collector,
|
||||
CollectorFetchContext,
|
||||
} from './collector';
|
||||
export type { UsageCollectionSetup } from './plugin';
|
||||
|
||||
export { UsageCollectionSetup } from './plugin';
|
||||
export { config } from './config';
|
||||
export const plugin = (initializerContext: PluginInitializerContext) =>
|
||||
new UsageCollectionPlugin(initializerContext);
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"isolatedModules": true
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"public/**/*",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { TelemetryCollectionXpackPlugin } from './plugin';
|
||||
|
||||
export type { ESLicense } from './telemetry_collection';
|
||||
export { ESLicense } from './telemetry_collection';
|
||||
|
||||
// This exports static code and TypeScript types,
|
||||
// as well as, Kibana Platform `plugin()` initializer.
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
export type { ESLicense } from './get_license';
|
||||
export { ESLicense } from './get_license';
|
||||
export { getStatsWithXpack } from './get_stats_with_xpack';
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"isolatedModules": true
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue