[[reference-shared-types--global-bulk]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// == Shared Bulk types [discrete] [[BulkCreateOperation]] === BulkCreateOperation [pass] ++++
++++
interface BulkCreateOperation extends <> {
}
[pass]
++++
++++ [discrete] [[BulkDeleteOperation]] === BulkDeleteOperation [pass] ++++
++++
interface BulkDeleteOperation extends <> {
}
[pass]
++++
++++ [discrete] [[BulkIndexOperation]] === BulkIndexOperation [pass] ++++
++++
interface BulkIndexOperation extends <> {
}
[pass]
++++
++++ [discrete] [[BulkOperationBase]] === BulkOperationBase [pass] ++++
++++
interface BulkOperationBase {
  pass:[/**] @property _id The document ID. */
  _id?: <>
  pass:[/**] @property _index <> of the index or index alias to perform the action on. */
  _index?: <>
  pass:[/**] @property routing Custom value used to route operations to a specific shard. */
  routing?: <>
  if_primary_term?: <>
  if_seq_no?: <>
  version?: <>
  version_type?: <>
}
[pass]
++++
++++ [discrete] [[BulkOperationContainer]] === BulkOperationContainer [pass] ++++
++++
interface BulkOperationContainer {
  pass:[/**] @property index Indexes the specified document. If the document exists, replaces the document and increments the version. The following line must contain the source data to be indexed. */
  index?: <>
  pass:[/**] @property create Indexes the specified document if it does not already exist. The following line must contain the source data to be indexed. */
  create?: <>
  pass:[/**] @property update Performs a partial document update. The following line must contain the partial document and update options. */
  update?: <>
  pass:[/**] @property delete Removes the specified document from the index. */
  delete?: <>
}
[pass]
++++
++++ [discrete] [[BulkOperationType]] === BulkOperationType [pass] ++++
++++
type BulkOperationType = 'index' | 'create' | 'update' | 'delete'
[pass]
++++
++++ [discrete] [[BulkRequest]] === BulkRequest [pass] ++++
++++
interface BulkRequest extends <> {
  index?: <>
  pipeline?: string
  refresh?: <>
  routing?: <>
  _source?: <>
  _source_excludes?: <>
  _source_includes?: <>
  timeout?: <>
  wait_for_active_shards?: <>
  require_alias?: boolean
  operations?: (<> | <> | TDocument)[]
}
[pass]
++++
++++ [discrete] [[BulkResponse]] === BulkResponse [pass] ++++
++++
interface BulkResponse {
  errors: boolean
  items: Partial>, <>>>[]
  took: <>
  ingest_took?: <>
}
[pass]
++++
++++ [discrete] [[BulkResponseItem]] === BulkResponseItem [pass] ++++
++++
interface BulkResponseItem {
  pass:[/**] @property _id The document ID associated with the operation. */
  _id?: string | null
  pass:[/**] @property _index <> of the index associated with the operation. If the operation targeted a data stream, this is the backing index into which the document was written. */
  _index: string
  pass:[/**] @property status HTTP status code returned for the operation. */
  status: <>
  pass:[/**] @property error Contains additional information about the failed operation. The parameter is only returned for failed operations. */
  error?: <>
  pass:[/**] @property _primary_term The primary term assigned to the document for the operation. */
  _primary_term?: <>
  pass:[/**] @property result <> of the operation. Successful values are `created`, `deleted`, and `updated`. */
  result?: string
  pass:[/**] @property _seq_no The sequence number assigned to the document for the operation. Sequence numbers are used to ensure an older version of a document doesn’t overwrite a newer version. */
  _seq_no?: <>
  pass:[/**] @property _shards Contains shard information for the operation. */
  _shards?: <>
  pass:[/**] @property _version The document version associated with the operation. The document version is incremented each time the document is updated. */
  _version?: <>
  forced_refresh?: boolean
  get?: <>>
}
[pass]
++++
++++ [discrete] [[BulkUpdateAction]] === BulkUpdateAction [pass] ++++
++++
interface BulkUpdateAction {
  pass:[/**] @property detect_noop Set to false to disable setting 'result' in the response to 'noop' if no change to the document occurred. */
  detect_noop?: boolean
  pass:[/**] @property doc A partial update to an existing document. */
  doc?: TPartialDocument
  pass:[/**] @property doc_as_upsert Set to true to use the contents of 'doc' as the value of 'upsert' */
  doc_as_upsert?: boolean
  pass:[/**] @property script <