diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 27b54f0551..4cfa4a65c6 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -46334,6 +46334,7 @@ "type": "object" }, "from": { + "deprecated": true, "oneOf": [ { "type": "object" @@ -46345,6 +46346,7 @@ ] }, "to": { + "deprecated": true, "oneOf": [ { "type": "object" @@ -46409,6 +46411,7 @@ "$ref": "#/components/schemas/_types:DateMath" }, "from": { + "deprecated": true, "oneOf": [ { "$ref": "#/components/schemas/_types:DateMath" @@ -46420,6 +46423,7 @@ ] }, "to": { + "deprecated": true, "oneOf": [ { "$ref": "#/components/schemas/_types:DateMath" @@ -46472,6 +46476,7 @@ "type": "number" }, "from": { + "deprecated": true, "oneOf": [ { "type": "number" @@ -46483,6 +46488,7 @@ ] }, "to": { + "deprecated": true, "oneOf": [ { "type": "number" @@ -46535,6 +46541,7 @@ "type": "string" }, "from": { + "deprecated": true, "oneOf": [ { "type": "string" @@ -46546,6 +46553,7 @@ ] }, "to": { + "deprecated": true, "oneOf": [ { "type": "string" diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 374a6e2e38..699725f79e 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 f4feb2fd9d..487dbacf4d 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 0c642cef72..453358c594 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -77957,7 +77957,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L147-L156" + "specLocation": "_types/query_dsl/term.ts#L149-L158" }, { "kind": "type_alias", @@ -81636,7 +81636,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L158-L158" + "specLocation": "_types/query_dsl/term.ts#L160-L160" }, { "kind": "interface", @@ -83522,7 +83522,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": [ @@ -83645,6 +83645,10 @@ } }, { + "deprecation": { + "description": "Use gte or gt instead", + "version": "8.16.0" + }, "name": "from", "required": false, "type": { @@ -83668,6 +83672,10 @@ } }, { + "deprecation": { + "description": "Use lte or lt instead", + "version": "8.16.0" + }, "name": "to", "required": false, "type": { @@ -83691,7 +83699,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L110-L134" + "specLocation": "_types/query_dsl/term.ts#L110-L136" }, { "kind": "enum", @@ -83713,7 +83721,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", @@ -84000,7 +84008,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L188-L218" + "specLocation": "_types/query_dsl/term.ts#L190-L220" }, { "kind": "interface", @@ -85291,7 +85299,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L220-L234" + "specLocation": "_types/query_dsl/term.ts#L222-L236" }, { "kind": "interface", @@ -85315,7 +85323,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L160-L160" + "specLocation": "_types/query_dsl/term.ts#L162-L162" }, { "kind": "interface", @@ -85369,7 +85377,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L248-L253" + "specLocation": "_types/query_dsl/term.ts#L250-L255" }, { "kind": "interface", @@ -85415,7 +85423,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", @@ -85427,7 +85435,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": [ @@ -85522,7 +85530,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L255-L274" + "specLocation": "_types/query_dsl/term.ts#L257-L276" }, { "kind": "interface", @@ -85693,7 +85701,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L276-L278" + "specLocation": "_types/query_dsl/term.ts#L278-L280" }, { "kind": "interface", @@ -85787,7 +85795,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L136-L145" + "specLocation": "_types/query_dsl/term.ts#L138-L147" }, { "kind": "interface", @@ -85911,7 +85919,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 73c8e268e8..9ed0437681 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 }