Skip to content

Commit 82c3eff

Browse files
authored
Organize imports with Prettier plugin (#2853)
1 parent 95c66a9 commit 82c3eff

File tree

268 files changed

+545
-572
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

268 files changed

+545
-572
lines changed

compiler/package-lock.json

+29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"c8": "^7.11.0",
2929
"minimist": "^1.2.6",
3030
"prettier": "2.5.1",
31+
"prettier-plugin-organize-imports": "^4.0.0",
3132
"ts-node": "^10.4.0",
3233
"ts-standard": "^11.0.0",
3334
"typescript": "^4.5.5"

specification/_global/bulk/BulkRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919

20+
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2021
import { RequestBase } from '@_types/Base'
2122
import {
2223
Fields,
@@ -27,7 +28,6 @@ import {
2728
} from '@_types/common'
2829
import { Duration } from '@_types/Time'
2930
import { OperationContainer, UpdateAction } from './types'
30-
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
3131

3232
/**
3333
* Bulk index or delete documents.

specification/_global/bulk/BulkResponse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* under the License.
1818
*/
1919

20+
import { SingleKeyDictionary } from '@spec_utils/Dictionary'
2021
import { long } from '@_types/Numeric'
2122
import { OperationType, ResponseItem } from './types'
22-
import { SingleKeyDictionary } from '@spec_utils/Dictionary'
2323

2424
export class Response {
2525
body: {

specification/_global/bulk/types.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@
1717
* under the License.
1818
*/
1919

20-
import { InlineGet } from '@_types/common'
20+
import { SourceConfig } from '@global/search/_types/SourceFilter'
2121
import { Dictionary } from '@spec_utils/Dictionary'
2222
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2323
import {
2424
Id,
2525
IndexName,
26+
InlineGet,
2627
Routing,
2728
SequenceNumber,
2829
VersionNumber,
2930
VersionType
3031
} from '@_types/common'
3132
import { ErrorCause } from '@_types/Errors'
3233
import { integer, long } from '@_types/Numeric'
33-
import { ShardStatistics } from '@_types/Stats'
3434
import { Script } from '@_types/Scripting'
35-
import { SourceConfig } from '@global/search/_types/SourceFilter'
35+
import { ShardStatistics } from '@_types/Stats'
3636

3737
export class ResponseItem {
3838
/**

specification/_global/clear_scroll/ClearScrollRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { RequestBase } from '@_types/Base'
21-
import { Ids, ScrollIds } from '@_types/common'
21+
import { ScrollIds } from '@_types/common'
2222

2323
/**
2424
* Clears the search context and results for a scrolling search.

specification/_global/delete_by_query/DeleteByQueryRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ import {
2929
} from '@_types/common'
3030
import { float, long } from '@_types/Numeric'
3131
import { QueryContainer } from '@_types/query_dsl/abstractions'
32+
import { Operator } from '@_types/query_dsl/Operator'
3233
import { SlicedScroll } from '@_types/SlicedScroll'
3334
import { Duration } from '@_types/Time'
34-
import { Operator } from '@_types/query_dsl/Operator'
3535

3636
/**
3737
* Delete documents.

specification/_global/exists/DocumentExistsRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919

20+
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2021
import { RequestBase } from '@_types/Base'
2122
import {
2223
Fields,
@@ -26,7 +27,6 @@ import {
2627
VersionNumber,
2728
VersionType
2829
} from '@_types/common'
29-
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
3030

3131
/**
3232
* Check a document.

specification/_global/exists_source/SourceExistsRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919

20+
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2021
import { RequestBase } from '@_types/Base'
2122
import {
2223
Fields,
@@ -26,7 +27,6 @@ import {
2627
VersionNumber,
2728
VersionType
2829
} from '@_types/common'
29-
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
3030

3131
/**
3232
* Check for a document source.

specification/_global/explain/ExplainRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
* under the License.
1818
*/
1919

20+
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2021
import { RequestBase } from '@_types/Base'
2122
import { Fields, Id, IndexName, Routing } from '@_types/common'
2223
import { QueryContainer } from '@_types/query_dsl/abstractions'
23-
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2424
import { Operator } from '@_types/query_dsl/Operator'
2525

2626
/**

specification/_global/get/GetRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919

20+
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2021
import { RequestBase } from '@_types/Base'
2122
import {
2223
Fields,
@@ -26,7 +27,6 @@ import {
2627
VersionNumber,
2728
VersionType
2829
} from '@_types/common'
29-
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
3030

3131
/**
3232
* Get a document by its ID.

specification/_global/get/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* under the License.
1818
*/
1919

20-
import { Id, IndexName, SequenceNumber, VersionNumber } from '@_types/common'
2120
import { Dictionary } from '@spec_utils/Dictionary'
2221
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
22+
import { Id, IndexName, SequenceNumber, VersionNumber } from '@_types/common'
2323
import { long } from '@_types/Numeric'
2424

2525
export class GetResult<TDocument> {

specification/_global/get_source/SourceRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919

20+
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2021
import { RequestBase } from '@_types/Base'
2122
import {
2223
Fields,
@@ -26,7 +27,6 @@ import {
2627
VersionNumber,
2728
VersionType
2829
} from '@_types/common'
29-
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
3030

3131
/**
3232
* Get a document's source.

specification/_global/health_report/Response.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { Indicators, IndicatorHealthStatus } from './types'
20+
import { IndicatorHealthStatus, Indicators } from './types'
2121

2222
export class Response {
2323
body: {

specification/_global/health_report/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
* under the License.
1818
*/
1919

20+
import { Dictionary } from '@spec_utils/Dictionary'
21+
import { IndexName, Indices } from '@_types/common'
2022
import { LifecycleOperationMode } from '@_types/Lifecycle'
2123
import { integer, long } from '@_types/Numeric'
22-
import { IndexName, Indices } from '@_types/common'
23-
import { Dictionary } from '@spec_utils/Dictionary'
2424

2525
export enum IndicatorHealthStatus {
2626
green,

specification/_global/knn_search/KnnSearchRequest.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@
1717
* under the License.
1818
*/
1919

20+
import { SourceConfig } from '@global/search/_types/SourceFilter'
2021
import { RequestBase } from '@_types/Base'
2122
import { Fields, Indices, Routing } from '@_types/common'
23+
import { FieldAndFormat, QueryContainer } from '@_types/query_dsl/abstractions'
2224
import { Query } from './_types/Knn'
23-
import { QueryContainer } from '@_types/query_dsl/abstractions'
24-
import { SourceConfig } from '@global/search/_types/SourceFilter'
25-
import { FieldAndFormat } from '@_types/query_dsl/abstractions'
2625

2726
/**
2827
* @rest_spec_name knn_search

specification/_global/knn_search/KnnSearchResponse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
* under the License.
1818
*/
1919

20+
import { HitsMetadata } from '@global/search/_types/hits'
2021
import { Dictionary } from '@spec_utils/Dictionary'
2122
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2223
import { double, long } from '@_types/Numeric'
2324
import { ShardStatistics } from '@_types/Stats'
24-
import { HitsMetadata } from '@global/search/_types/hits'
2525

2626
export class Response<TDocument> {
2727
body: {

specification/_global/knn_search/_types/Knn.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020
import { Field } from '@_types/common'
21-
import { integer } from '@_types/Numeric'
2221
import { QueryVector } from '@_types/Knn'
22+
import { integer } from '@_types/Numeric'
2323

2424
export interface Query {
2525
/** The name of the vector field to search against */

specification/_global/mget/MultiGetRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
* under the License.
1818
*/
1919

20+
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2021
import { RequestBase } from '@_types/Base'
2122
import { Fields, Ids, IndexName, Routing } from '@_types/common'
2223
import { Operation } from './types'
23-
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2424

2525
/**
2626
* @rest_spec_name mget

specification/_global/mget/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919

20+
import { GetResult } from '@global/get/types'
2021
import { SourceConfig } from '@global/search/_types/SourceFilter'
2122
import {
2223
Fields,
@@ -27,7 +28,6 @@ import {
2728
VersionType
2829
} from '@_types/common'
2930
import { ErrorCause } from '@_types/Errors'
30-
import { GetResult } from '@global/get/types'
3131

3232
export class Operation {
3333
/**

specification/_global/msearch/types.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,18 @@
1717
* under the License.
1818
*/
1919

20+
import { ResponseBody as SearchResponse } from '@global/search/SearchResponse'
21+
import { FieldCollapse } from '@global/search/_types/FieldCollapse'
22+
import { Highlight } from '@global/search/_types/highlighting'
23+
import { TrackHits } from '@global/search/_types/hits'
2024
import { PointInTimeReference } from '@global/search/_types/PointInTimeReference'
25+
import { Rescore } from '@global/search/_types/rescoring'
26+
import { SourceConfig } from '@global/search/_types/SourceFilter'
2127
import { Suggester } from '@global/search/_types/suggester'
2228
import { Dictionary } from '@spec_utils/Dictionary'
29+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2330
import { AggregationContainer } from '@_types/aggregations/AggregationContainer'
31+
import { ErrorResponseBase } from '@_types/Base'
2432
import {
2533
ExpandWildcards,
2634
Fields,
@@ -29,20 +37,12 @@ import {
2937
Routing,
3038
SearchType
3139
} from '@_types/common'
40+
import { KnnSearch } from '@_types/Knn'
41+
import { RuntimeFields } from '@_types/mapping/RuntimeFields'
3242
import { double, integer, long } from '@_types/Numeric'
3343
import { FieldAndFormat, QueryContainer } from '@_types/query_dsl/abstractions'
34-
import { ResponseBody as SearchResponse } from '@global/search/SearchResponse'
35-
import { TrackHits } from '@global/search/_types/hits'
36-
import { ErrorResponseBase } from '@_types/Base'
37-
import { Sort, SortResults } from '@_types/sort'
38-
import { FieldCollapse } from '@global/search/_types/FieldCollapse'
39-
import { Highlight } from '@global/search/_types/highlighting'
40-
import { Rescore } from '@global/search/_types/rescoring'
41-
import { SourceConfig } from '@global/search/_types/SourceFilter'
42-
import { RuntimeFields } from '@_types/mapping/RuntimeFields'
4344
import { ScriptField } from '@_types/Scripting'
44-
import { KnnSearch } from '@_types/Knn'
45-
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
45+
import { Sort, SortResults } from '@_types/sort'
4646

4747
/**
4848
* @codegen_names header, body

specification/_global/msearch_template/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
* under the License.
1818
*/
1919

20+
import { MultisearchHeader } from '@global/msearch/types'
2021
import { Dictionary } from '@spec_utils/Dictionary'
2122
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2223
import { Id } from '@_types/common'
23-
import { MultisearchHeader } from '@global/msearch/types'
2424

2525
/** @codegen_names header, body */
2626
export type RequestItem = MultisearchHeader | TemplateConfig

specification/_global/reindex/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { Sort } from '@_types/sort'
20+
import { Dictionary } from '@spec_utils/Dictionary'
2121
import {
2222
Fields,
2323
IndexName,
@@ -33,8 +33,8 @@ import { Host } from '@_types/Networking'
3333
import { integer } from '@_types/Numeric'
3434
import { QueryContainer } from '@_types/query_dsl/abstractions'
3535
import { SlicedScroll } from '@_types/SlicedScroll'
36+
import { Sort } from '@_types/sort'
3637
import { Duration } from '@_types/Time'
37-
import { Dictionary } from '@spec_utils/Dictionary'
3838

3939
export class Destination {
4040
/**

0 commit comments

Comments
 (0)