Skip to content

Commit 3ff7b3a

Browse files
authored
TypeScript fixes (#2242)
1 parent d10933d commit 3ff7b3a

22 files changed

+26
-24
lines changed

.github/validate-pr/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ async function run () {
7070
if (file.startsWith('specification/_spec_utils')) continue
7171
if (file.startsWith('specification/_doc_ids')) continue
7272
if (file.startsWith('specification/_json_spec')) continue
73+
if (file === 'specification/tsconfig.json') continue
7374
if (getApi(file).endsWith('_types')) {
7475
const apis = specification.endpoints
7576
.filter(endpoint => endpoint.name.split('.').filter(s => !privateNames.includes(s))[0] === getApi(file).split('.')[0])

specification/_types/query_dsl/fulltext.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import { double, float, integer } from '@_types/Numeric'
2828
import { Script } from '@_types/Scripting'
2929
import { QueryBase } from './abstractions'
3030
import { Operator } from './Operator'
31-
import { DateMath, TimeZone } from '@_types/Time'
32-
import { FlagsEnum, PipeSeparatedFlags } from '@spec_utils/PipeSeparatedFlags'
31+
import { TimeZone } from '@_types/Time'
32+
import { PipeSeparatedFlags } from '@spec_utils/PipeSeparatedFlags'
3333

3434
/**
3535
* @shortcut_property query

specification/query_ruleset/delete/QueryRulesetDeleteRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Id } from '@_types/common'
2525
* @availability stack since=8.10.0 stability=experimental
2626
* @availability serverless stability=experimental visibility=public
2727
*/
28-
interface Request extends RequestBase {
28+
export interface Request extends RequestBase {
2929
path_parts: {
3030
/**
3131
* The unique identifier of the query ruleset to delete

specification/query_ruleset/get/QueryRulesetGetRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Id } from '@_types/common'
2525
* @availability stack since=8.10.0 stability=experimental
2626
* @availability serverless stability=experimental visibility=public
2727
*/
28-
interface Request extends RequestBase {
28+
export interface Request extends RequestBase {
2929
path_parts: {
3030
/**
3131
* The unique identifier of the query ruleset

specification/query_ruleset/list/QueryRulesetListRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { integer } from '@_types/Numeric'
2525
* @availability stack since=8.10.0 stability=experimental
2626
* @availability serverless stability=experimental visibility=public
2727
*/
28-
interface Request extends RequestBase {
28+
export interface Request extends RequestBase {
2929
query_parameters: {
3030
/**
3131
* Starting offset (default: 0)

specification/query_ruleset/put/QueryRulesetPutRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { QueryRuleset } from '../_types/QueryRuleset'
2626
* @availability stack since=8.10.0 stability=experimental
2727
* @availability serverless stability=experimental visibility=public
2828
*/
29-
interface Request extends RequestBase {
29+
export interface Request extends RequestBase {
3030
path_parts: {
3131
/**
3232
* The unique identifier of the query ruleset to be created or updated

specification/search_application/delete/SearchApplicationsDeleteRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Name } from '@_types/common'
2525
* @availability stack since=8.8.0 stability=beta
2626
* @availability serverless stability=beta visibility=public
2727
*/
28-
interface Request extends RequestBase {
28+
export interface Request extends RequestBase {
2929
path_parts: {
3030
/**
3131
* The name of the search application to delete

specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Name } from '@_types/common'
2525
* @availability stack since=8.8.0 stability=experimental
2626
* @availability serverless stability=experimental visibility=public
2727
*/
28-
interface Request extends RequestBase {
28+
export interface Request extends RequestBase {
2929
path_parts: {
3030
/**
3131
* The name of the analytics collection to be deleted

specification/search_application/get/SearchApplicationsGetRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Name } from '@_types/common'
2525
* @availability stack since=8.8.0 stability=beta
2626
* @availability serverless stability=beta visibility=public
2727
*/
28-
interface Request extends RequestBase {
28+
export interface Request extends RequestBase {
2929
path_parts: {
3030
/**
3131
* The name of the search application

specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Name } from '@_types/common'
2525
* @availability stack since=8.8.0 stability=experimental
2626
* @availability serverless stability=experimental visibility=public
2727
*/
28-
interface Request extends RequestBase {
28+
export interface Request extends RequestBase {
2929
path_parts: {
3030
/**
3131
* A list of analytics collections to limit the returned information

specification/search_application/list/SearchApplicationsListRequest.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* under the License.
1818
*/
1919
import { RequestBase } from '@_types/Base'
20-
import { Name } from '@_types/common'
2120
import { integer } from '@_types/Numeric'
2221

2322
/**
@@ -26,7 +25,7 @@ import { integer } from '@_types/Numeric'
2625
* @availability stack since=8.8.0 stability=beta
2726
* @availability serverless stability=beta visibility=public
2827
*/
29-
interface Request extends RequestBase {
28+
export interface Request extends RequestBase {
3029
query_parameters: {
3130
/**
3231
* Query in the Lucene query string syntax"

specification/search_application/put/SearchApplicationsPutRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { SearchApplication } from '../_types/SearchApplication'
2626
* @availability stack since=8.8.0 stability=beta
2727
* @availability serverless stability=beta visibility=public
2828
*/
29-
interface Request extends RequestBase {
29+
export interface Request extends RequestBase {
3030
path_parts: {
3131
/**
3232
* The name of the search application to be created or updated

specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@
1818
*/
1919
import { RequestBase } from '@_types/Base'
2020
import { Name } from '@_types/common'
21-
import { SearchApplication } from '../_types/SearchApplication'
2221

2322
/**
2423
* Creates a behavioral analytics collection
2524
* @rest_spec_name search_application.put_behavioral_analytics
2625
* @availability stack since=8.8.0 stability=experimental
2726
* @availability serverless stability=experimental visibility=public
2827
*/
29-
interface Request extends RequestBase {
28+
export interface Request extends RequestBase {
3029
path_parts: {
3130
/**
3231
* The name of the analytics collection to be created or updated

specification/search_application/search/SearchApplicationsSearchRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2727
* @availability stack since=8.8.0 stability=beta
2828
* @availability serverless stability=beta visibility=public
2929
*/
30-
interface Request extends RequestBase {
30+
export interface Request extends RequestBase {
3131
path_parts: {
3232
/**
3333
* The name of the search application to be searched

specification/synonyms/delete_synonym/SynonymsDeleteRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Id } from '@_types/common'
2525
* @availability stack since=8.10.0 stability=experimental
2626
* @availability serverless stability=experimental visibility=public
2727
*/
28-
interface Request extends RequestBase {
28+
export interface Request extends RequestBase {
2929
path_parts: {
3030
/**
3131
* The id of the synonyms set to be deleted

specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Id } from '@_types/common'
2525
* @availability stack since=8.10.0 stability=experimental
2626
* @availability serverless stability=experimental visibility=public
2727
*/
28-
interface Request extends RequestBase {
28+
export interface Request extends RequestBase {
2929
path_parts: {
3030
/**
3131
* The id of the synonym set to be updated

specification/synonyms/get_synonym/SynonymsGetRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { integer } from '@_types/Numeric'
2626
* @availability stack since=8.10.0 stability=experimental
2727
* @availability serverless stability=experimental visibility=public
2828
*/
29-
interface Request extends RequestBase {
29+
export interface Request extends RequestBase {
3030
path_parts: {
3131
/**
3232
* "The id of the synonyms set to be retrieved

specification/synonyms/get_synonym_rule/SynonymRuleGetRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Id } from '@_types/common'
2525
* @availability stack since=8.10.0 stability=experimental
2626
* @availability serverless stability=experimental visibility=public
2727
*/
28-
interface Request extends RequestBase {
28+
export interface Request extends RequestBase {
2929
path_parts: {
3030
/**
3131
* The id of the synonym set to retrieve the synonym rule from

specification/synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* under the License.
1818
*/
1919
import { RequestBase } from '@_types/Base'
20-
import { Name } from '@_types/common'
2120
import { integer } from '@_types/Numeric'
2221

2322
/**
@@ -26,7 +25,7 @@ import { integer } from '@_types/Numeric'
2625
* @availability stack since=8.10.0 stability=experimental
2726
* @availability serverless stability=experimental visibility=public
2827
*/
29-
interface Request extends RequestBase {
28+
export interface Request extends RequestBase {
3029
query_parameters: {
3130
/**
3231
* Starting offset

specification/synonyms/put_synonym/SynonymsPutRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { SynonymRule } from '../_types/SynonymRule'
2626
* @availability stack since=8.10.0 stability=experimental
2727
* @availability serverless stability=experimental visibility=public
2828
*/
29-
interface Request extends RequestBase {
29+
export interface Request extends RequestBase {
3030
path_parts: {
3131
/**
3232
* The id of the synonyms set to be created or updated

specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { SynonymString } from '../_types/SynonymRule'
2626
* @availability stack since=8.10.0 stability=experimental
2727
* @availability serverless stability=experimental visibility=public
2828
*/
29-
interface Request extends RequestBase {
29+
export interface Request extends RequestBase {
3030
path_parts: {
3131
/**
3232
* The id of the synonym set to be updated with the synonym rule

specification/tsconfig.json

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"@enrich/*": ["enrich/*"],
3030
"@eql/*": ["eql/*"],
3131
"@features/*": ["features/*"],
32+
"@fleet/*": ["fleet/*"],
3233
"@graph/*": ["graph/*"],
3334
"@ilm/*": ["ilm/*"],
3435
"@indices/*": ["indices/*"],
@@ -39,14 +40,17 @@
3940
"@ml/*": ["ml/*"],
4041
"@monitoring/*": ["monitoring/*"],
4142
"@nodes/*": ["nodes/*"],
43+
"@query_ruleset/*": ["query_ruleset/*"],
4244
"@rollup/*": ["rollup/*"],
4345
"@searchable_snapshots/*": ["searchable_snapshots/*"],
46+
"@search_application/*": ["search_application/*"],
4447
"@security/*": ["security/*"],
4548
"@shutdown/*": ["shutdown/*"],
4649
"@slm/*": ["slm/*"],
4750
"@snapshot/*": ["snapshot/*"],
4851
"@sql/*": ["sql/*"],
4952
"@ssl/*": ["ssl/*"],
53+
"@synonyms/*": ["synonyms/*"],
5054
"@tasks/*": ["tasks/*"],
5155
"@text_structure/*": ["text_structure/*"],
5256
"@transform/*": ["transform/*"],

0 commit comments

Comments
 (0)