Skip to content

Commit b86ec26

Browse files
committed
Changes from node scripts/check
1 parent 0f6b4ce commit b86ec26

1,946 files changed

Lines changed: 72346 additions & 35197 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,44 @@
1-
export type { AnalyticsServiceSetup, AnalyticsServiceStart, AnalyticsServicePreboot, } from './src/contracts';
2-
export type { AnalyticsClient, AnalyticsClientInitContext, ShipperClassConstructor, RegisterShipperOpts, OptInConfig, OptInConfigPerType, ShipperName, ContextProviderOpts, ContextProviderName, EventTypeOpts, Event, EventContext, EventType, TelemetryCounter, TelemetryCounterType, RootSchema, SchemaObject, SchemaArray, SchemaChildValue, SchemaMeta, SchemaValue, SchemaMetaOptional, PossibleSchemaTypes, AllowedSchemaBooleanTypes, AllowedSchemaNumberTypes, AllowedSchemaStringTypes, AllowedSchemaTypes, IShipper, } from '@elastic/ebt/client';
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
export type {
11+
AnalyticsServiceSetup,
12+
AnalyticsServiceStart,
13+
AnalyticsServicePreboot,
14+
} from './src/contracts';
15+
export type {
16+
AnalyticsClient,
17+
AnalyticsClientInitContext,
18+
ShipperClassConstructor,
19+
RegisterShipperOpts,
20+
OptInConfig,
21+
OptInConfigPerType,
22+
ShipperName,
23+
ContextProviderOpts,
24+
ContextProviderName,
25+
EventTypeOpts,
26+
Event,
27+
EventContext,
28+
EventType,
29+
TelemetryCounter,
30+
TelemetryCounterType,
31+
RootSchema,
32+
SchemaObject,
33+
SchemaArray,
34+
SchemaChildValue,
35+
SchemaMeta,
36+
SchemaValue,
37+
SchemaMetaOptional,
38+
PossibleSchemaTypes,
39+
AllowedSchemaBooleanTypes,
40+
AllowedSchemaNumberTypes,
41+
AllowedSchemaStringTypes,
42+
AllowedSchemaTypes,
43+
IShipper,
44+
} from '@elastic/ebt/client';

