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