diff --git a/output/schema/schema.json b/output/schema/schema.json index 2131a7cf16..d5bb518ba8 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -22505,7 +22505,7 @@ "namespace": "_global.bulk" }, "properties": [], - "specLocation": "_global/bulk/types.ts#L132-L132" + "specLocation": "_global/bulk/types.ts#L140-L140" }, { "kind": "interface", @@ -22520,7 +22520,29 @@ "namespace": "_global.bulk" }, "properties": [], - "specLocation": "_global/bulk/types.ts#L136-L136" + "specLocation": "_global/bulk/types.ts#L144-L144" + }, + { + "kind": "enum", + "members": [ + { + "name": "not_applicable_or_unknown" + }, + { + "name": "used" + }, + { + "name": "not_enabled" + }, + { + "name": "failed" + } + ], + "name": { + "name": "FailureStoreStatus", + "namespace": "_global.bulk" + }, + "specLocation": "_global/bulk/types.ts#L86-L91" }, { "kind": "interface", @@ -22535,7 +22557,7 @@ "namespace": "_global.bulk" }, "properties": [], - "specLocation": "_global/bulk/types.ts#L134-L134" + "specLocation": "_global/bulk/types.ts#L142-L142" }, { "kind": "interface", @@ -22625,7 +22647,7 @@ } } ], - "specLocation": "_global/bulk/types.ts#L92-L109" + "specLocation": "_global/bulk/types.ts#L100-L117" }, { "kind": "interface", @@ -22683,7 +22705,7 @@ } } ], - "specLocation": "_global/bulk/types.ts#L150-L172", + "specLocation": "_global/bulk/types.ts#L158-L180", "variants": { "kind": "container" } @@ -22708,7 +22730,7 @@ "name": "OperationType", "namespace": "_global.bulk" }, - "specLocation": "_global/bulk/types.ts#L85-L90" + "specLocation": "_global/bulk/types.ts#L93-L98" }, { "kind": "request", @@ -23083,6 +23105,17 @@ } } }, + { + "name": "failure_store", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "FailureStoreStatus", + "namespace": "_global.bulk" + } + } + }, { "description": "Additional information about the failed operation.\nThe property is returned only for failed operations.", "name": "error", @@ -23194,7 +23227,7 @@ } } ], - "specLocation": "_global/bulk/types.ts#L37-L83" + "specLocation": "_global/bulk/types.ts#L37-L84" }, { "kind": "interface", @@ -23302,7 +23335,7 @@ } } ], - "specLocation": "_global/bulk/types.ts#L174-L209" + "specLocation": "_global/bulk/types.ts#L182-L217" }, { "kind": "interface", @@ -23343,7 +23376,7 @@ } } ], - "specLocation": "_global/bulk/types.ts#L138-L148" + "specLocation": "_global/bulk/types.ts#L146-L156" }, { "kind": "interface", @@ -23407,7 +23440,7 @@ } } ], - "specLocation": "_global/bulk/types.ts#L111-L130" + "specLocation": "_global/bulk/types.ts#L119-L138" }, { "kind": "request", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 165d21b9d3..3e53dc2c7f 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -23,6 +23,8 @@ export interface BulkCreateOperation extends BulkWriteOperation { export interface BulkDeleteOperation extends BulkOperationBase { } +export type BulkFailureStoreStatus = 'not_applicable_or_unknown' | 'used' | 'not_enabled' | 'failed' + export interface BulkIndexOperation extends BulkWriteOperation { } @@ -73,6 +75,7 @@ export interface BulkResponseItem { _id?: string | null _index: string status: integer + failure_store?: BulkFailureStoreStatus error?: ErrorCause _primary_term?: long result?: string diff --git a/specification/_global/bulk/types.ts b/specification/_global/bulk/types.ts index 4310bf8ff5..e7ca211906 100644 --- a/specification/_global/bulk/types.ts +++ b/specification/_global/bulk/types.ts @@ -48,6 +48,7 @@ export class ResponseItem { * The HTTP status code returned for the operation. */ status: integer + failure_store?: FailureStoreStatus /** * Additional information about the failed operation. * The property is returned only for failed operations. @@ -82,6 +83,13 @@ export class ResponseItem { get?: InlineGet> } +export enum FailureStoreStatus { + not_applicable_or_unknown, + used, + not_enabled, + failed +} + export enum OperationType { index, create,