diff --git a/output/schema/schema.json b/output/schema/schema.json index 1a0df1b9c3..ca23fa4c87 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -38428,11 +38428,7 @@ "value": { "kind": "array_of", "value": { - "kind": "instance_of", - "type": { - "name": "FieldValue", - "namespace": "_types" - } + "kind": "user_defined_value" } } } @@ -38537,7 +38533,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L41-L66" + "specLocation": "_global/search/_types/hits.ts#L40-L65" }, { "kind": "interface", @@ -38623,7 +38619,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L68-L74" + "specLocation": "_global/search/_types/hits.ts#L67-L73" }, { "kind": "interface", @@ -38830,7 +38826,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L108-L142" + "specLocation": "_global/search/_types/hits.ts#L107-L141" }, { "kind": "interface", @@ -38856,7 +38852,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L86-L88" + "specLocation": "_global/search/_types/hits.ts#L85-L87" }, { "kind": "interface", @@ -39418,7 +39414,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L90-L94" + "specLocation": "_global/search/_types/hits.ts#L89-L93" }, { "kind": "interface", @@ -41328,7 +41324,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L96-L99" + "specLocation": "_global/search/_types/hits.ts#L95-L98" }, { "kind": "enum", @@ -41346,7 +41342,7 @@ "name": "TotalHitsRelation", "namespace": "_global.search._types" }, - "specLocation": "_global/search/_types/hits.ts#L101-L106" + "specLocation": "_global/search/_types/hits.ts#L100-L105" }, { "kind": "type_alias", @@ -41359,7 +41355,7 @@ "name": "TrackHits", "namespace": "_global.search._types" }, - "specLocation": "_global/search/_types/hits.ts#L144-L152", + "specLocation": "_global/search/_types/hits.ts#L143-L151", "type": { "kind": "union_of", "items": [ @@ -44998,7 +44994,7 @@ "name": "AggregateName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L148-L152", + "specLocation": "_types/common.ts#L142-L146", "type": { "kind": "instance_of", "type": { @@ -45207,7 +45203,7 @@ "name": "ByteSize", "namespace": "_types" }, - "specLocation": "_types/common.ts#L96-L97", + "specLocation": "_types/common.ts#L90-L91", "type": { "kind": "union_of", "items": [ @@ -45260,7 +45256,7 @@ "name": "Bytes", "namespace": "_types" }, - "specLocation": "_types/common.ts#L172-L184" + "specLocation": "_types/common.ts#L166-L178" }, { "kind": "type_alias", @@ -45268,7 +45264,7 @@ "name": "CategoryId", "namespace": "_types" }, - "specLocation": "_types/common.ts#L58-L58", + "specLocation": "_types/common.ts#L52-L52", "type": { "kind": "instance_of", "type": { @@ -45283,7 +45279,7 @@ "name": "ClusterAlias", "namespace": "_types" }, - "specLocation": "_types/common.ts#L78-L78", + "specLocation": "_types/common.ts#L72-L72", "type": { "kind": "instance_of", "type": { @@ -45403,7 +45399,7 @@ "name": "ClusterInfoTarget", "namespace": "_types" }, - "specLocation": "_types/common.ts#L384-L390" + "specLocation": "_types/common.ts#L378-L384" }, { "kind": "type_alias", @@ -45411,7 +45407,7 @@ "name": "ClusterInfoTargets", "namespace": "_types" }, - "specLocation": "_types/common.ts#L392-L392", + "specLocation": "_types/common.ts#L386-L386", "type": { "kind": "union_of", "items": [ @@ -45630,7 +45626,7 @@ "name": "Conflicts", "namespace": "_types" }, - "specLocation": "_types/common.ts#L186-L195" + "specLocation": "_types/common.ts#L180-L189" }, { "kind": "interface", @@ -45761,7 +45757,7 @@ "name": "DataStreamName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L92-L92", + "specLocation": "_types/common.ts#L86-L86", "type": { "kind": "instance_of", "type": { @@ -45776,7 +45772,7 @@ "name": "DataStreamNames", "namespace": "_types" }, - "specLocation": "_types/common.ts#L94-L94", + "specLocation": "_types/common.ts#L88-L88", "type": { "kind": "union_of", "items": [ @@ -46213,7 +46209,7 @@ "namespace": "_types" }, "properties": [], - "specLocation": "_types/common.ts#L163-L164" + "specLocation": "_types/common.ts#L157-L158" }, { "kind": "type_alias", @@ -46425,7 +46421,7 @@ "name": "ExpandWildcard", "namespace": "_types" }, - "specLocation": "_types/common.ts#L204-L218" + "specLocation": "_types/common.ts#L198-L212" }, { "kind": "type_alias", @@ -46433,7 +46429,7 @@ "name": "ExpandWildcards", "namespace": "_types" }, - "specLocation": "_types/common.ts#L220-L220", + "specLocation": "_types/common.ts#L214-L214", "type": { "kind": "union_of", "items": [ @@ -46464,7 +46460,7 @@ "name": "Field", "namespace": "_types" }, - "specLocation": "_types/common.ts#L141-L142", + "specLocation": "_types/common.ts#L135-L136", "type": { "kind": "instance_of", "type": { @@ -46654,15 +46650,14 @@ "double", "string", "boolean", - "null", - "any" + "null" ], "description": "A field value.", "name": { "name": "FieldValue", "namespace": "_types" }, - "specLocation": "_types/common.ts#L25-L37", + "specLocation": "_types/common.ts#L25-L31", "type": { "kind": "union_of", "items": [ @@ -46700,9 +46695,6 @@ "name": "null", "namespace": "_builtins" } - }, - { - "kind": "user_defined_value" } ] } @@ -46778,7 +46770,7 @@ "name": "Fields", "namespace": "_types" }, - "specLocation": "_types/common.ts#L143-L143", + "specLocation": "_types/common.ts#L137-L137", "type": { "kind": "union_of", "items": [ @@ -46873,7 +46865,7 @@ "name": "Fuzziness", "namespace": "_types" }, - "specLocation": "_types/common.ts#L136-L137", + "specLocation": "_types/common.ts#L130-L131", "type": { "kind": "union_of", "items": [ @@ -47480,7 +47472,7 @@ "name": "GrokPattern", "namespace": "_types" }, - "specLocation": "_types/common.ts#L87-L87", + "specLocation": "_types/common.ts#L81-L81", "type": { "kind": "instance_of", "type": { @@ -47518,7 +47510,7 @@ "name": "HealthStatus", "namespace": "_types" }, - "specLocation": "_types/common.ts#L222-L242" + "specLocation": "_types/common.ts#L216-L236" }, { "kind": "type_alias", @@ -47541,7 +47533,7 @@ "name": "HttpHeaders", "namespace": "_types" }, - "specLocation": "_types/common.ts#L161-L161", + "specLocation": "_types/common.ts#L155-L155", "type": { "kind": "dictionary_of", "key": { @@ -47614,7 +47606,7 @@ "name": "Id", "namespace": "_types" }, - "specLocation": "_types/common.ts#L61-L61", + "specLocation": "_types/common.ts#L55-L55", "type": { "kind": "instance_of", "type": { @@ -47629,7 +47621,7 @@ "name": "Ids", "namespace": "_types" }, - "specLocation": "_types/common.ts#L62-L62", + "specLocation": "_types/common.ts#L56-L56", "type": { "kind": "union_of", "items": [ @@ -47659,7 +47651,7 @@ "name": "IndexAlias", "namespace": "_types" }, - "specLocation": "_types/common.ts#L68-L68", + "specLocation": "_types/common.ts#L62-L62", "type": { "kind": "instance_of", "type": { @@ -47674,7 +47666,7 @@ "name": "IndexName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L66-L66", + "specLocation": "_types/common.ts#L60-L60", "type": { "kind": "instance_of", "type": { @@ -47689,7 +47681,7 @@ "name": "IndexPattern", "namespace": "_types" }, - "specLocation": "_types/common.ts#L69-L69", + "specLocation": "_types/common.ts#L63-L63", "type": { "kind": "instance_of", "type": { @@ -47704,7 +47696,7 @@ "name": "IndexPatterns", "namespace": "_types" }, - "specLocation": "_types/common.ts#L70-L70", + "specLocation": "_types/common.ts#L64-L64", "type": { "kind": "array_of", "value": { @@ -47935,7 +47927,7 @@ "name": "Indices", "namespace": "_types" }, - "specLocation": "_types/common.ts#L67-L67", + "specLocation": "_types/common.ts#L61-L61", "type": { "kind": "union_of", "items": [ @@ -48018,7 +48010,7 @@ } } ], - "specLocation": "_types/common.ts#L338-L365" + "specLocation": "_types/common.ts#L332-L359" }, { "kind": "interface", @@ -48161,7 +48153,7 @@ } } ], - "specLocation": "_types/common.ts#L323-L336" + "specLocation": "_types/common.ts#L317-L330" }, { "kind": "type_alias", @@ -48632,7 +48624,7 @@ "name": "Level", "namespace": "_types" }, - "specLocation": "_types/common.ts#L252-L256" + "specLocation": "_types/common.ts#L246-L250" }, { "kind": "enum", @@ -48887,7 +48879,7 @@ "name": "Metadata", "namespace": "_types" }, - "specLocation": "_types/common.ts#L99-L99", + "specLocation": "_types/common.ts#L93-L93", "type": { "kind": "dictionary_of", "key": { @@ -48909,7 +48901,7 @@ "name": "Metrics", "namespace": "_types" }, - "specLocation": "_types/common.ts#L76-L76", + "specLocation": "_types/common.ts#L70-L70", "type": { "kind": "union_of", "items": [ @@ -48942,7 +48934,7 @@ "name": "MinimumShouldMatch", "namespace": "_types" }, - "specLocation": "_types/common.ts#L166-L170", + "specLocation": "_types/common.ts#L160-L164", "type": { "kind": "union_of", "items": [ @@ -48971,7 +48963,7 @@ "name": "MultiTermQueryRewrite", "namespace": "_types" }, - "specLocation": "_types/common.ts#L138-L139", + "specLocation": "_types/common.ts#L132-L133", "type": { "kind": "instance_of", "type": { @@ -48986,7 +48978,7 @@ "name": "Name", "namespace": "_types" }, - "specLocation": "_types/common.ts#L80-L80", + "specLocation": "_types/common.ts#L74-L74", "type": { "kind": "instance_of", "type": { @@ -49001,7 +48993,7 @@ "name": "Names", "namespace": "_types" }, - "specLocation": "_types/common.ts#L81-L81", + "specLocation": "_types/common.ts#L75-L75", "type": { "kind": "union_of", "items": [ @@ -49031,7 +49023,7 @@ "name": "Namespace", "namespace": "_types" }, - "specLocation": "_types/common.ts#L83-L83", + "specLocation": "_types/common.ts#L77-L77", "type": { "kind": "instance_of", "type": { @@ -49181,7 +49173,7 @@ "name": "NodeId", "namespace": "_types" }, - "specLocation": "_types/common.ts#L63-L63", + "specLocation": "_types/common.ts#L57-L57", "type": { "kind": "instance_of", "type": { @@ -49196,7 +49188,7 @@ "name": "NodeIds", "namespace": "_types" }, - "specLocation": "_types/common.ts#L64-L64", + "specLocation": "_types/common.ts#L58-L58", "type": { "kind": "union_of", "items": [ @@ -49228,7 +49220,7 @@ "name": "NodeName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L89-L90", + "specLocation": "_types/common.ts#L83-L84", "type": { "kind": "instance_of", "type": { @@ -49564,7 +49556,7 @@ "name": "OpType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L258-L267" + "specLocation": "_types/common.ts#L252-L261" }, { "kind": "type_alias", @@ -49572,7 +49564,7 @@ "name": "Password", "namespace": "_types" }, - "specLocation": "_types/common.ts#L198-L198", + "specLocation": "_types/common.ts#L192-L192", "type": { "kind": "instance_of", "type": { @@ -49614,7 +49606,7 @@ "name": "PipelineName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L86-L86", + "specLocation": "_types/common.ts#L80-L80", "type": { "kind": "instance_of", "type": { @@ -49741,7 +49733,7 @@ "name": "PropertyName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L133-L133", + "specLocation": "_types/common.ts#L127-L127", "type": { "kind": "instance_of", "type": { @@ -50068,7 +50060,7 @@ "name": "Refresh", "namespace": "_types" }, - "specLocation": "_types/common.ts#L269-L276" + "specLocation": "_types/common.ts#L263-L270" }, { "kind": "interface", @@ -50170,7 +50162,7 @@ "name": "RelationName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L134-L134", + "specLocation": "_types/common.ts#L128-L128", "type": { "kind": "instance_of", "type": { @@ -50495,7 +50487,7 @@ "name": "Routing", "namespace": "_types" }, - "specLocation": "_types/common.ts#L72-L72", + "specLocation": "_types/common.ts#L66-L66", "type": { "kind": "instance_of", "type": { @@ -50621,7 +50613,7 @@ "name": "ScalarValue", "namespace": "_types" }, - "specLocation": "_types/common.ts#L39-L43", + "specLocation": "_types/common.ts#L33-L37", "type": { "kind": "union_of", "items": [ @@ -50984,7 +50976,7 @@ "name": "ScrollId", "namespace": "_types" }, - "specLocation": "_types/common.ts#L55-L55", + "specLocation": "_types/common.ts#L49-L49", "type": { "kind": "instance_of", "type": { @@ -50999,7 +50991,7 @@ "name": "ScrollIds", "namespace": "_types" }, - "specLocation": "_types/common.ts#L56-L56", + "specLocation": "_types/common.ts#L50-L50", "type": { "kind": "union_of", "items": [ @@ -51326,7 +51318,7 @@ "name": "SearchType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L278-L283" + "specLocation": "_types/common.ts#L272-L277" }, { "kind": "interface", @@ -51641,7 +51633,7 @@ "name": "SequenceNumber", "namespace": "_types" }, - "specLocation": "_types/common.ts#L131-L131", + "specLocation": "_types/common.ts#L125-L125", "type": { "kind": "instance_of", "type": { @@ -51656,7 +51648,7 @@ "name": "Service", "namespace": "_types" }, - "specLocation": "_types/common.ts#L84-L84", + "specLocation": "_types/common.ts#L78-L78", "type": { "kind": "instance_of", "type": { @@ -51876,7 +51868,7 @@ "name": "Slices", "namespace": "_types" }, - "specLocation": "_types/common.ts#L367-L372", + "specLocation": "_types/common.ts#L361-L366", "type": { "kind": "union_of", "items": [ @@ -51909,7 +51901,7 @@ "name": "SlicesCalculation", "namespace": "_types" }, - "specLocation": "_types/common.ts#L374-L382" + "specLocation": "_types/common.ts#L368-L376" }, { "kind": "type_alias", @@ -52372,7 +52364,7 @@ "name": "SuggestMode", "namespace": "_types" }, - "specLocation": "_types/common.ts#L285-L298" + "specLocation": "_types/common.ts#L279-L292" }, { "kind": "type_alias", @@ -52381,7 +52373,7 @@ "name": "SuggestionName", "namespace": "_types" }, - "specLocation": "_types/common.ts#L154-L158", + "specLocation": "_types/common.ts#L148-L152", "type": { "kind": "instance_of", "type": { @@ -52450,7 +52442,7 @@ "name": "TaskId", "namespace": "_types" }, - "specLocation": "_types/common.ts#L135-L135", + "specLocation": "_types/common.ts#L129-L129", "type": { "kind": "union_of", "items": [ @@ -52602,7 +52594,7 @@ "name": "ThreadType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L300-L306" + "specLocation": "_types/common.ts#L294-L300" }, { "kind": "type_alias", @@ -52958,7 +52950,7 @@ "name": "Username", "namespace": "_types" }, - "specLocation": "_types/common.ts#L197-L197", + "specLocation": "_types/common.ts#L191-L191", "type": { "kind": "instance_of", "type": { @@ -52973,7 +52965,7 @@ "name": "Uuid", "namespace": "_types" }, - "specLocation": "_types/common.ts#L128-L128", + "specLocation": "_types/common.ts#L122-L122", "type": { "kind": "instance_of", "type": { @@ -52988,7 +52980,7 @@ "name": "VersionNumber", "namespace": "_types" }, - "specLocation": "_types/common.ts#L102-L102", + "specLocation": "_types/common.ts#L96-L96", "type": { "kind": "instance_of", "type": { @@ -53003,7 +52995,7 @@ "name": "VersionString", "namespace": "_types" }, - "specLocation": "_types/common.ts#L104-L104", + "specLocation": "_types/common.ts#L98-L98", "type": { "kind": "instance_of", "type": { @@ -53036,7 +53028,7 @@ "name": "VersionType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L106-L125" + "specLocation": "_types/common.ts#L100-L119" }, { "kind": "enum", @@ -53052,7 +53044,7 @@ "name": "WaitForActiveShardOptions", "namespace": "_types" }, - "specLocation": "_types/common.ts#L308-L312" + "specLocation": "_types/common.ts#L302-L306" }, { "kind": "type_alias", @@ -53064,7 +53056,7 @@ "name": "WaitForActiveShards", "namespace": "_types" }, - "specLocation": "_types/common.ts#L145-L146", + "specLocation": "_types/common.ts#L139-L140", "type": { "kind": "union_of", "items": [ @@ -53111,7 +53103,7 @@ "name": "WaitForEvents", "namespace": "_types" }, - "specLocation": "_types/common.ts#L314-L321" + "specLocation": "_types/common.ts#L308-L315" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index c9453d8e8d..45a2123927 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1539,7 +1539,7 @@ export interface SearchHit { matched_queries?: string[] | Record _nested?: SearchNestedIdentity _ignored?: string[] - ignored_field_values?: Record + ignored_field_values?: Record _shard?: string _node?: string _routing?: string @@ -2354,7 +2354,7 @@ export interface FieldSort { export type FieldSortNumericType = 'long' | 'double' | 'date' | 'date_nanos' -export type FieldValue = long | double | string | boolean | null | any +export type FieldValue = long | double | string | boolean | null export interface FielddataStats { evictions?: long diff --git a/specification/_global/search/_types/hits.ts b/specification/_global/search/_types/hits.ts index 2ab7993d8f..02cc0678cb 100644 --- a/specification/_global/search/_types/hits.ts +++ b/specification/_global/search/_types/hits.ts @@ -23,7 +23,6 @@ import { UserDefinedValue } from '@spec_utils/UserDefinedValue' import { Field, Fields, - FieldValue, Id, IndexName, Name, @@ -53,7 +52,7 @@ export class Hit { matched_queries?: string[] | Dictionary _nested?: NestedIdentity _ignored?: string[] - ignored_field_values?: Dictionary + ignored_field_values?: Dictionary _shard?: string _node?: string _routing?: string diff --git a/specification/_types/common.ts b/specification/_types/common.ts index 3f81a3adc4..73847e459e 100644 --- a/specification/_types/common.ts +++ b/specification/_types/common.ts @@ -24,17 +24,11 @@ import { double, integer, long } from './Numeric' /** * A field value. - * @codegen_names long, double, string, boolean, null, any + * @codegen_names long, double, string, boolean, null */ // Note: the ending `UserDefinedValue` includes all other union members, but we keep them explicit so that // code generators can provide direct access to scalar values, which are the most common use case. -export type FieldValue = - | long - | double - | string - | boolean - | null - | UserDefinedValue +export type FieldValue = long | double | string | boolean | null /** * A scalar value.