diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index c86cf9a60a..b242b84f63 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -46215,6 +46215,7 @@ "type": "object" }, "from": { + "deprecated": true, "oneOf": [ { "type": "object" @@ -46226,6 +46227,7 @@ ] }, "to": { + "deprecated": true, "oneOf": [ { "type": "object" @@ -46290,6 +46292,7 @@ "$ref": "#/components/schemas/_types:DateMath" }, "from": { + "deprecated": true, "oneOf": [ { "$ref": "#/components/schemas/_types:DateMath" @@ -46301,6 +46304,7 @@ ] }, "to": { + "deprecated": true, "oneOf": [ { "$ref": "#/components/schemas/_types:DateMath" @@ -46353,6 +46357,7 @@ "type": "number" }, "from": { + "deprecated": true, "oneOf": [ { "type": "number" @@ -46364,6 +46369,7 @@ ] }, "to": { + "deprecated": true, "oneOf": [ { "type": "number" @@ -46416,6 +46422,7 @@ "type": "string" }, "from": { + "deprecated": true, "oneOf": [ { "type": "string" @@ -46427,6 +46434,7 @@ ] }, "to": { + "deprecated": true, "oneOf": [ { "type": "string" diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 1c517e01c0..2cdc3d63f2 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -29495,6 +29495,7 @@ "type": "object" }, "from": { + "deprecated": true, "oneOf": [ { "type": "object" @@ -29506,6 +29507,7 @@ ] }, "to": { + "deprecated": true, "oneOf": [ { "type": "object" @@ -29570,6 +29572,7 @@ "$ref": "#/components/schemas/_types:DateMath" }, "from": { + "deprecated": true, "oneOf": [ { "$ref": "#/components/schemas/_types:DateMath" @@ -29581,6 +29584,7 @@ ] }, "to": { + "deprecated": true, "oneOf": [ { "$ref": "#/components/schemas/_types:DateMath" @@ -29633,6 +29637,7 @@ "type": "number" }, "from": { + "deprecated": true, "oneOf": [ { "type": "number" @@ -29644,6 +29649,7 @@ ] }, "to": { + "deprecated": true, "oneOf": [ { "type": "number" @@ -29696,6 +29702,7 @@ "type": "string" }, "from": { + "deprecated": true, "oneOf": [ { "type": "string" @@ -29707,6 +29714,7 @@ ] }, "to": { + "deprecated": true, "oneOf": [ { "type": "string" diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 43a3fc1921..132055c767 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -56000,7 +56000,7 @@ "name": "RangeQuery", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/term.ts#L162-L171", + "specLocation": "_types/query_dsl/term.ts#L164-L173", "type": { "items": [ { @@ -56085,7 +56085,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L136-L145" + "specLocation": "_types/query_dsl/term.ts#L138-L147" }, { "generics": [ @@ -56168,6 +56168,10 @@ } }, { + "deprecation": { + "description": "Use gte or gt instead", + "version": "8.16.0" + }, "name": "from", "required": false, "type": { @@ -56191,6 +56195,10 @@ } }, { + "deprecation": { + "description": "Use lte or lt instead", + "version": "8.16.0" + }, "name": "to", "required": false, "type": { @@ -56214,7 +56222,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L110-L134" + "specLocation": "_types/query_dsl/term.ts#L110-L136" }, { "kind": "enum", @@ -56236,7 +56244,7 @@ "name": "RangeRelation", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/term.ts#L173-L186" + "specLocation": "_types/query_dsl/term.ts#L175-L188" }, { "docId": "mapping-date-format", @@ -56302,7 +56310,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L147-L156" + "specLocation": "_types/query_dsl/term.ts#L149-L158" }, { "inherits": { @@ -56326,7 +56334,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L158-L158" + "specLocation": "_types/query_dsl/term.ts#L160-L160" }, { "inherits": { @@ -56350,7 +56358,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L160-L160" + "specLocation": "_types/query_dsl/term.ts#L162-L162" }, { "inherits": { @@ -56637,7 +56645,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L188-L218" + "specLocation": "_types/query_dsl/term.ts#L190-L220" }, { "inherits": { @@ -57927,7 +57935,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L220-L234" + "specLocation": "_types/query_dsl/term.ts#L222-L236" }, { "codegenNames": [ @@ -58033,7 +58041,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L236-L241" + "specLocation": "_types/query_dsl/term.ts#L238-L243" }, { "codegenNames": [ @@ -58045,7 +58053,7 @@ "name": "TermsQueryField", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/term.ts#L243-L246", + "specLocation": "_types/query_dsl/term.ts#L245-L248", "type": { "items": [ { @@ -58121,7 +58129,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L248-L253" + "specLocation": "_types/query_dsl/term.ts#L250-L255" }, { "inherits": { @@ -58194,7 +58202,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L255-L274" + "specLocation": "_types/query_dsl/term.ts#L257-L276" }, { "inherits": { @@ -58379,7 +58387,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L280-L297" + "specLocation": "_types/query_dsl/term.ts#L282-L299" }, { "inherits": { @@ -58434,7 +58442,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L276-L278" + "specLocation": "_types/query_dsl/term.ts#L278-L280" }, { "inherits": { diff --git a/output/schema/schema.json b/output/schema/schema.json index ad7dc7e35a..ed23ec4fc8 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -77925,7 +77925,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L147-L156" + "specLocation": "_types/query_dsl/term.ts#L149-L158" }, { "kind": "type_alias", @@ -81604,7 +81604,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L158-L158" + "specLocation": "_types/query_dsl/term.ts#L160-L160" }, { "kind": "interface", @@ -83490,7 +83490,7 @@ "name": "RangeQuery", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/term.ts#L162-L171", + "specLocation": "_types/query_dsl/term.ts#L164-L173", "type": { "kind": "union_of", "items": [ @@ -83613,6 +83613,10 @@ } }, { + "deprecation": { + "description": "Use gte or gt instead", + "version": "8.16.0" + }, "name": "from", "required": false, "type": { @@ -83636,6 +83640,10 @@ } }, { + "deprecation": { + "description": "Use lte or lt instead", + "version": "8.16.0" + }, "name": "to", "required": false, "type": { @@ -83659,7 +83667,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L110-L134" + "specLocation": "_types/query_dsl/term.ts#L110-L136" }, { "kind": "enum", @@ -83681,7 +83689,7 @@ "name": "RangeRelation", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/term.ts#L173-L186" + "specLocation": "_types/query_dsl/term.ts#L175-L188" }, { "kind": "interface", @@ -83968,7 +83976,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L188-L218" + "specLocation": "_types/query_dsl/term.ts#L190-L220" }, { "kind": "interface", @@ -85259,7 +85267,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L220-L234" + "specLocation": "_types/query_dsl/term.ts#L222-L236" }, { "kind": "interface", @@ -85283,7 +85291,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L160-L160" + "specLocation": "_types/query_dsl/term.ts#L162-L162" }, { "kind": "interface", @@ -85337,7 +85345,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L248-L253" + "specLocation": "_types/query_dsl/term.ts#L250-L255" }, { "kind": "interface", @@ -85383,7 +85391,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L236-L241" + "specLocation": "_types/query_dsl/term.ts#L238-L243" }, { "kind": "type_alias", @@ -85395,7 +85403,7 @@ "name": "TermsQueryField", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/term.ts#L243-L246", + "specLocation": "_types/query_dsl/term.ts#L245-L248", "type": { "kind": "union_of", "items": [ @@ -85490,7 +85498,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L255-L274" + "specLocation": "_types/query_dsl/term.ts#L257-L276" }, { "kind": "interface", @@ -85661,7 +85669,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L276-L278" + "specLocation": "_types/query_dsl/term.ts#L278-L280" }, { "kind": "interface", @@ -85755,7 +85763,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L136-L145" + "specLocation": "_types/query_dsl/term.ts#L138-L147" }, { "kind": "interface", @@ -85879,7 +85887,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L280-L297" + "specLocation": "_types/query_dsl/term.ts#L282-L299" }, { "kind": "interface", diff --git a/specification/_types/query_dsl/term.ts b/specification/_types/query_dsl/term.ts index 92a2d1ba60..b2bc6ec447 100644 --- a/specification/_types/query_dsl/term.ts +++ b/specification/_types/query_dsl/term.ts @@ -129,7 +129,9 @@ export class RangeQueryBase extends QueryBase { * Less than or equal to. */ lte?: T + /** @deprecated 8.16.0 Use gte or gt instead */ from?: T | null + /** @deprecated 8.16.0 Use lte or lt instead */ to?: T | null }