Skip to content

Commit fee1f4f

Browse files
authored
Fix imports (elastic#363)
1 parent 524a52a commit fee1f4f

File tree

238 files changed

+351
-351
lines changed

Some content is hidden

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

238 files changed

+351
-351
lines changed

specification/_global/bulk/BulkResponseItemBase.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
*/
1919
// TODO remap this as a good bulk response item and an error response item
2020

21+
import { InlineGet } from '@global/explain/InlineGet'
22+
import { Dictionary } from '@spec_utils/Dictionary'
23+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2124
import { SequenceNumber, VersionNumber } from '@_types/common'
2225
import { ErrorCause } from '@_types/Errors'
2326
import { integer, long } from '@_types/Numeric'
2427
import { ShardStatistics } from '@_types/Stats'
25-
import { InlineGet } from '_global/explain/InlineGet'
26-
import { Dictionary } from '_spec_utils/Dictionary'
27-
import { UserDefinedValue } from '_spec_utils/UserDefinedValue'
2828

2929
export class BulkResponseItemBase {
3030
_id?: string | null

specification/_global/exists/DocumentExistsResponse.ts

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

20+
import { EmptyResponseBase } from '@spec_utils/behaviors'
2021
import { ResponseBase } from '@_types/Base'
21-
import { EmptyResponseBase } from '_spec_utils/behaviors'
2222

2323
export class DocumentExistsResponse
2424
extends ResponseBase

specification/_global/exists_source/SourceExistsResponse.ts

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

20+
import { EmptyResponseBase } from '@spec_utils/behaviors'
2021
import { ResponseBase } from '@_types/Base'
21-
import { EmptyResponseBase } from '_spec_utils/behaviors'
2222

2323
export class SourceExistsResponse
2424
extends ResponseBase

specification/_global/explain/InlineGet.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 { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2022
import { Routing, SequenceNumber } from '@_types/common'
2123
import { long } from '@_types/Numeric'
22-
import { Dictionary } from '_spec_utils/Dictionary'
23-
import { UserDefinedValue } from '_spec_utils/UserDefinedValue'
2424

2525
export class InlineGet<TDocument> {
2626
fields?: Dictionary<string, UserDefinedValue>

specification/_global/field_caps/FieldCapabilities.ts

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

20+
import { Dictionary } from '@spec_utils/Dictionary'
2021
import { Indices } from '@_types/common'
21-
import { Dictionary } from '_spec_utils/Dictionary'
2222

2323
export class FieldCapabilities {
2424
aggregatable: boolean

specification/_global/field_caps/FieldCapabilitiesResponse.ts

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

20+
import { Dictionary } from '@spec_utils/Dictionary'
2021
import { ResponseBase } from '@_types/Base'
2122
import { Field, Indices } from '@_types/common'
22-
import { Dictionary } from '_spec_utils/Dictionary'
2323
import { FieldCapabilities } from './FieldCapabilities'
2424

2525
export class FieldCapabilitiesResponse extends ResponseBase {

specification/_global/get/GetResponse.ts

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

20+
import { Dictionary } from '@spec_utils/Dictionary'
21+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2022
import { ResponseBase } from '@_types/Base'
2123
import {
2224
Id,
@@ -26,8 +28,6 @@ import {
2628
VersionNumber
2729
} from '@_types/common'
2830
import { long } from '@_types/Numeric'
29-
import { Dictionary } from '_spec_utils/Dictionary'
30-
import { UserDefinedValue } from '_spec_utils/UserDefinedValue'
3131

3232
export class GetResponse<TDocument> extends ResponseBase {
3333
_index: IndexName

specification/_global/mget/MultiGetRequest.ts

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

20+
import { SourceFilter } from '@global/search/source_filtering/SourceFilter'
2021
import { RequestBase } from '@_types/Base'
2122
import {
2223
Fields,
@@ -27,7 +28,6 @@ import {
2728
VersionType
2829
} from '@_types/common'
2930
import { integer } from '@_types/Numeric'
30-
import { SourceFilter } from '_global/search/source_filtering/SourceFilter'
3131

3232
/**
3333
* @rest_spec_name mget

specification/_global/mget/MultiGetResponse.ts

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

20+
import { Dictionary } from '@spec_utils/Dictionary'
21+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2022
import { ResponseBase } from '@_types/Base'
2123
import {
2224
Id,
@@ -28,8 +30,6 @@ import {
2830
} from '@_types/common'
2931
import { MainError } from '@_types/Errors'
3032
import { long } from '@_types/Numeric'
31-
import { Dictionary } from '_spec_utils/Dictionary'
32-
import { UserDefinedValue } from '_spec_utils/UserDefinedValue'
3333

3434
export class MultiGetResponse<TDocument> extends ResponseBase {
3535
docs: MultiGetHit<TDocument>[]

specification/_global/msearch/MultiSearchRequest.ts

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

20+
import { PointInTimeReference } from '@global/search/point_in_time/PointInTimeReference'
21+
import { SuggestContainer } from '@global/search/suggesters/SuggestContainer'
22+
import { Dictionary } from '@spec_utils/Dictionary'
2023
import { AggregationContainer } from '@_types/aggregations/AggregationContainer'
2124
import { RequestBase } from '@_types/Base'
2225
import { ExpandWildcards, Indices, SearchType, Types } from '@_types/common'
2326
import { integer, long } from '@_types/Numeric'
2427
import { QueryContainer } from '@_types/query_dsl/abstractions/container/QueryContainer'
25-
import { PointInTimeReference } from '_global/search/point_in_time/PointInTimeReference'
26-
import { SuggestContainer } from '_global/search/suggesters/SuggestContainer'
27-
import { Dictionary } from '_spec_utils/Dictionary'
2828

2929
/**
3030
* @rest_spec_name msearch

specification/_global/msearch/MultiSearchResponse.ts

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

20+
import { SearchResponse } from '@global/search/SearchResponse'
2021
import { ErrorResponse, ResponseBase } from '@_types/Base'
2122
import { integer, long } from '@_types/Numeric'
22-
import { SearchResponse } from '_global/search/SearchResponse'
2323

2424
export class MultiSearchResponse<TDocument> extends ResponseBase {
2525
took: long

specification/_global/msearch_template/MultiSearchTemplateRequest.ts

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

20+
import { SearchTemplateRequest } from '@global/search_template/SearchTemplateRequest'
21+
import { Dictionary } from '@spec_utils/Dictionary'
2022
import { RequestBase } from '@_types/Base'
2123
import { Indices, SearchType, Types } from '@_types/common'
2224
import { long } from '@_types/Numeric'
23-
import { SearchTemplateRequest } from '_global/search_template/SearchTemplateRequest'
24-
import { Dictionary } from '_spec_utils/Dictionary'
2525

2626
/**
2727
* @rest_spec_name msearch_template

specification/_global/msearch_template/MultiSearchTemplateResponse.ts

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

20+
import { SearchResponse } from '@global/search/SearchResponse'
21+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2022
import { ResponseBase } from '@_types/Base'
2123
import { long } from '@_types/Numeric'
22-
import { SearchResponse } from '_global/search/SearchResponse'
23-
import { UserDefinedValue } from '_spec_utils/UserDefinedValue'
2424

2525
export class MultiSearchTemplateResponse extends ResponseBase {
2626
responses: SearchResponse<UserDefinedValue>[]

specification/_global/mtermvectors/MultiTermVectorOperation.ts

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

20+
import { TermVectorFilter } from '@global/termvectors/TermVectorFilter'
2021
import {
2122
Fields,
2223
Id,
@@ -25,7 +26,6 @@ import {
2526
VersionNumber,
2627
VersionType
2728
} from '@_types/common'
28-
import { TermVectorFilter } from '_global/termvectors/TermVectorFilter'
2929

3030
export class MultiTermVectorOperation {
3131
doc: any

specification/_global/mtermvectors/MultiTermVectorsResponse.ts

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

20+
import { TermVectorsResult } from '@global/termvectors/TermVectorsResult'
2021
import { ResponseBase } from '@_types/Base'
21-
import { TermVectorsResult } from '_global/termvectors/TermVectorsResult'
2222

2323
export class MultiTermVectorsResponse extends ResponseBase {
2424
docs: TermVectorsResult[]

specification/_global/ping/PingResponse.ts

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

20+
import { EmptyResponseBase } from '@spec_utils/behaviors'
2021
import { ResponseBase } from '@_types/Base'
21-
import { EmptyResponseBase } from '_spec_utils/behaviors'
2222

2323
export class PingResponse extends ResponseBase implements EmptyResponseBase {}

specification/_global/rank_eval/RankEvalRequestItem.ts

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

20+
import { Dictionary } from '@spec_utils/Dictionary'
21+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2022
import { Id, IndexName } from '@_types/common'
2123
import { integer } from '@_types/Numeric'
2224
import { QueryContainer } from '@_types/query_dsl/abstractions/container/QueryContainer'
23-
import { Dictionary } from '_spec_utils/Dictionary'
24-
import { UserDefinedValue } from '_spec_utils/UserDefinedValue'
2525

2626
export class RankEvalRequestItem {
2727
/** The search request’s ID, used to group result details later. */

specification/_global/rank_eval/RankEvalResponse.ts

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

20+
import { Dictionary } from '@spec_utils/Dictionary'
21+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2022
import { ResponseBase } from '@_types/Base'
2123
import { Id, IndexName, Type } from '@_types/common'
2224
import { double } from '@_types/Numeric'
23-
import { Dictionary } from '_spec_utils/Dictionary'
24-
import { UserDefinedValue } from '_spec_utils/UserDefinedValue'
2525

2626
export class RankEvalResponse extends ResponseBase {
2727
/** The overall evaluation quality calculated by the defined metric */

specification/_global/reindex/ReindexSource.ts

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

20+
import { Sort } from '@global/search/sort/Sort'
2021
import { Fields, Indices } from '@_types/common'
2122
import { integer } from '@_types/Numeric'
2223
import { QueryContainer } from '@_types/query_dsl/abstractions/container/QueryContainer'
2324
import { SlicedScroll } from '@_types/SlicedScroll'
24-
import { Sort } from '_global/search/sort/Sort'
2525
import { RemoteSource } from './RemoteSource'
2626

2727
export class ReindexSource {

specification/_global/reindex_rethrottle/ReindexNode.ts

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

20+
import { BaseNode } from '@spec_utils/BaseNode'
21+
import { Dictionary } from '@spec_utils/Dictionary'
2022
import { TaskId } from '@_types/common'
21-
import { BaseNode } from '_spec_utils/BaseNode'
22-
import { Dictionary } from '_spec_utils/Dictionary'
2323
import { ReindexTask } from './ReindexTask'
2424

2525
export class ReindexNode extends BaseNode {

specification/_global/reindex_rethrottle/ReindexRethrottleResponse.ts

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

20+
import { Dictionary } from '@spec_utils/Dictionary'
2021
import { ResponseBase } from '@_types/Base'
21-
import { Dictionary } from '_spec_utils/Dictionary'
2222
import { ReindexNode } from './ReindexNode'
2323

2424
export class ReindexRethrottleResponse extends ResponseBase {

specification/_global/render_search_template/RenderSearchTemplateRequest.ts

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

20+
import { Dictionary } from '@spec_utils/Dictionary'
21+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2022
import { RequestBase } from '@_types/Base'
21-
import { Dictionary } from '_spec_utils/Dictionary'
22-
import { UserDefinedValue } from '_spec_utils/UserDefinedValue'
2323

2424
/**
2525
* @rest_spec_name render_search_template

specification/_global/render_search_template/RenderSearchTemplateResponse.ts

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

20+
import { Dictionary } from '@spec_utils/Dictionary'
21+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2022
import { ResponseBase } from '@_types/Base'
21-
import { Dictionary } from '_spec_utils/Dictionary'
22-
import { UserDefinedValue } from '_spec_utils/UserDefinedValue'
2323

2424
export class RenderSearchTemplateResponse extends ResponseBase {
2525
template_output: Dictionary<string, UserDefinedValue>

specification/_global/scripts_painless_execute/PainlessContextSetup.ts

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

20+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2021
import { IndexName } from '@_types/common'
2122
import { QueryContainer } from '@_types/query_dsl/abstractions/container/QueryContainer'
22-
import { UserDefinedValue } from '_spec_utils/UserDefinedValue'
2323

2424
export class PainlessContextSetup {
2525
document: UserDefinedValue

specification/_global/scroll/ScrollResponse.ts

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

20+
import { SearchResponse } from '@global/search/SearchResponse'
2021
import { integer } from '@_types/Numeric'
21-
import { SearchResponse } from '_global/search/SearchResponse'
2222

2323
export class ScrollResponse<TDocument> extends SearchResponse<TDocument> {
2424
failed_shards?: Array<ScrollResponseFailedShard>

specification/_global/search/SearchRequest.ts

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

20+
import { Dictionary } from '@spec_utils/Dictionary'
2021
import { AggregationContainer } from '@_types/aggregations/AggregationContainer'
2122
import { RequestBase } from '@_types/Base'
2223
import {
@@ -38,7 +39,6 @@ import { QueryContainer } from '@_types/query_dsl/abstractions/container/QueryCo
3839
import { ScriptField } from '@_types/Scripting'
3940
import { SlicedScroll } from '@_types/SlicedScroll'
4041
import { DateField, Time } from '@_types/Time'
41-
import { Dictionary } from '_spec_utils/Dictionary'
4242
import { FieldCollapse } from './collapsing/FieldCollapse'
4343
import { Highlight } from './highlighting/Highlight'
4444
import { PointInTimeReference } from './point_in_time/PointInTimeReference'

specification/_global/search/SearchResponse.ts

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

20+
import { Dictionary } from '@spec_utils/Dictionary'
21+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2022
import { Aggregate } from '@_types/aggregations/Aggregate'
2123
import { ResponseBase } from '@_types/Base'
2224
import { AggregateName, Id, ScrollId, SuggestionName } from '@_types/common'
2325
import { double, long } from '@_types/Numeric'
2426
import { ClusterStatistics, ShardStatistics } from '@_types/Stats'
25-
import { Dictionary } from '_spec_utils/Dictionary'
26-
import { UserDefinedValue } from '_spec_utils/UserDefinedValue'
2727
import { HitsMetadata } from './hits/HitsMetadata'
2828
import { Profile } from './profile/Profile'
2929
import { Suggest } from './suggesters/Suggest'

specification/_global/search/highlighting/Highlight.ts

+1-1
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'
2021
import { Field } from '@_types/common'
2122
import { integer } from '@_types/Numeric'
2223
import { QueryContainer } from '@_types/query_dsl/abstractions/container/QueryContainer'
23-
import { Dictionary } from '_spec_utils/Dictionary'
2424
import { BoundaryScanner } from './BoundaryScanner'
2525
import { HighlighterEncoder } from './HighlighterEncoder'
2626
import { HighlighterFragmenter } from './HighlighterFragmenter'

specification/_global/search/hits/Hit.ts

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

20+
import { Explanation } from '@global/explain/Explanation'
21+
import { Dictionary } from '@spec_utils/Dictionary'
22+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2023
import {
2124
Id,
2225
IndexName,
@@ -25,9 +28,6 @@ import {
2528
VersionNumber
2629
} from '@_types/common'
2730
import { double, long } from '@_types/Numeric'
28-
import { Explanation } from '_global/explain/Explanation'
29-
import { Dictionary } from '_spec_utils/Dictionary'
30-
import { UserDefinedValue } from '_spec_utils/UserDefinedValue'
3131
import { SortResults } from '../sort/Sort'
3232
import { InnerHitsResult } from './InnerHitsResult'
3333
import { NestedIdentity } from './NestedIdentity'

specification/_global/search/hits/InnerHitsMetadata.ts

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

20+
import { Dictionary } from '@spec_utils/Dictionary'
21+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2022
import { double, long } from '@_types/Numeric'
21-
import { Dictionary } from '_spec_utils/Dictionary'
22-
import { UserDefinedValue } from '_spec_utils/UserDefinedValue'
2323
import { Hit } from './Hit'
2424
import { TotalHits } from './TotalHits'
2525

0 commit comments

Comments
 (0)