@wix/stores 1.0.244 → 1.0.245
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/stores",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.245",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@wix/stores_inventory": "1.0.43",
|
|
27
27
|
"@wix/stores_inventory-items-v-3": "1.0.16",
|
|
28
28
|
"@wix/stores_products": "1.0.57",
|
|
29
|
-
"@wix/stores_products-v-3": "1.0.
|
|
29
|
+
"@wix/stores_products-v-3": "1.0.50",
|
|
30
30
|
"@wix/stores_ribbons-v-3": "1.0.12",
|
|
31
31
|
"@wix/stores_stores-locations-v-3": "1.0.13",
|
|
32
32
|
"@wix/stores_subscription-options": "1.0.37",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"fqdn": ""
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
"falconPackageHash": "
|
|
58
|
+
"falconPackageHash": "625feca2fbb7958e2db96b32f0c81222697d32cc498886651d9f153b"
|
|
59
59
|
}
|
|
@@ -14961,25 +14961,25 @@ declare enum CommonSortOrder {
|
|
|
14961
14961
|
DESC = "DESC"
|
|
14962
14962
|
}
|
|
14963
14963
|
interface CommonAggregation extends CommonAggregationKindOneOf {
|
|
14964
|
-
/** Value aggregation */
|
|
14964
|
+
/** Value aggregation. */
|
|
14965
14965
|
value?: AggregationValueAggregation;
|
|
14966
|
-
/** Range aggregation */
|
|
14966
|
+
/** Range aggregation. */
|
|
14967
14967
|
range?: AggregationRangeAggregation;
|
|
14968
|
-
/** Scalar aggregation */
|
|
14968
|
+
/** Scalar aggregation. */
|
|
14969
14969
|
scalar?: AggregationScalarAggregation;
|
|
14970
|
-
/** Date histogram aggregation */
|
|
14970
|
+
/** Date histogram aggregation. */
|
|
14971
14971
|
dateHistogram?: AggregationDateHistogramAggregation;
|
|
14972
|
-
/** Nested aggregation */
|
|
14972
|
+
/** Nested aggregation. */
|
|
14973
14973
|
nested?: AggregationNestedAggregation;
|
|
14974
|
-
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
14974
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results. */
|
|
14975
14975
|
name?: string | null;
|
|
14976
|
-
/** Type of aggregation, client must provide matching aggregation field below */
|
|
14976
|
+
/** Type of aggregation, client must provide matching aggregation field below. */
|
|
14977
14977
|
type?: CommonAggregationType;
|
|
14978
|
-
/** Field to aggregate by, use dot notation to specify json path */
|
|
14978
|
+
/** Field to aggregate by, use dot notation to specify json path. */
|
|
14979
14979
|
fieldPath?: string;
|
|
14980
14980
|
/**
|
|
14981
|
-
*
|
|
14982
|
-
* @deprecated
|
|
14981
|
+
* Deprecated. Use `nested` instead.
|
|
14982
|
+
* @deprecated Deprecated. Use `nested` instead.
|
|
14983
14983
|
* @replacedBy kind.nested
|
|
14984
14984
|
* @targetRemovalDate 2024-03-30
|
|
14985
14985
|
*/
|
|
@@ -14987,96 +14987,96 @@ interface CommonAggregation extends CommonAggregationKindOneOf {
|
|
|
14987
14987
|
}
|
|
14988
14988
|
/** @oneof */
|
|
14989
14989
|
interface CommonAggregationKindOneOf {
|
|
14990
|
-
/** Value aggregation */
|
|
14990
|
+
/** Value aggregation. */
|
|
14991
14991
|
value?: AggregationValueAggregation;
|
|
14992
|
-
/** Range aggregation */
|
|
14992
|
+
/** Range aggregation. */
|
|
14993
14993
|
range?: AggregationRangeAggregation;
|
|
14994
|
-
/** Scalar aggregation */
|
|
14994
|
+
/** Scalar aggregation. */
|
|
14995
14995
|
scalar?: AggregationScalarAggregation;
|
|
14996
|
-
/** Date histogram aggregation */
|
|
14996
|
+
/** Date histogram aggregation. */
|
|
14997
14997
|
dateHistogram?: AggregationDateHistogramAggregation;
|
|
14998
|
-
/** Nested aggregation */
|
|
14998
|
+
/** Nested aggregation. */
|
|
14999
14999
|
nested?: AggregationNestedAggregation;
|
|
15000
15000
|
}
|
|
15001
15001
|
interface RangeAggregationRangeBucket {
|
|
15002
|
-
/** Inclusive lower bound of the range. Required if to is not
|
|
15002
|
+
/** Inclusive lower bound of the range. Required if `to` is not provided. */
|
|
15003
15003
|
from?: number | null;
|
|
15004
|
-
/** Exclusive upper bound of the range. Required if from is not
|
|
15004
|
+
/** Exclusive upper bound of the range. Required if `from` is not provided. */
|
|
15005
15005
|
to?: number | null;
|
|
15006
15006
|
}
|
|
15007
15007
|
declare enum ValueAggregationSortType {
|
|
15008
|
-
/**
|
|
15008
|
+
/** Sort by number of matches. */
|
|
15009
15009
|
COUNT = "COUNT",
|
|
15010
|
-
/**
|
|
15010
|
+
/** Sort by value of the field alphabetically. */
|
|
15011
15011
|
VALUE = "VALUE"
|
|
15012
15012
|
}
|
|
15013
15013
|
declare enum ValueAggregationSortDirection {
|
|
15014
|
-
/**
|
|
15014
|
+
/** Sort in descending order. */
|
|
15015
15015
|
DESC = "DESC",
|
|
15016
|
-
/**
|
|
15016
|
+
/** Sort in ascending order. */
|
|
15017
15017
|
ASC = "ASC"
|
|
15018
15018
|
}
|
|
15019
15019
|
declare enum ValueAggregationMissingValues {
|
|
15020
|
-
/**
|
|
15020
|
+
/** Exclude missing values from the aggregation results. */
|
|
15021
15021
|
EXCLUDE = "EXCLUDE",
|
|
15022
|
-
/**
|
|
15022
|
+
/** Include missing values in the aggregation results. */
|
|
15023
15023
|
INCLUDE = "INCLUDE"
|
|
15024
15024
|
}
|
|
15025
15025
|
interface ValueAggregationIncludeMissingValuesOptions {
|
|
15026
|
-
/**
|
|
15026
|
+
/** Specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ... */
|
|
15027
15027
|
addToBucket?: string;
|
|
15028
15028
|
}
|
|
15029
15029
|
declare enum CommonScalarType {
|
|
15030
15030
|
UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
|
|
15031
|
-
/** Count of distinct values */
|
|
15031
|
+
/** Count of distinct values. */
|
|
15032
15032
|
COUNT_DISTINCT = "COUNT_DISTINCT",
|
|
15033
|
-
/** Minimum value */
|
|
15033
|
+
/** Minimum value. */
|
|
15034
15034
|
MIN = "MIN",
|
|
15035
|
-
/** Maximum value */
|
|
15035
|
+
/** Maximum value. */
|
|
15036
15036
|
MAX = "MAX",
|
|
15037
|
-
/** Sum of values */
|
|
15037
|
+
/** Sum of values. */
|
|
15038
15038
|
SUM = "SUM",
|
|
15039
|
-
/** Average of values */
|
|
15039
|
+
/** Average of values. */
|
|
15040
15040
|
AVG = "AVG"
|
|
15041
15041
|
}
|
|
15042
15042
|
interface AggregationValueAggregation extends AggregationValueAggregationOptionsOneOf {
|
|
15043
|
-
/** Options for including missing values */
|
|
15043
|
+
/** Options for including missing values. */
|
|
15044
15044
|
includeOptions?: ValueAggregationIncludeMissingValuesOptions;
|
|
15045
|
-
/**
|
|
15045
|
+
/** Whether to sort by number of matches or value of the field. */
|
|
15046
15046
|
sortType?: ValueAggregationSortType;
|
|
15047
|
-
/**
|
|
15047
|
+
/** Whether to sort in ascending or descending order. */
|
|
15048
15048
|
sortDirection?: ValueAggregationSortDirection;
|
|
15049
|
-
/** How many aggregations
|
|
15049
|
+
/** How many aggregations to return. Can be between 1 and 250. 10 is the default. */
|
|
15050
15050
|
limit?: number | null;
|
|
15051
|
-
/**
|
|
15051
|
+
/** Whether to include or exclude missing values from the aggregation results. Default: `EXCLUDE`. */
|
|
15052
15052
|
missingValues?: ValueAggregationMissingValues;
|
|
15053
15053
|
}
|
|
15054
15054
|
/** @oneof */
|
|
15055
15055
|
interface AggregationValueAggregationOptionsOneOf {
|
|
15056
|
-
/** Options for including missing values */
|
|
15056
|
+
/** Options for including missing values. */
|
|
15057
15057
|
includeOptions?: ValueAggregationIncludeMissingValuesOptions;
|
|
15058
15058
|
}
|
|
15059
15059
|
declare enum NestedAggregationNestedAggregationType {
|
|
15060
15060
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
15061
|
-
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
15061
|
+
/** An aggregation where result buckets are dynamically built - one per unique value. */
|
|
15062
15062
|
VALUE = "VALUE",
|
|
15063
|
-
/** An aggregation, where user can define set of ranges - each representing a bucket */
|
|
15063
|
+
/** An aggregation, where user can define set of ranges - each representing a bucket. */
|
|
15064
15064
|
RANGE = "RANGE",
|
|
15065
|
-
/** A single-value metric aggregation
|
|
15065
|
+
/** A single-value metric aggregation. For example, min, max, sum, avg. */
|
|
15066
15066
|
SCALAR = "SCALAR",
|
|
15067
|
-
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
15067
|
+
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.). */
|
|
15068
15068
|
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
15069
15069
|
}
|
|
15070
15070
|
interface AggregationRangeAggregation {
|
|
15071
|
-
/** List of range buckets, where during aggregation each entity will be placed in the first bucket
|
|
15071
|
+
/** List of range buckets, where during aggregation each entity will be placed in the first bucket its value falls into, based on the provided range bounds. */
|
|
15072
15072
|
buckets?: RangeAggregationRangeBucket[];
|
|
15073
15073
|
}
|
|
15074
15074
|
interface AggregationScalarAggregation {
|
|
15075
|
-
/** Define the operator for the scalar aggregation */
|
|
15075
|
+
/** Define the operator for the scalar aggregation. */
|
|
15076
15076
|
type?: CommonScalarType;
|
|
15077
15077
|
}
|
|
15078
15078
|
interface AggregationDateHistogramAggregation {
|
|
15079
|
-
/** Interval for date histogram aggregation */
|
|
15079
|
+
/** Interval for date histogram aggregation. */
|
|
15080
15080
|
interval?: DateHistogramAggregationInterval;
|
|
15081
15081
|
}
|
|
15082
15082
|
declare enum DateHistogramAggregationInterval {
|
|
@@ -15097,77 +15097,77 @@ declare enum DateHistogramAggregationInterval {
|
|
|
15097
15097
|
SECOND = "SECOND"
|
|
15098
15098
|
}
|
|
15099
15099
|
interface NestedAggregationNestedAggregationItem extends NestedAggregationNestedAggregationItemKindOneOf {
|
|
15100
|
-
/** Value aggregation */
|
|
15100
|
+
/** Value aggregation. */
|
|
15101
15101
|
value?: AggregationValueAggregation;
|
|
15102
|
-
/** Range aggregation */
|
|
15102
|
+
/** Range aggregation. */
|
|
15103
15103
|
range?: AggregationRangeAggregation;
|
|
15104
|
-
/** Scalar aggregation */
|
|
15104
|
+
/** Scalar aggregation. */
|
|
15105
15105
|
scalar?: AggregationScalarAggregation;
|
|
15106
|
-
/** Date histogram aggregation */
|
|
15106
|
+
/** Date histogram aggregation. */
|
|
15107
15107
|
dateHistogram?: AggregationDateHistogramAggregation;
|
|
15108
|
-
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
15108
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results. */
|
|
15109
15109
|
name?: string | null;
|
|
15110
|
-
/** Type of aggregation, client must provide matching aggregation field below */
|
|
15110
|
+
/** Type of aggregation, client must provide matching aggregation field below. */
|
|
15111
15111
|
type?: NestedAggregationNestedAggregationType;
|
|
15112
|
-
/** Field to aggregate by, use
|
|
15112
|
+
/** Field to aggregate by, use dot notation to specify json path. */
|
|
15113
15113
|
fieldPath?: string;
|
|
15114
15114
|
}
|
|
15115
15115
|
/** @oneof */
|
|
15116
15116
|
interface NestedAggregationNestedAggregationItemKindOneOf {
|
|
15117
|
-
/** Value aggregation */
|
|
15117
|
+
/** Value aggregation. */
|
|
15118
15118
|
value?: AggregationValueAggregation;
|
|
15119
|
-
/** Range aggregation */
|
|
15119
|
+
/** Range aggregation. */
|
|
15120
15120
|
range?: AggregationRangeAggregation;
|
|
15121
|
-
/** Scalar aggregation */
|
|
15121
|
+
/** Scalar aggregation. */
|
|
15122
15122
|
scalar?: AggregationScalarAggregation;
|
|
15123
|
-
/** Date histogram aggregation */
|
|
15123
|
+
/** Date histogram aggregation. */
|
|
15124
15124
|
dateHistogram?: AggregationDateHistogramAggregation;
|
|
15125
15125
|
}
|
|
15126
15126
|
declare enum CommonAggregationType {
|
|
15127
15127
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
15128
|
-
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
15128
|
+
/** An aggregation where result buckets are dynamically built - one per unique value. */
|
|
15129
15129
|
VALUE = "VALUE",
|
|
15130
|
-
/** An aggregation, where user can define set of ranges - each representing a bucket */
|
|
15130
|
+
/** An aggregation, where user can define set of ranges - each representing a bucket. */
|
|
15131
15131
|
RANGE = "RANGE",
|
|
15132
|
-
/** A single-value metric aggregation
|
|
15132
|
+
/** A single-value metric aggregation. For example, min, max, sum, avg. */
|
|
15133
15133
|
SCALAR = "SCALAR",
|
|
15134
15134
|
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
15135
15135
|
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
15136
|
-
/** Multi-level aggregation, where each next aggregation is nested within previous one */
|
|
15136
|
+
/** Multi-level aggregation, where each next aggregation is nested within previous one. */
|
|
15137
15137
|
NESTED = "NESTED"
|
|
15138
15138
|
}
|
|
15139
|
-
/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
|
|
15139
|
+
/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one. */
|
|
15140
15140
|
interface AggregationNestedAggregation {
|
|
15141
|
-
/** Flattened list of aggregations, where each next aggregation is nested within previous one */
|
|
15141
|
+
/** Flattened list of aggregations, where each next aggregation is nested within previous one. */
|
|
15142
15142
|
nestedAggregations?: NestedAggregationNestedAggregationItem[];
|
|
15143
15143
|
}
|
|
15144
15144
|
interface GroupByAggregation extends GroupByAggregationKindOneOf {
|
|
15145
|
-
/** Value aggregation configuration */
|
|
15145
|
+
/** Value aggregation configuration. */
|
|
15146
15146
|
value?: AggregationValueAggregation;
|
|
15147
|
-
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
15147
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results. */
|
|
15148
15148
|
name?: string | null;
|
|
15149
|
-
/** Field to aggregate by */
|
|
15149
|
+
/** Field to aggregate by. */
|
|
15150
15150
|
fieldPath?: string;
|
|
15151
15151
|
}
|
|
15152
15152
|
/** @oneof */
|
|
15153
15153
|
interface GroupByAggregationKindOneOf {
|
|
15154
|
-
/** Value aggregation configuration */
|
|
15154
|
+
/** Value aggregation configuration. */
|
|
15155
15155
|
value?: AggregationValueAggregation;
|
|
15156
15156
|
}
|
|
15157
15157
|
interface CommonSearchDetails {
|
|
15158
|
-
/** Defines how separate search terms in `expression` are combined */
|
|
15158
|
+
/** Defines how separate search terms in `expression` are combined. */
|
|
15159
15159
|
mode?: SearchDetailsMode;
|
|
15160
|
-
/** Search term or expression */
|
|
15160
|
+
/** Search term or expression. */
|
|
15161
15161
|
expression?: string | null;
|
|
15162
|
-
/** Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path */
|
|
15162
|
+
/** Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path. */
|
|
15163
15163
|
fields?: string[];
|
|
15164
|
-
/**
|
|
15164
|
+
/** Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm). */
|
|
15165
15165
|
fuzzy?: boolean;
|
|
15166
15166
|
}
|
|
15167
15167
|
declare enum SearchDetailsMode {
|
|
15168
|
-
/** Any of the search terms must be present */
|
|
15168
|
+
/** Any of the search terms must be present. */
|
|
15169
15169
|
OR = "OR",
|
|
15170
|
-
/** All search terms must be present */
|
|
15170
|
+
/** All search terms must be present. */
|
|
15171
15171
|
AND = "AND"
|
|
15172
15172
|
}
|
|
15173
15173
|
interface PlatformPaging {
|
|
@@ -14961,25 +14961,25 @@ declare enum CommonSortOrder {
|
|
|
14961
14961
|
DESC = "DESC"
|
|
14962
14962
|
}
|
|
14963
14963
|
interface CommonAggregation extends CommonAggregationKindOneOf {
|
|
14964
|
-
/** Value aggregation */
|
|
14964
|
+
/** Value aggregation. */
|
|
14965
14965
|
value?: AggregationValueAggregation;
|
|
14966
|
-
/** Range aggregation */
|
|
14966
|
+
/** Range aggregation. */
|
|
14967
14967
|
range?: AggregationRangeAggregation;
|
|
14968
|
-
/** Scalar aggregation */
|
|
14968
|
+
/** Scalar aggregation. */
|
|
14969
14969
|
scalar?: AggregationScalarAggregation;
|
|
14970
|
-
/** Date histogram aggregation */
|
|
14970
|
+
/** Date histogram aggregation. */
|
|
14971
14971
|
dateHistogram?: AggregationDateHistogramAggregation;
|
|
14972
|
-
/** Nested aggregation */
|
|
14972
|
+
/** Nested aggregation. */
|
|
14973
14973
|
nested?: AggregationNestedAggregation;
|
|
14974
|
-
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
14974
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results. */
|
|
14975
14975
|
name?: string | null;
|
|
14976
|
-
/** Type of aggregation, client must provide matching aggregation field below */
|
|
14976
|
+
/** Type of aggregation, client must provide matching aggregation field below. */
|
|
14977
14977
|
type?: CommonAggregationType;
|
|
14978
|
-
/** Field to aggregate by, use dot notation to specify json path */
|
|
14978
|
+
/** Field to aggregate by, use dot notation to specify json path. */
|
|
14979
14979
|
fieldPath?: string;
|
|
14980
14980
|
/**
|
|
14981
|
-
*
|
|
14982
|
-
* @deprecated
|
|
14981
|
+
* Deprecated. Use `nested` instead.
|
|
14982
|
+
* @deprecated Deprecated. Use `nested` instead.
|
|
14983
14983
|
* @replacedBy kind.nested
|
|
14984
14984
|
* @targetRemovalDate 2024-03-30
|
|
14985
14985
|
*/
|
|
@@ -14987,96 +14987,96 @@ interface CommonAggregation extends CommonAggregationKindOneOf {
|
|
|
14987
14987
|
}
|
|
14988
14988
|
/** @oneof */
|
|
14989
14989
|
interface CommonAggregationKindOneOf {
|
|
14990
|
-
/** Value aggregation */
|
|
14990
|
+
/** Value aggregation. */
|
|
14991
14991
|
value?: AggregationValueAggregation;
|
|
14992
|
-
/** Range aggregation */
|
|
14992
|
+
/** Range aggregation. */
|
|
14993
14993
|
range?: AggregationRangeAggregation;
|
|
14994
|
-
/** Scalar aggregation */
|
|
14994
|
+
/** Scalar aggregation. */
|
|
14995
14995
|
scalar?: AggregationScalarAggregation;
|
|
14996
|
-
/** Date histogram aggregation */
|
|
14996
|
+
/** Date histogram aggregation. */
|
|
14997
14997
|
dateHistogram?: AggregationDateHistogramAggregation;
|
|
14998
|
-
/** Nested aggregation */
|
|
14998
|
+
/** Nested aggregation. */
|
|
14999
14999
|
nested?: AggregationNestedAggregation;
|
|
15000
15000
|
}
|
|
15001
15001
|
interface RangeAggregationRangeBucket {
|
|
15002
|
-
/** Inclusive lower bound of the range. Required if to is not
|
|
15002
|
+
/** Inclusive lower bound of the range. Required if `to` is not provided. */
|
|
15003
15003
|
from?: number | null;
|
|
15004
|
-
/** Exclusive upper bound of the range. Required if from is not
|
|
15004
|
+
/** Exclusive upper bound of the range. Required if `from` is not provided. */
|
|
15005
15005
|
to?: number | null;
|
|
15006
15006
|
}
|
|
15007
15007
|
declare enum ValueAggregationSortType {
|
|
15008
|
-
/**
|
|
15008
|
+
/** Sort by number of matches. */
|
|
15009
15009
|
COUNT = "COUNT",
|
|
15010
|
-
/**
|
|
15010
|
+
/** Sort by value of the field alphabetically. */
|
|
15011
15011
|
VALUE = "VALUE"
|
|
15012
15012
|
}
|
|
15013
15013
|
declare enum ValueAggregationSortDirection {
|
|
15014
|
-
/**
|
|
15014
|
+
/** Sort in descending order. */
|
|
15015
15015
|
DESC = "DESC",
|
|
15016
|
-
/**
|
|
15016
|
+
/** Sort in ascending order. */
|
|
15017
15017
|
ASC = "ASC"
|
|
15018
15018
|
}
|
|
15019
15019
|
declare enum ValueAggregationMissingValues {
|
|
15020
|
-
/**
|
|
15020
|
+
/** Exclude missing values from the aggregation results. */
|
|
15021
15021
|
EXCLUDE = "EXCLUDE",
|
|
15022
|
-
/**
|
|
15022
|
+
/** Include missing values in the aggregation results. */
|
|
15023
15023
|
INCLUDE = "INCLUDE"
|
|
15024
15024
|
}
|
|
15025
15025
|
interface ValueAggregationIncludeMissingValuesOptions {
|
|
15026
|
-
/**
|
|
15026
|
+
/** Specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ... */
|
|
15027
15027
|
addToBucket?: string;
|
|
15028
15028
|
}
|
|
15029
15029
|
declare enum CommonScalarType {
|
|
15030
15030
|
UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
|
|
15031
|
-
/** Count of distinct values */
|
|
15031
|
+
/** Count of distinct values. */
|
|
15032
15032
|
COUNT_DISTINCT = "COUNT_DISTINCT",
|
|
15033
|
-
/** Minimum value */
|
|
15033
|
+
/** Minimum value. */
|
|
15034
15034
|
MIN = "MIN",
|
|
15035
|
-
/** Maximum value */
|
|
15035
|
+
/** Maximum value. */
|
|
15036
15036
|
MAX = "MAX",
|
|
15037
|
-
/** Sum of values */
|
|
15037
|
+
/** Sum of values. */
|
|
15038
15038
|
SUM = "SUM",
|
|
15039
|
-
/** Average of values */
|
|
15039
|
+
/** Average of values. */
|
|
15040
15040
|
AVG = "AVG"
|
|
15041
15041
|
}
|
|
15042
15042
|
interface AggregationValueAggregation extends AggregationValueAggregationOptionsOneOf {
|
|
15043
|
-
/** Options for including missing values */
|
|
15043
|
+
/** Options for including missing values. */
|
|
15044
15044
|
includeOptions?: ValueAggregationIncludeMissingValuesOptions;
|
|
15045
|
-
/**
|
|
15045
|
+
/** Whether to sort by number of matches or value of the field. */
|
|
15046
15046
|
sortType?: ValueAggregationSortType;
|
|
15047
|
-
/**
|
|
15047
|
+
/** Whether to sort in ascending or descending order. */
|
|
15048
15048
|
sortDirection?: ValueAggregationSortDirection;
|
|
15049
|
-
/** How many aggregations
|
|
15049
|
+
/** How many aggregations to return. Can be between 1 and 250. 10 is the default. */
|
|
15050
15050
|
limit?: number | null;
|
|
15051
|
-
/**
|
|
15051
|
+
/** Whether to include or exclude missing values from the aggregation results. Default: `EXCLUDE`. */
|
|
15052
15052
|
missingValues?: ValueAggregationMissingValues;
|
|
15053
15053
|
}
|
|
15054
15054
|
/** @oneof */
|
|
15055
15055
|
interface AggregationValueAggregationOptionsOneOf {
|
|
15056
|
-
/** Options for including missing values */
|
|
15056
|
+
/** Options for including missing values. */
|
|
15057
15057
|
includeOptions?: ValueAggregationIncludeMissingValuesOptions;
|
|
15058
15058
|
}
|
|
15059
15059
|
declare enum NestedAggregationNestedAggregationType {
|
|
15060
15060
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
15061
|
-
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
15061
|
+
/** An aggregation where result buckets are dynamically built - one per unique value. */
|
|
15062
15062
|
VALUE = "VALUE",
|
|
15063
|
-
/** An aggregation, where user can define set of ranges - each representing a bucket */
|
|
15063
|
+
/** An aggregation, where user can define set of ranges - each representing a bucket. */
|
|
15064
15064
|
RANGE = "RANGE",
|
|
15065
|
-
/** A single-value metric aggregation
|
|
15065
|
+
/** A single-value metric aggregation. For example, min, max, sum, avg. */
|
|
15066
15066
|
SCALAR = "SCALAR",
|
|
15067
|
-
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
15067
|
+
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.). */
|
|
15068
15068
|
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
15069
15069
|
}
|
|
15070
15070
|
interface AggregationRangeAggregation {
|
|
15071
|
-
/** List of range buckets, where during aggregation each entity will be placed in the first bucket
|
|
15071
|
+
/** List of range buckets, where during aggregation each entity will be placed in the first bucket its value falls into, based on the provided range bounds. */
|
|
15072
15072
|
buckets?: RangeAggregationRangeBucket[];
|
|
15073
15073
|
}
|
|
15074
15074
|
interface AggregationScalarAggregation {
|
|
15075
|
-
/** Define the operator for the scalar aggregation */
|
|
15075
|
+
/** Define the operator for the scalar aggregation. */
|
|
15076
15076
|
type?: CommonScalarType;
|
|
15077
15077
|
}
|
|
15078
15078
|
interface AggregationDateHistogramAggregation {
|
|
15079
|
-
/** Interval for date histogram aggregation */
|
|
15079
|
+
/** Interval for date histogram aggregation. */
|
|
15080
15080
|
interval?: DateHistogramAggregationInterval;
|
|
15081
15081
|
}
|
|
15082
15082
|
declare enum DateHistogramAggregationInterval {
|
|
@@ -15097,77 +15097,77 @@ declare enum DateHistogramAggregationInterval {
|
|
|
15097
15097
|
SECOND = "SECOND"
|
|
15098
15098
|
}
|
|
15099
15099
|
interface NestedAggregationNestedAggregationItem extends NestedAggregationNestedAggregationItemKindOneOf {
|
|
15100
|
-
/** Value aggregation */
|
|
15100
|
+
/** Value aggregation. */
|
|
15101
15101
|
value?: AggregationValueAggregation;
|
|
15102
|
-
/** Range aggregation */
|
|
15102
|
+
/** Range aggregation. */
|
|
15103
15103
|
range?: AggregationRangeAggregation;
|
|
15104
|
-
/** Scalar aggregation */
|
|
15104
|
+
/** Scalar aggregation. */
|
|
15105
15105
|
scalar?: AggregationScalarAggregation;
|
|
15106
|
-
/** Date histogram aggregation */
|
|
15106
|
+
/** Date histogram aggregation. */
|
|
15107
15107
|
dateHistogram?: AggregationDateHistogramAggregation;
|
|
15108
|
-
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
15108
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results. */
|
|
15109
15109
|
name?: string | null;
|
|
15110
|
-
/** Type of aggregation, client must provide matching aggregation field below */
|
|
15110
|
+
/** Type of aggregation, client must provide matching aggregation field below. */
|
|
15111
15111
|
type?: NestedAggregationNestedAggregationType;
|
|
15112
|
-
/** Field to aggregate by, use
|
|
15112
|
+
/** Field to aggregate by, use dot notation to specify json path. */
|
|
15113
15113
|
fieldPath?: string;
|
|
15114
15114
|
}
|
|
15115
15115
|
/** @oneof */
|
|
15116
15116
|
interface NestedAggregationNestedAggregationItemKindOneOf {
|
|
15117
|
-
/** Value aggregation */
|
|
15117
|
+
/** Value aggregation. */
|
|
15118
15118
|
value?: AggregationValueAggregation;
|
|
15119
|
-
/** Range aggregation */
|
|
15119
|
+
/** Range aggregation. */
|
|
15120
15120
|
range?: AggregationRangeAggregation;
|
|
15121
|
-
/** Scalar aggregation */
|
|
15121
|
+
/** Scalar aggregation. */
|
|
15122
15122
|
scalar?: AggregationScalarAggregation;
|
|
15123
|
-
/** Date histogram aggregation */
|
|
15123
|
+
/** Date histogram aggregation. */
|
|
15124
15124
|
dateHistogram?: AggregationDateHistogramAggregation;
|
|
15125
15125
|
}
|
|
15126
15126
|
declare enum CommonAggregationType {
|
|
15127
15127
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
15128
|
-
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
15128
|
+
/** An aggregation where result buckets are dynamically built - one per unique value. */
|
|
15129
15129
|
VALUE = "VALUE",
|
|
15130
|
-
/** An aggregation, where user can define set of ranges - each representing a bucket */
|
|
15130
|
+
/** An aggregation, where user can define set of ranges - each representing a bucket. */
|
|
15131
15131
|
RANGE = "RANGE",
|
|
15132
|
-
/** A single-value metric aggregation
|
|
15132
|
+
/** A single-value metric aggregation. For example, min, max, sum, avg. */
|
|
15133
15133
|
SCALAR = "SCALAR",
|
|
15134
15134
|
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
15135
15135
|
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
15136
|
-
/** Multi-level aggregation, where each next aggregation is nested within previous one */
|
|
15136
|
+
/** Multi-level aggregation, where each next aggregation is nested within previous one. */
|
|
15137
15137
|
NESTED = "NESTED"
|
|
15138
15138
|
}
|
|
15139
|
-
/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
|
|
15139
|
+
/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one. */
|
|
15140
15140
|
interface AggregationNestedAggregation {
|
|
15141
|
-
/** Flattened list of aggregations, where each next aggregation is nested within previous one */
|
|
15141
|
+
/** Flattened list of aggregations, where each next aggregation is nested within previous one. */
|
|
15142
15142
|
nestedAggregations?: NestedAggregationNestedAggregationItem[];
|
|
15143
15143
|
}
|
|
15144
15144
|
interface GroupByAggregation extends GroupByAggregationKindOneOf {
|
|
15145
|
-
/** Value aggregation configuration */
|
|
15145
|
+
/** Value aggregation configuration. */
|
|
15146
15146
|
value?: AggregationValueAggregation;
|
|
15147
|
-
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
15147
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results. */
|
|
15148
15148
|
name?: string | null;
|
|
15149
|
-
/** Field to aggregate by */
|
|
15149
|
+
/** Field to aggregate by. */
|
|
15150
15150
|
fieldPath?: string;
|
|
15151
15151
|
}
|
|
15152
15152
|
/** @oneof */
|
|
15153
15153
|
interface GroupByAggregationKindOneOf {
|
|
15154
|
-
/** Value aggregation configuration */
|
|
15154
|
+
/** Value aggregation configuration. */
|
|
15155
15155
|
value?: AggregationValueAggregation;
|
|
15156
15156
|
}
|
|
15157
15157
|
interface CommonSearchDetails {
|
|
15158
|
-
/** Defines how separate search terms in `expression` are combined */
|
|
15158
|
+
/** Defines how separate search terms in `expression` are combined. */
|
|
15159
15159
|
mode?: SearchDetailsMode;
|
|
15160
|
-
/** Search term or expression */
|
|
15160
|
+
/** Search term or expression. */
|
|
15161
15161
|
expression?: string | null;
|
|
15162
|
-
/** Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path */
|
|
15162
|
+
/** Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path. */
|
|
15163
15163
|
fields?: string[];
|
|
15164
|
-
/**
|
|
15164
|
+
/** Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm). */
|
|
15165
15165
|
fuzzy?: boolean;
|
|
15166
15166
|
}
|
|
15167
15167
|
declare enum SearchDetailsMode {
|
|
15168
|
-
/** Any of the search terms must be present */
|
|
15168
|
+
/** Any of the search terms must be present. */
|
|
15169
15169
|
OR = "OR",
|
|
15170
|
-
/** All search terms must be present */
|
|
15170
|
+
/** All search terms must be present. */
|
|
15171
15171
|
AND = "AND"
|
|
15172
15172
|
}
|
|
15173
15173
|
interface PlatformPaging {
|