src/core/packages/analytics/server/src/contracts.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
110
import type { AnalyticsClient } from '@elastic/ebt/client';
211
/**
312
* Exposes the public APIs of the AnalyticsClient during the preboot phase
@@ -16,4 +25,7 @@ export type AnalyticsServiceSetup = Omit<AnalyticsClient, 'flush' | 'shutdown'>;
1625
* {@link AnalyticsClient}
1726
* @public
1827
*/
19-
export type AnalyticsServiceStart = Pick<AnalyticsClient, 'optIn' | 'reportEvent' | 'telemetryCounter$'>;
28+
export type AnalyticsServiceStart = Pick<
29+
AnalyticsClient,
30+
'optIn' | 'reportEvent' | 'telemetryCounter$'
31+
>;
Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,36 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
110
export { AppLeaveActionType } from './src/app_leave';
2-
export type { AppLeaveAction, AppLeaveActionFactory, AppLeaveConfirmAction, AppLeaveDefaultAction, AppLeaveHandler, } from './src/app_leave';
11+
export type {
12+
AppLeaveAction,
13+
AppLeaveActionFactory,
14+
AppLeaveConfirmAction,
15+
AppLeaveDefaultAction,
16+
AppLeaveHandler,
17+
} from './src/app_leave';
318
export type { AppMount, AppMountParameters, AppUnmount } from './src/app_mount';
4-
export type { App, AppDeepLink, AppDeepLinkLocations, PublicAppInfo, AppNavOptions, PublicAppDeepLinkInfo, AppUpdater, AppUpdatableFields, } from './src/application';
19+
export type {
20+
App,
21+
AppDeepLink,
22+
AppDeepLinkLocations,
23+
PublicAppInfo,
24+
AppNavOptions,
25+
PublicAppDeepLinkInfo,
26+
AppUpdater,
27+
AppUpdatableFields,
28+
} from './src/application';
529
export { AppStatus } from './src/application';
6-
export type { ApplicationSetup, ApplicationStart, NavigateToAppOptions, NavigateToUrlOptions, } from './src/contracts';
30+
export type {
31+
ApplicationSetup,
32+
ApplicationStart,
33+
NavigateToAppOptions,
34+
NavigateToUrlOptions,
35+
} from './src/contracts';
736
export type { ScopedHistory } from './src/scoped_history';
Lines changed: 46 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
110
import type { EuiButtonColor } from '@elastic/eui';
211
/**
312
* A handler that will be executed before leaving the application, either when
@@ -12,15 +21,18 @@ import type { EuiButtonColor } from '@elastic/eui';
1221
*
1322
* @public
1423
*/
15-
export type AppLeaveHandler = (factory: AppLeaveActionFactory, nextAppId?: string) => AppLeaveAction;
24+
export type AppLeaveHandler = (
25+
factory: AppLeaveActionFactory,
26+
nextAppId?: string
27+
) => AppLeaveAction;
1628
/**
1729
* Possible type of actions on application leave.
1830
*
1931
* @public
2032
*/
2133
export declare enum AppLeaveActionType {
22-
confirm = "confirm",
23-
default = "default"
34+
confirm = 'confirm',
35+
default = 'default',
2436
}
2537
/**
2638
* Action to return from a {@link AppLeaveHandler} to execute the default
@@ -31,7 +43,7 @@ export declare enum AppLeaveActionType {
3143
* @public
3244
*/
3345
export interface AppLeaveDefaultAction {
34-
type: AppLeaveActionType.default;
46+
type: AppLeaveActionType.default;
3547
}
3648
/**
3749
* Action to return from a {@link AppLeaveHandler} to show a confirmation
@@ -42,12 +54,12 @@ export interface AppLeaveDefaultAction {
4254
* @public
4355
*/
4456
export interface AppLeaveConfirmAction {
45-
type: AppLeaveActionType.confirm;
46-
text: string;
47-
title?: string;
48-
confirmButtonText?: string;
49-
buttonColor?: EuiButtonColor;
50-
callback?: () => void;
57+
type: AppLeaveActionType.confirm;
58+
text: string;
59+
title?: string;
60+
confirmButtonText?: string;
61+
buttonColor?: EuiButtonColor;
62+
callback?: () => void;
5163
}
5264
/**
5365
* Possible actions to return from a {@link AppLeaveHandler}
@@ -61,22 +73,28 @@ export type AppLeaveAction = AppLeaveDefaultAction | AppLeaveConfirmAction;
6173
* Factory provided when invoking a {@link AppLeaveHandler} to retrieve the {@link AppLeaveAction} to execute.
6274
*/
6375
export interface AppLeaveActionFactory {
64-
/**
65-
* Returns a confirm action, resulting on prompting a message to the user before leaving the
66-
* application, allowing him to choose if he wants to stay on the app or confirm that he
67-
* wants to leave.
68-
*
69-
* @param text The text to display in the confirmation message
70-
* @param title (optional) title to display in the confirmation message
71-
* @param callback (optional) to know that the user want to stay on the page
72-
* @param confirmButtonText (optional) text for the confirmation button
73-
* @param buttonColor (optional) color for the confirmation button
74-
* so we can show to the user the right UX for him to saved his/her/their changes
75-
*/
76-
confirm(text: string, title?: string, callback?: () => void, confirmButtonText?: string, buttonColor?: EuiButtonColor): AppLeaveConfirmAction;
77-
/**
78-
* Returns a default action, resulting on executing the default behavior when
79-
* the user tries to leave an application
80-
*/
81-
default(): AppLeaveDefaultAction;
76+
/**
77+
* Returns a confirm action, resulting on prompting a message to the user before leaving the
78+
* application, allowing him to choose if he wants to stay on the app or confirm that he
79+
* wants to leave.
80+
*
81+
* @param text The text to display in the confirmation message
82+
* @param title (optional) title to display in the confirmation message
83+
* @param callback (optional) to know that the user want to stay on the page
84+
* @param confirmButtonText (optional) text for the confirmation button
85+
* @param buttonColor (optional) color for the confirmation button
86+
* so we can show to the user the right UX for him to saved his/her/their changes
87+
*/
88+
confirm(
89+
text: string,
90+
title?: string,
91+
callback?: () => void,
92+
confirmButtonText?: string,
93+
buttonColor?: EuiButtonColor
94+
): AppLeaveConfirmAction;
95+
/**
96+
* Returns a default action, resulting on executing the default behavior when
97+
* the user tries to leave an application
98+
*/
99+
default(): AppLeaveDefaultAction;
82100
}

0 commit comments

Comments
 (0)