Skip to content

Commit ed0812b

Browse files
authored
Reorg types/index (elastic#436)
* Refactor _types pt.3 * Fix imports and make contrib
1 parent c2eac2b commit ed0812b

20 files changed

+4731
-4873
lines changed

output/schema/schema.json

+4,553-4,553
Large diffs are not rendered by default.

output/typescript/types.ts

+166-166
Large diffs are not rendered by default.

specification/_types/index/FileSystemStorageImplementation.ts

-25
This file was deleted.

specification/_types/index/RecoveryInitialShards.ts

-25
This file was deleted.

specification/_types/index/TranslogDurability.ts

-23
This file was deleted.

specification/_types/index/sorting/IndexSortMissing.ts

-23
This file was deleted.

specification/_types/index/sorting/IndexSortMode.ts

-23
This file was deleted.

specification/_types/index/sorting/IndexSortOrder.ts

-23
This file was deleted.

specification/cluster/_types/ClusterStateBlocksIndex.ts

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

2020
import { IndicesRolloverConditions } from '@indices/rollover/IndicesRolloverConditions'
21+
import { IndexSettings } from '@indices/_types/IndexSettings'
2122
import { Dictionary } from '@spec_utils/Dictionary'
2223
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2324
import { IndexAlias, IndexName, VersionNumber } from '@_types/common'
24-
import { IndexSettings } from '@_types/index/IndexSettings'
2525
import { TypeMapping } from '@_types/mapping/TypeMapping'
2626
import { integer } from '@_types/Numeric'
2727

specification/cluster/_types/ComponentTemplate.ts

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

2020
import { AliasDefinition } from '@indices/_types/AliasDefinition'
21+
import { IndexSettings } from '@indices/_types/IndexSettings'
2122
import { Dictionary } from '@spec_utils/Dictionary'
2223
import { IndexName, Metadata, Name, VersionNumber } from '@_types/common'
23-
import { IndexSettings } from '@_types/index/IndexSettings'
2424
import { TypeMapping } from '@_types/mapping/TypeMapping'
2525

2626
export class ComponentTemplate {

specification/cluster/cluster_put_component_template/ClusterPutComponentTemplateRequest.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
*/
1919

2020
import { AliasDefinition } from '@indices/_types/AliasDefinition'
21+
import { IndexSettings } from '@indices/_types/IndexSettings'
22+
import { IndexState } from '@indices/_types/IndexState'
2123
import { Dictionary } from '@spec_utils/Dictionary'
2224
import { RequestBase } from '@_types/Base'
2325
import { Metadata, Name, VersionNumber } from '@_types/common'
24-
import { IndexSettings } from '@_types/index/IndexSettings'
25-
import { IndexState } from '@_types/index/IndexState'
2626
import { TypeMapping } from '@_types/mapping/TypeMapping'
2727
import { Time } from '@_types/Time'
2828

specification/_types/index/IndexSettings.ts specification/indices/_types/IndexSettings.ts

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

20+
import { IndexRouting } from '@nodes/_types/IndexRouting'
2021
import { Dictionary } from '@spec_utils/Dictionary'
2122
import { CharFilter } from '@_types/analysis/char_filters/CharFilterBase'
2223
import { Name, PipelineName, Uuid, VersionString } from '@_types/common'
2324
import { integer } from '@_types/Numeric'
2425
import { DateString, Time } from '@_types/Time'
25-
import { IndexRouting } from './IndexRouting'
2626

2727
/**
2828
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/7.8/index-modules.html#index-modules-settings

specification/_types/index/IndexState.ts specification/indices/_types/IndexState.ts

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

20-
import { Alias } from '@indices/_types/Alias'
2120
import { Dictionary } from '@spec_utils/Dictionary'
2221
import { IndexName } from '@_types/common'
2322
import { TypeMapping } from '@_types/mapping/TypeMapping'
23+
import { Alias } from './Alias'
2424
import { IndexSettings } from './IndexSettings'
2525

2626
export class IndexState {

specification/indices/get/IndicesGetResponse.ts

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

20+
import { IndexState } from '@indices/_types/IndexState'
2021
import { DictionaryResponseBase } from '@_types/Base'
2122
import { IndexName } from '@_types/common'
22-
import { IndexState } from '@_types/index/IndexState'
2323

2424
export class Response extends DictionaryResponseBase<IndexName, IndexState> {}

specification/indices/get_settings/IndicesGetSettingsResponse.ts

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

20+
import { IndexState } from '@indices/_types/IndexState'
2021
import { DictionaryResponseBase } from '@_types/Base'
2122
import { IndexName } from '@_types/common'
22-
import { IndexState } from '@_types/index/IndexState'
2323

2424
export class Response extends DictionaryResponseBase<IndexName, IndexState> {}

specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts

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

2020
import { Alias } from '@indices/_types/Alias'
21+
import { IndexSettings } from '@indices/_types/IndexSettings'
2122
import { Dictionary } from '@spec_utils/Dictionary'
2223
import { RequestBase } from '@_types/Base'
2324
import {
@@ -28,7 +29,6 @@ import {
2829
Name,
2930
VersionNumber
3031
} from '@_types/common'
31-
import { IndexSettings } from '@_types/index/IndexSettings'
3232
import { TypeMapping } from '@_types/mapping/TypeMapping'
3333
import { integer } from '@_types/Numeric'
3434

specification/indices/put_settings/IndicesPutSettingsRequest.ts

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

20+
import { IndexSettings } from '@indices/_types/IndexSettings'
2021
import { RequestBase } from '@_types/Base'
2122
import { ExpandWildcards, Indices } from '@_types/common'
22-
import { IndexSettings } from '@_types/index/IndexSettings'
2323
import { Time } from '@_types/Time'
2424

2525
/**

specification/nodes/nodes_info/NodeInfo.ts

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

20+
import { IndexRouting } from '@nodes/_types/IndexRouting'
2021
import { Dictionary } from '@spec_utils/Dictionary'
2122
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2223
import { ByteSize, Name, VersionString } from '@_types/common'
23-
import { IndexRouting } from '@_types/index/IndexRouting'
2424
import { Host, Ip, TransportAddress } from '@_types/Networking'
2525
import { integer, long } from '@_types/Numeric'
2626
import { PluginStats } from '@_types/Stats'

specification/transform/preview_transform/PreviewTransformResponse.ts

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

20-
import { IndexState } from '@_types/index/IndexState'
20+
import { IndexState } from '@indices/_types/IndexState'
2121

2222
export class Response<TTransform> {
2323
body: {

0 commit comments

Comments
 (0)