Use section headers for shared types

This commit is contained in:
Josh Mock
2024-11-19 12:23:01 -06:00
parent 6151aab208
commit ab21735b57
469 changed files with 2639 additions and 2850 deletions

View File

@ -45,19 +45,19 @@ Index a document. Adds a JSON document to the specified data stream or index and
[source,ts]
----
interface IndexRequest<TDocument = unknown> extends <<shared-type-request-base, RequestBase>> {
id?: <<shared-type-id, Id>>
index: <<shared-type-index-name, IndexName>>
if_primary_term?: <<shared-type-long, long>>
if_seq_no?: <<shared-type-sequence-number, SequenceNumber>>
op_type?: <<shared-type-op-type, OpType>>
interface IndexRequest<TDocument = unknown> extends <<RequestBase>> {
id?: <<Id>>
index: <<IndexName>>
if_primary_term?: <<long>>
if_seq_no?: <<SequenceNumber>>
op_type?: <<OpType>>
pipeline?: string
refresh?: <<shared-type-refresh, Refresh>>
routing?: <<shared-type-routing, Routing>>
timeout?: <<shared-type-duration, Duration>>
version?: <<shared-type-version-number, VersionNumber>>
version_type?: <<shared-type-version-type, VersionType>>
wait_for_active_shards?: <<shared-type-wait-for-active-shards, WaitForActiveShards>>
refresh?: <<Refresh>>
routing?: <<Routing>>
timeout?: <<Duration>>
version?: <<VersionNumber>>
version_type?: <<VersionType>>
wait_for_active_shards?: <<WaitForActiveShards>>
require_alias?: boolean
document?: TDocument
}
@ -68,6 +68,6 @@ interface IndexRequest<TDocument = unknown> extends <<shared-type-request-base,
[source,ts]
----
type IndexResponse = <<shared-type-write-response-base, WriteResponseBase>>
type IndexResponse = <<WriteResponseBase>>
----