@wix/bex-utils 2.43.0 → 2.44.0
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/@wix/ambassador-os-tags-v1-tag/build/cjs/builders.impl.js +3 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/builders.impl.js.map +1 -1
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/http.impl.js +36 -0
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/http.impl.js.map +1 -1
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/client/proto-generated.d.ts +2047 -963
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/proto-generated.d.ts +1046 -508
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/proto-generated.js +19667 -10932
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/server/proto-generated.d.ts +2046 -963
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/types.impl.d.ts +20 -5
- package/@wix/ambassador-os-tags-v1-tag/build/cjs/types.impl.js.map +1 -1
- package/@wix/ambassador-os-tags-v1-tag/build/es/builders.impl.js +3 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/builders.impl.js.map +1 -1
- package/@wix/ambassador-os-tags-v1-tag/build/es/http.impl.js +36 -0
- package/@wix/ambassador-os-tags-v1-tag/build/es/http.impl.js.map +1 -1
- package/@wix/ambassador-os-tags-v1-tag/build/es/types.impl.d.ts +20 -5
- package/@wix/ambassador-os-tags-v1-tag/build/es/types.impl.js.map +1 -1
- package/@wix/ambassador-os-tags-v1-tag/package.json +3 -3
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/additional_data/ecom_catalog_data.proto +20 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/additional_data/inbox_data.proto +17 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/additional_data.proto +16 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/image.proto +11 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/items_selection_config.proto +266 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/items_selection_spi.proto +145 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/annotations.proto +69 -9
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/callback.proto +7 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/entity.proto +10 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/errors.proto +8 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/validations.proto +8 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/data/errors.proto +14 -1
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/media.proto +19 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/query.proto +118 -118
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/wixlink.proto +2 -0
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/tag.proto +4 -1
- package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/spi/definitions.proto +2 -1
- package/package.json +3 -3
|
@@ -108,27 +108,27 @@ message Search {
|
|
|
108
108
|
//
|
|
109
109
|
// Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
110
110
|
repeated Sorting sort = 2 [(.wix.api.maxSize) = 10];
|
|
111
|
-
// Projection on the result object - list of specific field names to return. If fieldsets are also specified, return the union of fieldsets and fields
|
|
111
|
+
// Projection on the result object - list of specific field names to return. If fieldsets are also specified, return the union of fieldsets and fields.
|
|
112
112
|
repeated string fields = 3 [(.wix.api.maxLength) = 200, (.wix.api.maxSize) = 20];
|
|
113
|
-
// Projection on the result object - list of named projections.
|
|
113
|
+
// Projection on the result object - list of named projections. For example, "basic" will return ID and name fields. Specifying multiple fieldsets will return the union of fields from all. Specifying fieldsets and fields will also return the union of fields.
|
|
114
114
|
repeated string fieldsets = 4 [(.wix.api.maxLength) = 100, (.wix.api.maxSize) = 20];
|
|
115
115
|
// Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.
|
|
116
116
|
repeated Aggregation aggregations = 5 [(.wix.api.maxSize) = 10];
|
|
117
|
-
// Free text to match in searchable fields
|
|
117
|
+
// Free text to match in searchable fields.
|
|
118
118
|
SearchDetails search = 6;
|
|
119
119
|
oneof paging_method {
|
|
120
|
-
// Pointer to page of results using offset. Can
|
|
120
|
+
// Pointer to page of results using offset. Can't be used together with 'cursor_paging'.
|
|
121
121
|
Paging paging = 7;
|
|
122
|
-
// Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can
|
|
122
|
+
// Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can't be used together with 'filter' or 'sort'.
|
|
123
123
|
CursorPaging cursor_paging = 8;
|
|
124
124
|
}
|
|
125
125
|
// UTC offset or IANA time zone. Valid values are
|
|
126
126
|
// ISO 8601 UTC offsets, such as +02:00 or -06:00,
|
|
127
|
-
// and IANA time zone IDs, such as Europe/Rome
|
|
127
|
+
// and IANA time zone IDs, such as Europe/Rome.
|
|
128
128
|
//
|
|
129
129
|
// Affects all filters and aggregations returned values.
|
|
130
130
|
// You may override this behavior in a specific filter by providing
|
|
131
|
-
// timestamps including time zone.
|
|
131
|
+
// timestamps including time zone. For example, `"2023-12-20T10:52:34.795Z"`.
|
|
132
132
|
google.protobuf.StringValue time_zone = 9 [(.wix.api.maxLength) = 50];
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -145,7 +145,7 @@ message CursorSearch {
|
|
|
145
145
|
reserved 3;
|
|
146
146
|
reserved 4;
|
|
147
147
|
reserved 7;
|
|
148
|
-
// Aggregations
|
|
148
|
+
// Aggregations are a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.
|
|
149
149
|
repeated Aggregation aggregations = 5 [(.wix.api.maxSize) = 10];
|
|
150
150
|
// Free text to match in searchable fields.
|
|
151
151
|
SearchDetails search = 6;
|
|
@@ -157,141 +157,141 @@ message CursorSearch {
|
|
|
157
157
|
}
|
|
158
158
|
// UTC offset or IANA time zone. Valid values are
|
|
159
159
|
// ISO 8601 UTC offsets, such as +02:00 or -06:00,
|
|
160
|
-
// and IANA time zone IDs, such as Europe/Rome
|
|
160
|
+
// and IANA time zone IDs, such as Europe/Rome.
|
|
161
161
|
//
|
|
162
162
|
// Affects all filters and aggregations returned values.
|
|
163
163
|
// You may override this behavior in a specific filter by providing
|
|
164
|
-
// timestamps including time zone.
|
|
164
|
+
// timestamps including time zone. For example, `"2023-12-20T10:52:34.795Z"`.
|
|
165
165
|
google.protobuf.StringValue time_zone = 9 [(.wix.api.maxLength) = 50];
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
message SearchRelated {
|
|
169
|
-
// A list of entity IDs to search related entities for
|
|
169
|
+
// A list of entity IDs to search related entities for.
|
|
170
170
|
repeated string related_to_ids = 1 [(.wix.api.minSize) = 1, (.wix.api.maxSize) = 10, (.wix.api.maxLength) = 50];
|
|
171
|
-
// Search details
|
|
171
|
+
// Search details.
|
|
172
172
|
SearchRelatedDetails search = 2;
|
|
173
173
|
// A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf)
|
|
174
174
|
google.protobuf.Struct filter = 3;
|
|
175
|
-
// Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
|
|
175
|
+
// Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}].
|
|
176
176
|
repeated Sorting sort = 4 [(.wix.api.maxSize) = 10];
|
|
177
|
-
// Number of related documents to return
|
|
177
|
+
// Number of related documents to return.
|
|
178
178
|
google.protobuf.Int32Value limit = 5 [(.wix.api.max) = 100];
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
message SearchRelatedDetails {
|
|
182
|
-
google.protobuf.StringValue expression = 2 [(.wix.api.maxLength) = 100]; // Search term or expression
|
|
183
|
-
// Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path
|
|
182
|
+
google.protobuf.StringValue expression = 2 [(.wix.api.maxLength) = 100]; // Search term or expression.
|
|
183
|
+
// Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path.
|
|
184
184
|
repeated string fields = 3 [(.wix.api.maxLength) = 200, (.wix.api.maxSize) = 20];
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
|
|
188
188
|
message SearchDetails {
|
|
189
189
|
enum Mode {
|
|
190
|
-
OR = 0; // Any of the search terms must be present
|
|
191
|
-
AND = 1; // All search terms must be present
|
|
190
|
+
OR = 0; // Any of the search terms must be present.
|
|
191
|
+
AND = 1; // All search terms must be present.
|
|
192
192
|
}
|
|
193
|
-
Mode mode = 1; // Defines how separate search terms in `expression` are combined
|
|
194
|
-
google.protobuf.StringValue expression = 2 [(.wix.api.maxLength) = 100]; // Search term or expression
|
|
195
|
-
// Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path
|
|
193
|
+
Mode mode = 1; // Defines how separate search terms in `expression` are combined.
|
|
194
|
+
google.protobuf.StringValue expression = 2 [(.wix.api.maxLength) = 100]; // Search term or expression.
|
|
195
|
+
// Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path.
|
|
196
196
|
repeated string fields = 3 [(.wix.api.maxLength) = 200, (.wix.api.maxSize) = 20];
|
|
197
|
-
bool fuzzy = 4; //
|
|
197
|
+
bool fuzzy = 4; // Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm).
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
enum AggregationType {
|
|
201
201
|
UNKNOWN_AGGREGATION_TYPE = 0 [(.wix.api.enum_maturity) = NOT_IMPLEMENTED];
|
|
202
|
-
VALUE = 1; // An aggregation where result buckets are dynamically built - one per unique value
|
|
203
|
-
RANGE = 2; // An aggregation, where user can define set of ranges - each representing a bucket
|
|
204
|
-
SCALAR = 3; // A single-value metric aggregation
|
|
202
|
+
VALUE = 1; // An aggregation where result buckets are dynamically built - one per unique value.
|
|
203
|
+
RANGE = 2; // An aggregation, where user can define set of ranges - each representing a bucket.
|
|
204
|
+
SCALAR = 3; // A single-value metric aggregation. For example, min, max, sum, avg.
|
|
205
205
|
DATE_HISTOGRAM = 4; // An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.)
|
|
206
|
-
NESTED = 5; // Multi-level aggregation, where each next aggregation is nested within previous one
|
|
206
|
+
NESTED = 5; // Multi-level aggregation, where each next aggregation is nested within previous one.
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
enum ScalarType {
|
|
210
210
|
UNKNOWN_SCALAR_TYPE = 0 [(.wix.api.enum_maturity) = NOT_IMPLEMENTED];
|
|
211
|
-
COUNT_DISTINCT = 1; // Count of distinct values
|
|
212
|
-
MIN = 2; // Minimum value
|
|
213
|
-
MAX = 3; // Maximum value
|
|
214
|
-
SUM = 4 [(.wix.api.enum_exposure) = PRIVATE]; // Sum of values
|
|
215
|
-
AVG = 5 [(.wix.api.enum_exposure) = PRIVATE]; // Average of values
|
|
211
|
+
COUNT_DISTINCT = 1; // Count of distinct values.
|
|
212
|
+
MIN = 2; // Minimum value.
|
|
213
|
+
MAX = 3; // Maximum value.
|
|
214
|
+
SUM = 4 [(.wix.api.enum_exposure) = PRIVATE]; // Sum of values.
|
|
215
|
+
AVG = 5 [(.wix.api.enum_exposure) = PRIVATE]; // Average of values.
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
message Aggregation {
|
|
219
219
|
message RangeAggregation {
|
|
220
220
|
message RangeBucket {
|
|
221
|
-
google.protobuf.DoubleValue from = 1; // Inclusive lower bound of the range. Required if to is not
|
|
222
|
-
google.protobuf.DoubleValue to = 2; // Exclusive upper bound of the range. Required if from is not
|
|
221
|
+
google.protobuf.DoubleValue from = 1; // Inclusive lower bound of the range. Required if `to` is not provided.
|
|
222
|
+
google.protobuf.DoubleValue to = 2; // Exclusive upper bound of the range. Required if `from` is not provided.
|
|
223
223
|
}
|
|
224
|
-
// List of range buckets, where during aggregation each entity will be placed in the first bucket
|
|
224
|
+
// 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.
|
|
225
225
|
repeated RangeBucket buckets = 1 [(.wix.api.maxSize) = 50];
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
message ValueAggregation {
|
|
229
229
|
enum SortType {
|
|
230
|
-
COUNT = 0; //
|
|
231
|
-
VALUE = 1; //
|
|
230
|
+
COUNT = 0; // Sort by number of matches.
|
|
231
|
+
VALUE = 1; // Sort by value of the field alphabetically.
|
|
232
232
|
}
|
|
233
233
|
enum SortDirection {
|
|
234
|
-
DESC = 0; //
|
|
235
|
-
ASC = 1; //
|
|
234
|
+
DESC = 0; // Sort in descending order.
|
|
235
|
+
ASC = 1; // Sort in ascending order.
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
enum MissingValues {
|
|
239
|
-
EXCLUDE = 0; //
|
|
240
|
-
INCLUDE = 1; //
|
|
239
|
+
EXCLUDE = 0; // Exclude missing values from the aggregation results.
|
|
240
|
+
INCLUDE = 1; // Include missing values in the aggregation results.
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
message IncludeMissingValuesOptions {
|
|
244
|
-
string add_to_bucket = 1 [(.wix.api.maxLength) = 20]; //
|
|
244
|
+
string add_to_bucket = 1 [(.wix.api.maxLength) = 20]; // Specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ...
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
SortType sort_type = 1; //
|
|
248
|
-
SortDirection sort_direction = 2; //
|
|
249
|
-
google.protobuf.Int32Value limit = 3; // How many aggregations
|
|
247
|
+
SortType sort_type = 1; // Whether to sort by number of matches or value of the field.
|
|
248
|
+
SortDirection sort_direction = 2; // Whether to sort in ascending or descending order.
|
|
249
|
+
google.protobuf.Int32Value limit = 3; // How many aggregations to return. Can be between 1 and 250. 10 is the default.
|
|
250
250
|
|
|
251
|
-
MissingValues missing_values = 4; //
|
|
251
|
+
MissingValues missing_values = 4; // Whether to include or exclude missing values from the aggregation results. Default: `EXCLUDE`.
|
|
252
252
|
oneof options {
|
|
253
253
|
option (.wix.api.aligned_with_enum).field = "missing_values";
|
|
254
|
-
IncludeMissingValuesOptions include_options = 5; // Options for including missing values
|
|
254
|
+
IncludeMissingValuesOptions include_options = 5; // Options for including missing values.
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
message ScalarAggregation {
|
|
259
|
-
ScalarType type = 1; // Define the operator for the scalar aggregation
|
|
259
|
+
ScalarType type = 1; // Define the operator for the scalar aggregation.
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
message GroupByAggregation {
|
|
263
|
-
google.protobuf.StringValue name = 1 [(.wix.api.maxLength) = 100]; // User-defined name of aggregation, should be unique, will appear in aggregation results
|
|
264
|
-
string field_path = 3 [(.wix.api.maxLength) = 200]; // Field to aggregate by
|
|
263
|
+
google.protobuf.StringValue name = 1 [(.wix.api.maxLength) = 100]; // User-defined name of aggregation, should be unique, will appear in aggregation results.
|
|
264
|
+
string field_path = 3 [(.wix.api.maxLength) = 200]; // Field to aggregate by.
|
|
265
265
|
oneof kind {
|
|
266
|
-
ValueAggregation value = 4; // Value aggregation configuration
|
|
266
|
+
ValueAggregation value = 4; // Value aggregation configuration.
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
// Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one
|
|
270
|
+
// Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one.
|
|
271
271
|
message NestedAggregation {
|
|
272
272
|
reserved 1;
|
|
273
273
|
|
|
274
274
|
enum NestedAggregationType {
|
|
275
275
|
UNKNOWN_AGGREGATION_TYPE = 0 [(.wix.api.enum_maturity) = NOT_IMPLEMENTED];
|
|
276
|
-
VALUE = 1; // An aggregation where result buckets are dynamically built - one per unique value
|
|
277
|
-
RANGE = 2; // An aggregation, where user can define set of ranges - each representing a bucket
|
|
278
|
-
SCALAR = 3; // A single-value metric aggregation
|
|
279
|
-
DATE_HISTOGRAM = 4; // An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.)
|
|
276
|
+
VALUE = 1; // An aggregation where result buckets are dynamically built - one per unique value.
|
|
277
|
+
RANGE = 2; // An aggregation, where user can define set of ranges - each representing a bucket.
|
|
278
|
+
SCALAR = 3; // A single-value metric aggregation. For example, min, max, sum, avg.
|
|
279
|
+
DATE_HISTOGRAM = 4; // An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.).
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
message NestedAggregationItem {
|
|
283
|
-
google.protobuf.StringValue name = 1 [(.wix.api.maxLength) = 100]; // User-defined name of aggregation, should be unique, will appear in aggregation results
|
|
284
|
-
NestedAggregationType type = 2; // Type of aggregation, client must provide matching aggregation field below
|
|
285
|
-
string field_path = 3 [(.wix.api.maxLength) = 200]; // Field to aggregate by, use
|
|
283
|
+
google.protobuf.StringValue name = 1 [(.wix.api.maxLength) = 100]; // User-defined name of aggregation, should be unique, will appear in aggregation results.
|
|
284
|
+
NestedAggregationType type = 2; // Type of aggregation, client must provide matching aggregation field below.
|
|
285
|
+
string field_path = 3 [(.wix.api.maxLength) = 200]; // Field to aggregate by, use dot notation to specify json path.
|
|
286
286
|
oneof kind {
|
|
287
|
-
ValueAggregation value = 4; // Value aggregation
|
|
288
|
-
RangeAggregation range = 5; // Range aggregation
|
|
289
|
-
ScalarAggregation scalar = 6; // Scalar aggregation
|
|
290
|
-
DateHistogramAggregation date_histogram = 9; // Date histogram aggregation
|
|
287
|
+
ValueAggregation value = 4; // Value aggregation.
|
|
288
|
+
RangeAggregation range = 5; // Range aggregation.
|
|
289
|
+
ScalarAggregation scalar = 6; // Scalar aggregation.
|
|
290
|
+
DateHistogramAggregation date_histogram = 9; // Date histogram aggregation.
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
// Flattened list of aggregations, where each next aggregation is nested within previous one
|
|
294
|
+
// Flattened list of aggregations, where each next aggregation is nested within previous one.
|
|
295
295
|
repeated NestedAggregationItem nested_aggregations = 2 [(.wix.api.minSize) = 2, (.wix.api.maxSize) = 3];
|
|
296
296
|
}
|
|
297
297
|
|
|
@@ -307,21 +307,21 @@ message Aggregation {
|
|
|
307
307
|
SECOND = 7; // Second interval
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
Interval interval = 1; // Interval for date histogram aggregation
|
|
310
|
+
Interval interval = 1; // Interval for date histogram aggregation.
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
google.protobuf.StringValue name = 1 [(.wix.api.maxLength) = 100]; // User-defined name of aggregation, should be unique, will appear in aggregation results
|
|
314
|
-
AggregationType type = 2; // Type of aggregation, client must provide matching aggregation field below
|
|
315
|
-
string field_path = 3 [(.wix.api.maxLength) = 200]; // Field to aggregate by, use dot notation to specify json path
|
|
313
|
+
google.protobuf.StringValue name = 1 [(.wix.api.maxLength) = 100]; // User-defined name of aggregation, should be unique, will appear in aggregation results.
|
|
314
|
+
AggregationType type = 2; // Type of aggregation, client must provide matching aggregation field below.
|
|
315
|
+
string field_path = 3 [(.wix.api.maxLength) = 200]; // Field to aggregate by, use dot notation to specify json path.
|
|
316
316
|
oneof kind {
|
|
317
|
-
ValueAggregation value = 4; // Value aggregation
|
|
318
|
-
RangeAggregation range = 5; // Range aggregation
|
|
319
|
-
ScalarAggregation scalar = 6; // Scalar aggregation
|
|
320
|
-
DateHistogramAggregation date_histogram = 9; // Date histogram aggregation
|
|
321
|
-
NestedAggregation nested = 8; // Nested aggregation
|
|
317
|
+
ValueAggregation value = 4; // Value aggregation.
|
|
318
|
+
RangeAggregation range = 5; // Range aggregation.
|
|
319
|
+
ScalarAggregation scalar = 6; // Scalar aggregation.
|
|
320
|
+
DateHistogramAggregation date_histogram = 9; // Date histogram aggregation.
|
|
321
|
+
NestedAggregation nested = 8; // Nested aggregation.
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
//
|
|
324
|
+
// Deprecated. Use `nested` instead.
|
|
325
325
|
GroupByAggregation group_by = 7 [deprecated = true, (.wix.api.field_deprecated) = {replaced_by: "kind.nested", target_removal_date: "2024-03-30"}];
|
|
326
326
|
}
|
|
327
327
|
|
|
@@ -329,101 +329,101 @@ message AggregationData {
|
|
|
329
329
|
message AggregationResults {
|
|
330
330
|
message ValueResults {
|
|
331
331
|
message ValueAggregationResult {
|
|
332
|
-
string value = 1 [(.wix.api.maxLength) = 100]; // Value of the field
|
|
333
|
-
int32 count = 2; // Count of entities with this value
|
|
332
|
+
string value = 1 [(.wix.api.maxLength) = 100]; // Value of the field.
|
|
333
|
+
int32 count = 2; // Count of entities with this value.
|
|
334
334
|
}
|
|
335
|
-
repeated ValueAggregationResult results = 1 [(.wix.api.maxSize) = 250]; // List of value aggregations
|
|
335
|
+
repeated ValueAggregationResult results = 1 [(.wix.api.maxSize) = 250]; // List of value aggregations.
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
message RangeResults {
|
|
339
339
|
message RangeAggregationResult {
|
|
340
|
-
google.protobuf.DoubleValue from = 1; // Inclusive lower bound of the range
|
|
341
|
-
google.protobuf.DoubleValue to = 2; // Exclusive upper bound of the range
|
|
342
|
-
int32 count = 3; // Count of entities in this range
|
|
340
|
+
google.protobuf.DoubleValue from = 1; // Inclusive lower bound of the range.
|
|
341
|
+
google.protobuf.DoubleValue to = 2; // Exclusive upper bound of the range.
|
|
342
|
+
int32 count = 3; // Count of entities in this range.
|
|
343
343
|
}
|
|
344
|
-
repeated RangeAggregationResult results = 1 [(.wix.api.maxSize) = 50]; // List of ranges returned in same order as requested
|
|
344
|
+
repeated RangeAggregationResult results = 1 [(.wix.api.maxSize) = 50]; // List of ranges returned in same order as requested.
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
message ScalarResult {
|
|
348
|
-
ScalarType type = 1; // Type of scalar aggregation
|
|
349
|
-
double value = 2; // Value of the scalar aggregation
|
|
348
|
+
ScalarType type = 1; // Type of scalar aggregation.
|
|
349
|
+
double value = 2; // Value of the scalar aggregation.
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
message GroupByValueResults {
|
|
353
353
|
message NestedValueAggregationResult {
|
|
354
|
-
string value = 1 [(.wix.api.maxLength) = 1000]; // Value of the field
|
|
355
|
-
NestedAggregationResults nested_results = 2; // Nested aggregations
|
|
354
|
+
string value = 1 [(.wix.api.maxLength) = 1000]; // Value of the field.
|
|
355
|
+
NestedAggregationResults nested_results = 2; // Nested aggregations.
|
|
356
356
|
|
|
357
357
|
}
|
|
358
|
-
repeated NestedValueAggregationResult results = 1 [(.wix.api.maxSize) = 1000]; // List of value aggregations
|
|
358
|
+
repeated NestedValueAggregationResult results = 1 [(.wix.api.maxSize) = 1000]; // List of value aggregations.
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
message NestedAggregationResults {
|
|
362
|
-
string name = 1 [(.wix.api.maxLength) = 100]; // User-defined name of aggregation, matches the one provided in request
|
|
363
|
-
AggregationType type = 2; // Type of aggregation that matches result
|
|
364
|
-
string field_path = 6 [(.wix.api.maxLength) = 200]; // Field to aggregate by, matches the one provided in request
|
|
362
|
+
string name = 1 [(.wix.api.maxLength) = 100]; // User-defined name of aggregation, matches the one provided in request.
|
|
363
|
+
AggregationType type = 2; // Type of aggregation that matches result.
|
|
364
|
+
string field_path = 6 [(.wix.api.maxLength) = 200]; // Field to aggregate by, matches the one provided in request.
|
|
365
365
|
oneof result {
|
|
366
|
-
ValueResults values = 3; // Value aggregation results
|
|
367
|
-
RangeResults ranges = 4; // Range aggregation results
|
|
368
|
-
ScalarResult scalar = 5; // Scalar aggregation results
|
|
366
|
+
ValueResults values = 3; // Value aggregation results.
|
|
367
|
+
RangeResults ranges = 4; // Range aggregation results.
|
|
368
|
+
ScalarResult scalar = 5; // Scalar aggregation results.
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
// Results of `NESTED` aggregation type in a flattened form
|
|
373
|
-
//
|
|
372
|
+
// Results of `NESTED` aggregation type in a flattened form.
|
|
373
|
+
// Aggregations in resulting array are keyed by requested aggregation `name`.
|
|
374
374
|
message NestedResults {
|
|
375
375
|
message ValueResult {
|
|
376
|
-
string value = 1 [(.wix.api.maxLength) = 1000]; // Value of the field
|
|
377
|
-
google.protobuf.Int32Value count = 2; // Count of entities with this value
|
|
376
|
+
string value = 1 [(.wix.api.maxLength) = 1000]; // Value of the field.
|
|
377
|
+
google.protobuf.Int32Value count = 2; // Count of entities with this value.
|
|
378
378
|
}
|
|
379
379
|
message RangeResult {
|
|
380
|
-
google.protobuf.DoubleValue from = 1; // Inclusive lower bound of the range
|
|
381
|
-
google.protobuf.DoubleValue to = 2; // Exclusive upper bound of the range
|
|
382
|
-
google.protobuf.Int32Value count = 3; // Count of entities in this range
|
|
380
|
+
google.protobuf.DoubleValue from = 1; // Inclusive lower bound of the range.
|
|
381
|
+
google.protobuf.DoubleValue to = 2; // Exclusive upper bound of the range.
|
|
382
|
+
google.protobuf.Int32Value count = 3; // Count of entities in this range.
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
message ScalarResult {
|
|
386
|
-
double value = 1; // Value of the scalar aggregation
|
|
386
|
+
double value = 1; // Value of the scalar aggregation.
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
message NestedResultValue {
|
|
390
390
|
oneof result {
|
|
391
|
-
ValueResult value = 1; // Value aggregation result
|
|
392
|
-
RangeResult range = 2; // Range aggregation result
|
|
393
|
-
ScalarResult scalar = 3; // Scalar aggregation result
|
|
394
|
-
ValueResult date_histogram = 4; // Date histogram aggregation result
|
|
391
|
+
ValueResult value = 1; // Value aggregation result.
|
|
392
|
+
RangeResult range = 2; // Range aggregation result.
|
|
393
|
+
ScalarResult scalar = 3; // Scalar aggregation result.
|
|
394
|
+
ValueResult date_histogram = 4; // Date histogram aggregation result.
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
message Results {
|
|
399
|
-
map<string, NestedResultValue> results = 1; // List of nested aggregations
|
|
399
|
+
map<string, NestedResultValue> results = 1; // List of nested aggregations.
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
-
repeated Results results = 1 [(.wix.api.maxSize) = 1000]; // List of nested aggregations
|
|
402
|
+
repeated Results results = 1 [(.wix.api.maxSize) = 1000]; // List of nested aggregations.
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
message DateHistogramResults {
|
|
406
406
|
message DateHistogramResult {
|
|
407
|
-
string value = 1 [(.wix.api.maxLength) = 100]; // Date in ISO 8601 format
|
|
408
|
-
int32 count = 2; // Count of documents in the bucket
|
|
407
|
+
string value = 1 [(.wix.api.maxLength) = 100]; // Date in ISO 8601 format.
|
|
408
|
+
int32 count = 2; // Count of documents in the bucket.
|
|
409
409
|
}
|
|
410
|
-
repeated DateHistogramResult results = 1 [(.wix.api.maxSize) = 200]; // List of date histogram aggregations
|
|
410
|
+
repeated DateHistogramResult results = 1 [(.wix.api.maxSize) = 200]; // List of date histogram aggregations.
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
-
string name = 1 [(.wix.api.maxLength) = 100]; // User-defined name of aggregation as derived from search request
|
|
414
|
-
AggregationType type = 2; // Type of aggregation that must match provided kind as derived from search request
|
|
415
|
-
string field_path = 6 [(.wix.api.maxLength) = 200]; // Field to aggregate by as derived from search request
|
|
413
|
+
string name = 1 [(.wix.api.maxLength) = 100]; // User-defined name of aggregation as derived from search request.
|
|
414
|
+
AggregationType type = 2; // Type of aggregation that must match provided kind as derived from search request.
|
|
415
|
+
string field_path = 6 [(.wix.api.maxLength) = 200]; // Field to aggregate by as derived from search request.
|
|
416
416
|
oneof result {
|
|
417
|
-
ValueResults values = 3; // Value aggregation results
|
|
418
|
-
RangeResults ranges = 4; // Range aggregation results
|
|
419
|
-
ScalarResult scalar = 5; // Scalar aggregation results
|
|
420
|
-
GroupByValueResults grouped_by_value = 7; // Group by value aggregation results
|
|
421
|
-
DateHistogramResults date_histogram = 8; // Date histogram aggregation results
|
|
422
|
-
NestedResults nested = 9; // Nested aggregation results
|
|
417
|
+
ValueResults values = 3; // Value aggregation results.
|
|
418
|
+
RangeResults ranges = 4; // Range aggregation results.
|
|
419
|
+
ScalarResult scalar = 5; // Scalar aggregation results.
|
|
420
|
+
GroupByValueResults grouped_by_value = 7; // Group by value aggregation results.
|
|
421
|
+
DateHistogramResults date_histogram = 8; // Date histogram aggregation results.
|
|
422
|
+
NestedResults nested = 9; // Nested aggregation results.
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
repeated AggregationResults results = 1 [(.wix.api.maxSize) = 10000]; // key = aggregation name (as derived from search request)
|
|
426
|
+
repeated AggregationResults results = 1 [(.wix.api.maxSize) = 10000]; // key = aggregation name (as derived from search request).
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
/*
|
|
@@ -64,6 +64,8 @@ message ExternalLink {
|
|
|
64
64
|
string url = 1 [(.wix.api.format) = WEB_URL];
|
|
65
65
|
//Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page.
|
|
66
66
|
google.protobuf.StringValue target = 2;
|
|
67
|
+
//rel of link
|
|
68
|
+
repeated LinkRel rel = 3 [(.wix.api.maxSize) = 20, (.wix.api.field_exposure) = PRIVATE];
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
message PageLink {
|
|
@@ -165,10 +165,11 @@ message Service {
|
|
|
165
165
|
message ServiceAppendix {
|
|
166
166
|
enum Type {
|
|
167
167
|
UNKNOWN_APPENDIX_TYPE = 0;
|
|
168
|
-
AUTO_VELO = 1; // auto velo configuration
|
|
168
|
+
AUTO_VELO = 1 [deprecated = true]; // auto velo configuration
|
|
169
169
|
DOCS_CONF = 2; // wix docs configuration: `documentation.yaml`
|
|
170
170
|
MULTILINGUAL = 3; // wix multilingual configuration
|
|
171
171
|
SEARCH = 4; // nile search configuration
|
|
172
|
+
AUTO_SDK = 5; // auto sdk configuration
|
|
172
173
|
}
|
|
173
174
|
required Type type = 1; // appendix type
|
|
174
175
|
required string path = 2; // absolute from module root
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/bex-utils",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.44.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Kobi",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@wix/ambassador-infra-asyncjobs-v1-async-job": "^1.0.87",
|
|
58
58
|
"@wix/ambassador-items-selection-spi-host-v1-provider": "^1.0.91",
|
|
59
59
|
"@wix/ambassador-media-site-media-v1-file-descriptor": "^1.0.127",
|
|
60
|
-
"@wix/ambassador-os-tags-v1-tag": "^1.0.
|
|
60
|
+
"@wix/ambassador-os-tags-v1-tag": "^1.0.22",
|
|
61
61
|
"@wix/bex-bundled-mini-essentials": "2.18.0",
|
|
62
62
|
"@wix/bi-logger-os-data": "^1.221.0",
|
|
63
63
|
"@wix/eslint-config-yoshi": "^6.74.0",
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"wallaby": {
|
|
153
153
|
"autoDetect": true
|
|
154
154
|
},
|
|
155
|
-
"falconPackageHash": "
|
|
155
|
+
"falconPackageHash": "6aede34865b96baa1e19d72777f4b550086bf049f479b643d39bdf67"
|
|
156
156
|
}
|