diff --git a/output/schema/schema.json b/output/schema/schema.json index 91f39db1a1..a1df78c2b2 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -38361,9 +38361,9 @@ }, "properties": [], "specLocation": { - "endLine": 540, + "endLine": 551, "path": "_types/aggregations/Aggregate.ts", - "startLine": 538 + "startLine": 549 }, "variantName": "adjacency_matrix" }, @@ -38426,9 +38426,9 @@ }, "properties": [], "specLocation": { - "endLine": 542, + "endLine": 553, "path": "_types/aggregations/Aggregate.ts", - "startLine": 542 + "startLine": 553 } }, { @@ -38438,7 +38438,7 @@ "namespace": "_types.aggregations" }, "specLocation": { - "endLine": 109, + "endLine": 111, "path": "_types/aggregations/Aggregate.ts", "startLine": 30 }, @@ -38717,6 +38717,20 @@ "namespace": "_types.aggregations" } }, + { + "kind": "instance_of", + "type": { + "name": "ChildrenAggregate", + "namespace": "_types.aggregations" + } + }, + { + "kind": "instance_of", + "type": { + "name": "ParentAggregate", + "namespace": "_types.aggregations" + } + }, { "kind": "instance_of", "type": { @@ -38724,6 +38738,13 @@ "namespace": "_types.aggregations" } }, + { + "kind": "instance_of", + "type": { + "name": "UnmappedSamplerAggregate", + "namespace": "_types.aggregations" + } + }, { "kind": "instance_of", "type": { @@ -38878,13 +38899,6 @@ "namespace": "_types.aggregations" } }, - { - "kind": "instance_of", - "type": { - "name": "ChildrenAggregate", - "namespace": "_types.aggregations" - } - }, { "kind": "instance_of", "type": { @@ -38926,9 +38940,9 @@ } ], "specLocation": { - "endLine": 122, + "endLine": 124, "path": "_types/aggregations/Aggregate.ts", - "startLine": 120 + "startLine": 122 } }, { @@ -39985,9 +39999,9 @@ } ], "specLocation": { - "endLine": 150, + "endLine": 152, "path": "_types/aggregations/Aggregate.ts", - "startLine": 146 + "startLine": 148 } }, { @@ -40025,9 +40039,9 @@ } ], "specLocation": { - "endLine": 344, + "endLine": 346, "path": "_types/aggregations/Aggregate.ts", - "startLine": 340 + "startLine": 342 }, "variantName": "auto_date_histogram" }, @@ -40209,9 +40223,9 @@ }, "properties": [], "specLocation": { - "endLine": 196, + "endLine": 198, "path": "_types/aggregations/Aggregate.ts", - "startLine": 195 + "startLine": 197 }, "variantName": "avg" }, @@ -40384,9 +40398,9 @@ } ], "specLocation": { - "endLine": 659, + "endLine": 670, "path": "_types/aggregations/Aggregate.ts", - "startLine": 643 + "startLine": 654 }, "variantName": "box_plot" }, @@ -40674,9 +40688,9 @@ } ], "specLocation": { - "endLine": 222, + "endLine": 224, "path": "_types/aggregations/Aggregate.ts", - "startLine": 219 + "startLine": 221 }, "variantName": "bucket_metric_value" }, @@ -40856,9 +40870,9 @@ "namespace": "_types.aggregations" }, "specLocation": { - "endLine": 309, + "endLine": 311, "path": "_types/aggregations/Aggregate.ts", - "startLine": 300 + "startLine": 302 }, "type": { "items": [ @@ -41040,9 +41054,9 @@ } ], "specLocation": { - "endLine": 127, + "endLine": 129, "path": "_types/aggregations/Aggregate.ts", - "startLine": 124 + "startLine": 126 }, "variantName": "cardinality" }, @@ -41337,56 +41351,28 @@ "startLine": 286 } }, - { - "inherits": { - "generics": [ - { - "kind": "instance_of", - "type": { - "name": "ChildrenAggregateBucket", - "namespace": "_types.aggregations" - } - } - ], - "type": { - "name": "MultiBucketAggregateBase", - "namespace": "_types.aggregations" - } - }, - "kind": "interface", - "name": { - "name": "ChildrenAggregate", - "namespace": "_types.aggregations" - }, - "properties": [], - "specLocation": { - "endLine": 716, - "path": "_types/aggregations/Aggregate.ts", - "startLine": 715 - }, - "variantName": "children" - }, { "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { - "name": "MultiBucketBase", + "name": "SingleBucketAggregateBase", "namespace": "_types.aggregations" } }, "kind": "interface", "name": { - "name": "ChildrenAggregateBucket", + "name": "ChildrenAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": { - "endLine": 718, + "endLine": 727, "path": "_types/aggregations/Aggregate.ts", - "startLine": 718 - } + "startLine": 726 + }, + "variantName": "children" }, { "inherits": { @@ -41536,9 +41522,9 @@ } ], "specLocation": { - "endLine": 578, + "endLine": 589, "path": "_types/aggregations/Aggregate.ts", - "startLine": 574 + "startLine": 585 }, "variantName": "composite" }, @@ -41733,9 +41719,9 @@ } ], "specLocation": { - "endLine": 582, + "endLine": 593, "path": "_types/aggregations/Aggregate.ts", - "startLine": 580 + "startLine": 591 } }, { @@ -41776,9 +41762,9 @@ } ], "specLocation": { - "endLine": 694, + "endLine": 705, "path": "_types/aggregations/Aggregate.ts", - "startLine": 686 + "startLine": 697 }, "variantName": "simple_long_value" }, @@ -41843,9 +41829,9 @@ }, "properties": [], "specLocation": { - "endLine": 333, + "endLine": 335, "path": "_types/aggregations/Aggregate.ts", - "startLine": 332 + "startLine": 334 }, "variantName": "date_histogram" }, @@ -42099,9 +42085,9 @@ } ], "specLocation": { - "endLine": 338, + "endLine": 340, "path": "_types/aggregations/Aggregate.ts", - "startLine": 335 + "startLine": 337 } }, { @@ -42119,9 +42105,9 @@ }, "properties": [], "specLocation": { - "endLine": 514, + "endLine": 525, "path": "_types/aggregations/Aggregate.ts", - "startLine": 509 + "startLine": 520 }, "variantName": "date_range" }, @@ -42298,9 +42284,9 @@ } ], "specLocation": { - "endLine": 217, + "endLine": 219, "path": "_types/aggregations/Aggregate.ts", - "startLine": 213 + "startLine": 215 }, "variantName": "derivative" }, @@ -42422,9 +42408,9 @@ }, "properties": [], "specLocation": { - "endLine": 400, + "endLine": 402, "path": "_types/aggregations/Aggregate.ts", - "startLine": 395 + "startLine": 397 }, "variantName": "dterms" }, @@ -42468,9 +42454,9 @@ } ], "specLocation": { - "endLine": 405, + "endLine": 407, "path": "_types/aggregations/Aggregate.ts", - "startLine": 402 + "startLine": 404 } }, { @@ -42786,9 +42772,9 @@ } ], "specLocation": { - "endLine": 280, + "endLine": 282, "path": "_types/aggregations/Aggregate.ts", - "startLine": 264 + "startLine": 266 }, "variantName": "extended_stats" }, @@ -42837,9 +42823,9 @@ }, "properties": [], "specLocation": { - "endLine": 283, + "endLine": 285, "path": "_types/aggregations/Aggregate.ts", - "startLine": 282 + "startLine": 284 }, "variantName": "extended_stats_bucket" }, @@ -42911,6 +42897,9 @@ } }, { + "attachedBehaviors": [ + "AdditionalProperties" + ], "inherits": { "type": { "name": "SingleBucketAggregateBase", @@ -42924,9 +42913,9 @@ }, "properties": [], "specLocation": { - "endLine": 474, + "endLine": 482, "path": "_types/aggregations/Aggregate.ts", - "startLine": 473 + "startLine": 481 }, "variantName": "filter" }, @@ -42953,9 +42942,9 @@ }, "properties": [], "specLocation": { - "endLine": 534, + "endLine": 545, "path": "_types/aggregations/Aggregate.ts", - "startLine": 533 + "startLine": 544 }, "variantName": "filters" }, @@ -43049,9 +43038,9 @@ }, "properties": [], "specLocation": { - "endLine": 536, + "endLine": 547, "path": "_types/aggregations/Aggregate.ts", - "startLine": 536 + "startLine": 547 } }, { @@ -43162,9 +43151,9 @@ } ], "specLocation": { - "endLine": 290, + "endLine": 292, "path": "_types/aggregations/Aggregate.ts", - "startLine": 287 + "startLine": 289 }, "variantName": "geo_bounds" }, @@ -43236,9 +43225,9 @@ } ], "specLocation": { - "endLine": 296, + "endLine": 298, "path": "_types/aggregations/Aggregate.ts", - "startLine": 292 + "startLine": 294 }, "variantName": "geo_centroid" }, @@ -43299,9 +43288,9 @@ }, "properties": [], "specLocation": { - "endLine": 520, + "endLine": 531, "path": "_types/aggregations/Aggregate.ts", - "startLine": 516 + "startLine": 527 }, "variantName": "geo_distance" }, @@ -43406,9 +43395,9 @@ }, "properties": [], "specLocation": { - "endLine": 483, + "endLine": 494, "path": "_types/aggregations/Aggregate.ts", - "startLine": 481 + "startLine": 492 }, "variantName": "geohash_grid" }, @@ -43516,9 +43505,9 @@ } ], "specLocation": { - "endLine": 487, + "endLine": 498, "path": "_types/aggregations/Aggregate.ts", - "startLine": 485 + "startLine": 496 } }, { @@ -43558,9 +43547,9 @@ } ], "specLocation": { - "endLine": 731, + "endLine": 738, "path": "_types/aggregations/Aggregate.ts", - "startLine": 727 + "startLine": 734 }, "variantName": "geo_line" }, @@ -43706,9 +43695,9 @@ }, "properties": [], "specLocation": { - "endLine": 491, + "endLine": 502, "path": "_types/aggregations/Aggregate.ts", - "startLine": 489 + "startLine": 500 }, "variantName": "geotile_grid" }, @@ -43816,12 +43805,15 @@ } ], "specLocation": { - "endLine": 495, + "endLine": 506, "path": "_types/aggregations/Aggregate.ts", - "startLine": 493 + "startLine": 504 } }, { + "attachedBehaviors": [ + "AdditionalProperties" + ], "inherits": { "type": { "name": "SingleBucketAggregateBase", @@ -43835,9 +43827,9 @@ }, "properties": [], "specLocation": { - "endLine": 471, + "endLine": 479, "path": "_types/aggregations/Aggregate.ts", - "startLine": 470 + "startLine": 478 }, "variantName": "global" }, @@ -43924,9 +43916,9 @@ }, "properties": [], "specLocation": { - "endLine": 156, + "endLine": 158, "path": "_types/aggregations/Aggregate.ts", - "startLine": 155 + "startLine": 157 }, "variantName": "hdr_percentile_ranks" }, @@ -43944,9 +43936,9 @@ }, "properties": [], "specLocation": { - "endLine": 153, + "endLine": 155, "path": "_types/aggregations/Aggregate.ts", - "startLine": 152 + "startLine": 154 }, "variantName": "hdr_percentiles" }, @@ -43973,9 +43965,9 @@ }, "properties": [], "specLocation": { - "endLine": 325, + "endLine": 327, "path": "_types/aggregations/Aggregate.ts", - "startLine": 324 + "startLine": 326 }, "variantName": "histogram" }, @@ -44178,9 +44170,9 @@ } ], "specLocation": { - "endLine": 330, + "endLine": 332, "path": "_types/aggregations/Aggregate.ts", - "startLine": 327 + "startLine": 329 } }, { @@ -44523,9 +44515,9 @@ } ], "specLocation": { - "endLine": 607, + "endLine": 618, "path": "_types/aggregations/Aggregate.ts", - "startLine": 596 + "startLine": 607 }, "variantName": "inference" }, @@ -44602,9 +44594,9 @@ } ], "specLocation": { - "endLine": 624, + "endLine": 635, "path": "_types/aggregations/Aggregate.ts", - "startLine": 621 + "startLine": 632 } }, { @@ -44690,9 +44682,9 @@ } ], "specLocation": { - "endLine": 619, + "endLine": 630, "path": "_types/aggregations/Aggregate.ts", - "startLine": 615 + "startLine": 626 } }, { @@ -44737,9 +44729,9 @@ } ], "specLocation": { - "endLine": 613, + "endLine": 624, "path": "_types/aggregations/Aggregate.ts", - "startLine": 609 + "startLine": 620 } }, { @@ -44765,9 +44757,9 @@ }, "properties": [], "specLocation": { - "endLine": 524, + "endLine": 535, "path": "_types/aggregations/Aggregate.ts", - "startLine": 522 + "startLine": 533 }, "variantName": "ip_range" }, @@ -44927,9 +44919,9 @@ } ], "specLocation": { - "endLine": 529, + "endLine": 540, "path": "_types/aggregations/Aggregate.ts", - "startLine": 526 + "startLine": 537 } }, { @@ -44939,9 +44931,9 @@ "namespace": "_types.aggregations" }, "specLocation": { - "endLine": 144, + "endLine": 146, "path": "_types/aggregations/Aggregate.ts", - "startLine": 144 + "startLine": 146 }, "type": { "key": { @@ -45044,9 +45036,9 @@ }, "properties": [], "specLocation": { - "endLine": 420, + "endLine": 422, "path": "_types/aggregations/Aggregate.ts", - "startLine": 415 + "startLine": 417 }, "variantName": "lrareterms" }, @@ -45090,9 +45082,9 @@ } ], "specLocation": { - "endLine": 425, + "endLine": 427, "path": "_types/aggregations/Aggregate.ts", - "startLine": 422 + "startLine": 424 } }, { @@ -45119,9 +45111,9 @@ }, "properties": [], "specLocation": { - "endLine": 388, + "endLine": 390, "path": "_types/aggregations/Aggregate.ts", - "startLine": 383 + "startLine": 385 }, "variantName": "lterms" }, @@ -45165,9 +45157,9 @@ } ], "specLocation": { - "endLine": 393, + "endLine": 395, "path": "_types/aggregations/Aggregate.ts", - "startLine": 390 + "startLine": 392 } }, { @@ -45263,9 +45255,9 @@ } ], "specLocation": { - "endLine": 700, + "endLine": 711, "path": "_types/aggregations/Aggregate.ts", - "startLine": 696 + "startLine": 707 }, "variantName": "matrix_stats" }, @@ -45419,9 +45411,9 @@ } ], "specLocation": { - "endLine": 711, + "endLine": 722, "path": "_types/aggregations/Aggregate.ts", - "startLine": 702 + "startLine": 713 } }, { @@ -45438,9 +45430,9 @@ }, "properties": [], "specLocation": { - "endLine": 187, + "endLine": 189, "path": "_types/aggregations/Aggregate.ts", - "startLine": 186 + "startLine": 188 }, "variantName": "max" }, @@ -45496,9 +45488,9 @@ }, "properties": [], "specLocation": { - "endLine": 181, + "endLine": 183, "path": "_types/aggregations/Aggregate.ts", - "startLine": 180 + "startLine": 182 }, "variantName": "median_absolute_deviation" }, @@ -45594,9 +45586,9 @@ }, "properties": [], "specLocation": { - "endLine": 184, + "endLine": 186, "path": "_types/aggregations/Aggregate.ts", - "startLine": 183 + "startLine": 185 }, "variantName": "min" }, @@ -45716,6 +45708,9 @@ } }, { + "attachedBehaviors": [ + "AdditionalProperties" + ], "inherits": { "type": { "name": "SingleBucketAggregateBase", @@ -45729,9 +45724,9 @@ }, "properties": [], "specLocation": { - "endLine": 462, + "endLine": 470, "path": "_types/aggregations/Aggregate.ts", - "startLine": 461 + "startLine": 469 }, "variantName": "missing" }, @@ -46056,9 +46051,9 @@ } ], "specLocation": { - "endLine": 313, + "endLine": 315, "path": "_types/aggregations/Aggregate.ts", - "startLine": 311 + "startLine": 313 } }, { @@ -46109,9 +46104,9 @@ } ], "specLocation": { - "endLine": 322, + "endLine": 324, "path": "_types/aggregations/Aggregate.ts", - "startLine": 315 + "startLine": 317 } }, { @@ -46162,9 +46157,9 @@ }, "properties": [], "specLocation": { - "endLine": 447, + "endLine": 449, "path": "_types/aggregations/Aggregate.ts", - "startLine": 445 + "startLine": 447 }, "variantName": "multi_terms" }, @@ -46275,9 +46270,9 @@ } ], "specLocation": { - "endLine": 453, + "endLine": 455, "path": "_types/aggregations/Aggregate.ts", - "startLine": 449 + "startLine": 451 } }, { @@ -46317,6 +46312,9 @@ } }, { + "attachedBehaviors": [ + "AdditionalProperties" + ], "inherits": { "type": { "name": "SingleBucketAggregateBase", @@ -46330,9 +46328,9 @@ }, "properties": [], "specLocation": { - "endLine": 465, + "endLine": 473, "path": "_types/aggregations/Aggregate.ts", - "startLine": 464 + "startLine": 472 }, "variantName": "nested" }, @@ -46431,6 +46429,29 @@ "startLine": 274 } }, + { + "attachedBehaviors": [ + "AdditionalProperties" + ], + "inherits": { + "type": { + "name": "SingleBucketAggregateBase", + "namespace": "_types.aggregations" + } + }, + "kind": "interface", + "name": { + "name": "ParentAggregate", + "namespace": "_types.aggregations" + }, + "properties": [], + "specLocation": { + "endLine": 730, + "path": "_types/aggregations/Aggregate.ts", + "startLine": 729 + }, + "variantName": "parent" + }, { "inherits": { "type": { @@ -46565,9 +46586,9 @@ "namespace": "_types.aggregations" }, "specLocation": { - "endLine": 137, + "endLine": 139, "path": "_types/aggregations/Aggregate.ts", - "startLine": 136 + "startLine": 138 }, "type": { "items": [ @@ -46618,9 +46639,9 @@ } ], "specLocation": { - "endLine": 134, + "endLine": 136, "path": "_types/aggregations/Aggregate.ts", - "startLine": 132 + "startLine": 134 } }, { @@ -46704,9 +46725,9 @@ }, "properties": [], "specLocation": { - "endLine": 165, + "endLine": 167, "path": "_types/aggregations/Aggregate.ts", - "startLine": 164 + "startLine": 166 }, "variantName": "percentiles_bucket" }, @@ -46809,9 +46830,9 @@ }, "properties": [], "specLocation": { - "endLine": 500, + "endLine": 511, "path": "_types/aggregations/Aggregate.ts", - "startLine": 499 + "startLine": 510 }, "variantName": "range" }, @@ -46966,9 +46987,9 @@ } ], "specLocation": { - "endLine": 507, + "endLine": 518, "path": "_types/aggregations/Aggregate.ts", - "startLine": 502 + "startLine": 513 } }, { @@ -47105,9 +47126,9 @@ } ], "specLocation": { - "endLine": 684, + "endLine": 695, "path": "_types/aggregations/Aggregate.ts", - "startLine": 680 + "startLine": 691 }, "variantName": "rate" }, @@ -47213,6 +47234,9 @@ } }, { + "attachedBehaviors": [ + "AdditionalProperties" + ], "inherits": { "type": { "name": "SingleBucketAggregateBase", @@ -47226,9 +47250,9 @@ }, "properties": [], "specLocation": { - "endLine": 468, + "endLine": 476, "path": "_types/aggregations/Aggregate.ts", - "startLine": 467 + "startLine": 475 }, "variantName": "reverse_nested" }, @@ -47264,6 +47288,9 @@ } }, { + "attachedBehaviors": [ + "AdditionalProperties" + ], "inherits": { "type": { "name": "SingleBucketAggregateBase", @@ -47277,9 +47304,9 @@ }, "properties": [], "specLocation": { - "endLine": 477, + "endLine": 485, "path": "_types/aggregations/Aggregate.ts", - "startLine": 476 + "startLine": 484 }, "variantName": "sampler" }, @@ -47384,9 +47411,9 @@ } ], "specLocation": { - "endLine": 589, + "endLine": 600, "path": "_types/aggregations/Aggregate.ts", - "startLine": 586 + "startLine": 597 }, "variantName": "scripted_metric" }, @@ -47526,9 +47553,9 @@ }, "properties": [], "specLocation": { - "endLine": 546, + "endLine": 557, "path": "_types/aggregations/Aggregate.ts", - "startLine": 544 + "startLine": 555 }, "variantName": "siglterms" }, @@ -47572,9 +47599,9 @@ } ], "specLocation": { - "endLine": 556, + "endLine": 567, "path": "_types/aggregations/Aggregate.ts", - "startLine": 553 + "startLine": 564 } }, { @@ -47600,9 +47627,9 @@ }, "properties": [], "specLocation": { - "endLine": 560, + "endLine": 571, "path": "_types/aggregations/Aggregate.ts", - "startLine": 558 + "startLine": 569 }, "variantName": "sigsterms" }, @@ -47635,9 +47662,9 @@ } ], "specLocation": { - "endLine": 564, + "endLine": 575, "path": "_types/aggregations/Aggregate.ts", - "startLine": 562 + "startLine": 573 } }, { @@ -47869,9 +47896,9 @@ } ], "specLocation": { - "endLine": 551, + "endLine": 562, "path": "_types/aggregations/Aggregate.ts", - "startLine": 548 + "startLine": 559 } }, { @@ -48138,13 +48165,41 @@ }, "properties": [], "specLocation": { - "endLine": 211, + "endLine": 213, "path": "_types/aggregations/Aggregate.ts", - "startLine": 210 + "startLine": 212 }, "variantName": "simple_value" }, { + "attachedBehaviors": [ + "AdditionalProperties" + ], + "behaviors": [ + { + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "AggregateName", + "namespace": "_types" + } + }, + { + "kind": "instance_of", + "type": { + "name": "Aggregate", + "namespace": "_types.aggregations" + } + } + ], + "type": { + "name": "AdditionalProperties", + "namespace": "_spec_utils" + } + } + ], + "description": "Base type for single-bucket aggregation results that can hold sub-aggregations results.", "inherits": { "type": { "name": "AggregateBase", @@ -48170,9 +48225,9 @@ } ], "specLocation": { - "endLine": 459, + "endLine": 467, "path": "_types/aggregations/Aggregate.ts", - "startLine": 457 + "startLine": 459 } }, { @@ -48225,9 +48280,9 @@ } ], "specLocation": { - "endLine": 178, + "endLine": 180, "path": "_types/aggregations/Aggregate.ts", - "startLine": 169 + "startLine": 171 } }, { @@ -48377,9 +48432,9 @@ } ], "specLocation": { - "endLine": 253, + "endLine": 255, "path": "_types/aggregations/Aggregate.ts", - "startLine": 246 + "startLine": 248 } }, { @@ -48457,9 +48512,9 @@ } ], "specLocation": { - "endLine": 262, + "endLine": 264, "path": "_types/aggregations/Aggregate.ts", - "startLine": 255 + "startLine": 257 } }, { @@ -48613,9 +48668,9 @@ } ], "specLocation": { - "endLine": 241, + "endLine": 243, "path": "_types/aggregations/Aggregate.ts", - "startLine": 226 + "startLine": 228 }, "variantName": "stats" }, @@ -48652,9 +48707,9 @@ }, "properties": [], "specLocation": { - "endLine": 244, + "endLine": 246, "path": "_types/aggregations/Aggregate.ts", - "startLine": 243 + "startLine": 245 }, "variantName": "stats_bucket" }, @@ -48701,9 +48756,9 @@ }, "properties": [], "specLocation": { - "endLine": 431, + "endLine": 433, "path": "_types/aggregations/Aggregate.ts", - "startLine": 427 + "startLine": 429 }, "variantName": "srareterms" }, @@ -48736,9 +48791,9 @@ } ], "specLocation": { - "endLine": 435, + "endLine": 437, "path": "_types/aggregations/Aggregate.ts", - "startLine": 433 + "startLine": 435 } }, { @@ -48915,9 +48970,9 @@ } ], "specLocation": { - "endLine": 641, + "endLine": 652, "path": "_types/aggregations/Aggregate.ts", - "startLine": 630 + "startLine": 641 }, "variantName": "string_stats" }, @@ -48976,9 +49031,9 @@ }, "properties": [], "specLocation": { - "endLine": 373, + "endLine": 375, "path": "_types/aggregations/Aggregate.ts", - "startLine": 368 + "startLine": 370 }, "variantName": "sterms" }, @@ -49011,9 +49066,9 @@ } ], "specLocation": { - "endLine": 381, + "endLine": 383, "path": "_types/aggregations/Aggregate.ts", - "startLine": 379 + "startLine": 381 } }, { @@ -49031,9 +49086,9 @@ }, "properties": [], "specLocation": { - "endLine": 193, + "endLine": 195, "path": "_types/aggregations/Aggregate.ts", - "startLine": 189 + "startLine": 191 }, "variantName": "sum" }, @@ -49114,9 +49169,9 @@ }, "properties": [], "specLocation": { - "endLine": 162, + "endLine": 164, "path": "_types/aggregations/Aggregate.ts", - "startLine": 161 + "startLine": 163 }, "variantName": "tdigest_percentile_ranks" }, @@ -49134,9 +49189,9 @@ }, "properties": [], "specLocation": { - "endLine": 159, + "endLine": 161, "path": "_types/aggregations/Aggregate.ts", - "startLine": 158 + "startLine": 160 }, "variantName": "tdigest_percentiles" }, @@ -49189,9 +49244,9 @@ } ], "specLocation": { - "endLine": 678, + "endLine": 689, "path": "_types/aggregations/Aggregate.ts", - "startLine": 674 + "startLine": 685 }, "variantName": "t_test" }, @@ -49323,9 +49378,9 @@ } ], "specLocation": { - "endLine": 366, + "endLine": 368, "path": "_types/aggregations/Aggregate.ts", - "startLine": 361 + "startLine": 363 } }, { @@ -49655,9 +49710,9 @@ } ], "specLocation": { - "endLine": 377, + "endLine": 379, "path": "_types/aggregations/Aggregate.ts", - "startLine": 375 + "startLine": 377 } }, { @@ -49858,9 +49913,9 @@ } ], "specLocation": { - "endLine": 594, + "endLine": 605, "path": "_types/aggregations/Aggregate.ts", - "startLine": 591 + "startLine": 602 }, "variantName": "top_hits" }, @@ -50096,9 +50151,9 @@ } ], "specLocation": { - "endLine": 672, + "endLine": 683, "path": "_types/aggregations/Aggregate.ts", - "startLine": 668 + "startLine": 679 } }, { @@ -50124,9 +50179,9 @@ }, "properties": [], "specLocation": { - "endLine": 662, + "endLine": 673, "path": "_types/aggregations/Aggregate.ts", - "startLine": 661 + "startLine": 672 }, "variantName": "top_metrics" }, @@ -50230,9 +50285,9 @@ } ], "specLocation": { - "endLine": 666, + "endLine": 677, "path": "_types/aggregations/Aggregate.ts", - "startLine": 664 + "startLine": 675 } }, { @@ -50284,12 +50339,35 @@ }, "properties": [], "specLocation": { - "endLine": 443, + "endLine": 445, "path": "_types/aggregations/Aggregate.ts", - "startLine": 437 + "startLine": 439 }, "variantName": "umrareterms" }, + { + "attachedBehaviors": [ + "AdditionalProperties" + ], + "inherits": { + "type": { + "name": "SingleBucketAggregateBase", + "namespace": "_types.aggregations" + } + }, + "kind": "interface", + "name": { + "name": "UnmappedSamplerAggregate", + "namespace": "_types.aggregations" + }, + "properties": [], + "specLocation": { + "endLine": 488, + "path": "_types/aggregations/Aggregate.ts", + "startLine": 487 + }, + "variantName": "unmapped_sampler" + }, { "description": "Result of the `significant_terms` aggregation on an unmapped field. `buckets` is always empty.", "inherits": { @@ -50314,9 +50392,9 @@ }, "properties": [], "specLocation": { - "endLine": 572, + "endLine": 583, "path": "_types/aggregations/Aggregate.ts", - "startLine": 566 + "startLine": 577 }, "variantName": "umsigterms" }, @@ -50344,9 +50422,9 @@ }, "properties": [], "specLocation": { - "endLine": 413, + "endLine": 415, "path": "_types/aggregations/Aggregate.ts", - "startLine": 407 + "startLine": 409 }, "variantName": "umterms" }, @@ -50365,9 +50443,9 @@ }, "properties": [], "specLocation": { - "endLine": 208, + "endLine": 210, "path": "_types/aggregations/Aggregate.ts", - "startLine": 204 + "startLine": 206 }, "variantName": "value_count" }, @@ -50457,9 +50535,9 @@ }, "properties": [], "specLocation": { - "endLine": 348, + "endLine": 350, "path": "_types/aggregations/Aggregate.ts", - "startLine": 346 + "startLine": 348 }, "variantName": "variable_width_histogram" }, @@ -50605,9 +50683,9 @@ } ], "specLocation": { - "endLine": 357, + "endLine": 359, "path": "_types/aggregations/Aggregate.ts", - "startLine": 350 + "startLine": 352 } }, { @@ -50736,9 +50814,9 @@ }, "properties": [], "specLocation": { - "endLine": 202, + "endLine": 204, "path": "_types/aggregations/Aggregate.ts", - "startLine": 198 + "startLine": 200 }, "variantName": "weighted_avg" }, diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 9ab0eccfac..9a16f4bdc5 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -2496,7 +2496,7 @@ export interface AggregationsAdjacencyMatrixBucketKeys extends AggregationsMulti export type AggregationsAdjacencyMatrixBucket = AggregationsAdjacencyMatrixBucketKeys & { [property: string]: AggregationsAggregate | long } -export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsChildrenAggregate | AggregationsGeoLineAggregate +export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsChildrenAggregate | AggregationsParentAggregate | AggregationsSamplerAggregate | AggregationsUnmappedSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate export interface AggregationsAggregateBase { meta?: Record @@ -2733,13 +2733,10 @@ export interface AggregationsChiSquareHeuristic { include_negatives: boolean } -export interface AggregationsChildrenAggregate extends AggregationsMultiBucketAggregateBase { +export interface AggregationsChildrenAggregateKeys extends AggregationsSingleBucketAggregateBase { } - -export interface AggregationsChildrenAggregateBucketKeys extends AggregationsMultiBucketBase { -} -export type AggregationsChildrenAggregateBucket = AggregationsChildrenAggregateBucketKeys - & { [property: string]: AggregationsAggregate | long } +export type AggregationsChildrenAggregate = AggregationsChildrenAggregateKeys + & { [property: string]: AggregationsAggregate | long | Record } export interface AggregationsChildrenAggregation extends AggregationsBucketAggregationBase { type?: RelationName @@ -2901,8 +2898,10 @@ export interface AggregationsExtendedStatsBucketAggregation extends Aggregations export type AggregationsFieldDateMath = DateMath | double -export interface AggregationsFilterAggregate extends AggregationsSingleBucketAggregateBase { +export interface AggregationsFilterAggregateKeys extends AggregationsSingleBucketAggregateBase { } +export type AggregationsFilterAggregate = AggregationsFilterAggregateKeys + & { [property: string]: AggregationsAggregate | long | Record } export interface AggregationsFiltersAggregate extends AggregationsMultiBucketAggregateBase { } @@ -3013,8 +3012,10 @@ export interface AggregationsGeoTileGridBucketKeys extends AggregationsMultiBuck export type AggregationsGeoTileGridBucket = AggregationsGeoTileGridBucketKeys & { [property: string]: AggregationsAggregate | GeoTile | long } -export interface AggregationsGlobalAggregate extends AggregationsSingleBucketAggregateBase { +export interface AggregationsGlobalAggregateKeys extends AggregationsSingleBucketAggregateBase { } +export type AggregationsGlobalAggregate = AggregationsGlobalAggregateKeys + & { [property: string]: AggregationsAggregate | long | Record } export interface AggregationsGlobalAggregation extends AggregationsBucketAggregationBase { } @@ -3232,8 +3233,10 @@ export type AggregationsMinimumInterval = 'second' | 'minute' | 'hour' | 'day' | export type AggregationsMissing = string | integer | double | boolean -export interface AggregationsMissingAggregate extends AggregationsSingleBucketAggregateBase { +export interface AggregationsMissingAggregateKeys extends AggregationsSingleBucketAggregateBase { } +export type AggregationsMissingAggregate = AggregationsMissingAggregateKeys + & { [property: string]: AggregationsAggregate | long | Record } export interface AggregationsMissingAggregation extends AggregationsBucketAggregationBase { field?: Field @@ -3294,8 +3297,10 @@ export interface AggregationsMutualInformationHeuristic { include_negatives?: boolean } -export interface AggregationsNestedAggregate extends AggregationsSingleBucketAggregateBase { +export interface AggregationsNestedAggregateKeys extends AggregationsSingleBucketAggregateBase { } +export type AggregationsNestedAggregate = AggregationsNestedAggregateKeys + & { [property: string]: AggregationsAggregate | long | Record } export interface AggregationsNestedAggregation extends AggregationsBucketAggregationBase { path?: Field @@ -3307,6 +3312,11 @@ export interface AggregationsNormalizeAggregation extends AggregationsPipelineAg export type AggregationsNormalizeMethod = 'rescale_0_1' | 'rescale_0_100' | 'percent_of_sum' | 'mean' | 'z-score' | 'softmax' +export interface AggregationsParentAggregateKeys extends AggregationsSingleBucketAggregateBase { +} +export type AggregationsParentAggregate = AggregationsParentAggregateKeys + & { [property: string]: AggregationsAggregate | long | Record } + export interface AggregationsParentAggregation extends AggregationsBucketAggregationBase { type?: RelationName } @@ -3395,15 +3405,19 @@ export interface AggregationsRegressionInferenceOptions { num_top_feature_importance_values?: integer } -export interface AggregationsReverseNestedAggregate extends AggregationsSingleBucketAggregateBase { +export interface AggregationsReverseNestedAggregateKeys extends AggregationsSingleBucketAggregateBase { } +export type AggregationsReverseNestedAggregate = AggregationsReverseNestedAggregateKeys + & { [property: string]: AggregationsAggregate | long | Record } export interface AggregationsReverseNestedAggregation extends AggregationsBucketAggregationBase { path?: Field } -export interface AggregationsSamplerAggregate extends AggregationsSingleBucketAggregateBase { +export interface AggregationsSamplerAggregateKeys extends AggregationsSingleBucketAggregateBase { } +export type AggregationsSamplerAggregate = AggregationsSamplerAggregateKeys + & { [property: string]: AggregationsAggregate | long | Record } export interface AggregationsSamplerAggregation extends AggregationsBucketAggregationBase { shard_size?: integer @@ -3708,6 +3722,11 @@ export interface AggregationsTopMetricsValue { export interface AggregationsUnmappedRareTermsAggregate extends AggregationsMultiBucketAggregateBase { } +export interface AggregationsUnmappedSamplerAggregateKeys extends AggregationsSingleBucketAggregateBase { +} +export type AggregationsUnmappedSamplerAggregate = AggregationsUnmappedSamplerAggregateKeys + & { [property: string]: AggregationsAggregate | long | Record } + export interface AggregationsUnmappedSignificantTermsAggregate extends AggregationsMultiBucketAggregateBase { } diff --git a/specification/_types/aggregations/Aggregate.ts b/specification/_types/aggregations/Aggregate.ts index a398d83a16..ceb6e039da 100644 --- a/specification/_types/aggregations/Aggregate.ts +++ b/specification/_types/aggregations/Aggregate.ts @@ -77,7 +77,10 @@ export type Aggregate = | ReverseNestedAggregate | GlobalAggregate | FilterAggregate + | ChildrenAggregate + | ParentAggregate | SamplerAggregate + | UnmappedSamplerAggregate // Geo grid | GeoHashGridAggregate | GeoTileGridAggregate @@ -105,7 +108,6 @@ export type Aggregate = | RateAggregate | CumulativeCardinalityAggregate | MatrixStatsAggregate - | ChildrenAggregate | GeoLineAggregate // Aggregations are defined in the ES code base in two ways: @@ -454,7 +456,13 @@ export class MultiTermsBucket extends MultiBucketBase { //----- Single bucket -export class SingleBucketAggregateBase extends AggregateBase { +/** + * Base type for single-bucket aggregation results that can hold sub-aggregations results. + */ +export class SingleBucketAggregateBase + extends AggregateBase + implements AdditionalProperties +{ doc_count: long } @@ -476,6 +484,9 @@ export class FilterAggregate extends SingleBucketAggregateBase {} /** @variant name=sampler */ export class SamplerAggregate extends SingleBucketAggregateBase {} +/** @variant name=unmapped_sampler */ +export class UnmappedSamplerAggregate extends SingleBucketAggregateBase {} + //----- Geo grid /** @variant name=geohash_grid */ @@ -713,14 +724,10 @@ export class MatrixStatsFields { //----- Parent join plugin /** @variant name=children */ -export class ChildrenAggregate extends MultiBucketAggregateBase {} - -export class ChildrenAggregateBucket extends MultiBucketBase {} +export class ChildrenAggregate extends SingleBucketAggregateBase {} /** @variant name=parent */ -export class ParentAggregate extends MultiBucketAggregateBase {} - -export class ParentAggregateBucket extends MultiBucketBase {} +export class ParentAggregate extends SingleBucketAggregateBase {} //----- Spatial plugin