Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and fix multi* APIs #1034

Merged
merged 4 commits into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
885 changes: 469 additions & 416 deletions output/schema/schema.json

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions output/schema/validation-errors.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

115 changes: 58 additions & 57 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions specification/_global/bulk/BulkRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
} from '@_types/common'
import { Time } from '@_types/Time'
import { OperationContainer } from './types'
import { GetSourceConfig } from '@global/search/_types/SourceFilter'
import { SourceConfigParam } from '@global/search/_types/SourceFilter'

/**
* @rest_spec_name bulk
Expand All @@ -45,7 +45,7 @@ export interface Request<TSource> extends RequestBase {
pipeline?: string
refresh?: Refresh
routing?: Routing
_source?: GetSourceConfig
_source?: SourceConfigParam
_source_excludes?: Fields
_source_includes?: Fields
timeout?: Time
Expand Down
4 changes: 2 additions & 2 deletions specification/_global/delete_by_query/DeleteByQueryRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { long } from '@_types/Numeric'
import { QueryContainer } from '@_types/query_dsl/abstractions'
import { SlicedScroll } from '@_types/SlicedScroll'
import { Time } from '@_types/Time'
import { GetSourceConfig } from '@global/search/_types/SourceFilter'
import { SourceConfigParam } from '@global/search/_types/SourceFilter'

/**
* @rest_spec_name delete_by_query
Expand Down Expand Up @@ -68,7 +68,7 @@ export interface Request extends RequestBase {
size?: long
slices?: long
sort?: string[]
_source?: GetSourceConfig
_source?: SourceConfigParam
_source_excludes?: Fields
_source_includes?: Fields
stats?: string[]
Expand Down
4 changes: 2 additions & 2 deletions specification/_global/exists/DocumentExistsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
VersionNumber,
VersionType
} from '@_types/common'
import { GetSourceConfig } from '@global/search/_types/SourceFilter'
import { SourceConfigParam } from '@global/search/_types/SourceFilter'

/**
* @rest_spec_name exists
Expand All @@ -43,7 +43,7 @@ export interface Request extends RequestBase {
realtime?: boolean
refresh?: boolean
routing?: Routing
_source?: GetSourceConfig
_source?: SourceConfigParam
_source_excludes?: Fields
_source_includes?: Fields
stored_fields?: Fields
Expand Down
4 changes: 2 additions & 2 deletions specification/_global/exists_source/SourceExistsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
VersionNumber,
VersionType
} from '@_types/common'
import { GetSourceConfig } from '@global/search/_types/SourceFilter'
import { SourceConfigParam } from '@global/search/_types/SourceFilter'

/**
* @rest_spec_name exists_source
Expand All @@ -45,7 +45,7 @@ export interface Request extends RequestBase {
realtime?: boolean
refresh?: boolean
routing?: Routing
_source?: GetSourceConfig
_source?: SourceConfigParam
_source_excludes?: Fields
_source_includes?: Fields
version?: VersionNumber
Expand Down
4 changes: 2 additions & 2 deletions specification/_global/explain/ExplainRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import { RequestBase } from '@_types/Base'
import { DefaultOperator, Fields, Id, IndexName, Routing } from '@_types/common'
import { QueryContainer } from '@_types/query_dsl/abstractions'
import { GetSourceConfig } from '@global/search/_types/SourceFilter'
import { SourceConfigParam } from '@global/search/_types/SourceFilter'

/**
* @rest_spec_name explain
Expand All @@ -40,7 +40,7 @@ export interface Request extends RequestBase {
lenient?: boolean
preference?: string
routing?: Routing
_source?: GetSourceConfig
_source?: SourceConfigParam
_source_excludes?: Fields
_source_includes?: Fields
stored_fields?: Fields
Expand Down
Loading