@wix/search 1.0.21 → 1.0.23
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/context/package.json +2 -1
- package/meta/package.json +2 -1
- package/package.json +12 -6
- package/type-bundles/context.bundle.d.ts +536 -0
- package/type-bundles/index.bundle.d.ts +1101 -0
- package/type-bundles/meta.bundle.d.ts +1025 -0
|
@@ -0,0 +1,1025 @@
|
|
|
1
|
+
interface SiteDocument$1 {
|
|
2
|
+
/** @readonly */
|
|
3
|
+
id?: string;
|
|
4
|
+
/** the document payload */
|
|
5
|
+
document?: Record<string, any> | null;
|
|
6
|
+
}
|
|
7
|
+
interface SearchRequest$3 {
|
|
8
|
+
/** Search query */
|
|
9
|
+
search: Search$1;
|
|
10
|
+
/** Document type of documents to search for. All document types are searched if not provided. */
|
|
11
|
+
documentType: DocumentType$1;
|
|
12
|
+
/** Language to search in. */
|
|
13
|
+
language?: string | null;
|
|
14
|
+
}
|
|
15
|
+
interface Search$1 extends SearchPagingMethodOneOf$1 {
|
|
16
|
+
/** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
|
|
17
|
+
paging?: Paging$1;
|
|
18
|
+
/** 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) */
|
|
19
|
+
filter?: Record<string, any> | null;
|
|
20
|
+
/** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
|
|
21
|
+
sort?: Sorting$1[];
|
|
22
|
+
/** 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. */
|
|
23
|
+
aggregations?: Aggregation$3[];
|
|
24
|
+
/** Free text to match in searchable fields */
|
|
25
|
+
search?: SearchDetails$1;
|
|
26
|
+
}
|
|
27
|
+
/** @oneof */
|
|
28
|
+
interface SearchPagingMethodOneOf$1 {
|
|
29
|
+
/** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
|
|
30
|
+
paging?: Paging$1;
|
|
31
|
+
}
|
|
32
|
+
interface Sorting$1 {
|
|
33
|
+
/** Name of the field to sort by. */
|
|
34
|
+
fieldName?: string;
|
|
35
|
+
/** Sort order. */
|
|
36
|
+
order?: SortOrder$1;
|
|
37
|
+
}
|
|
38
|
+
declare enum SortOrder$1 {
|
|
39
|
+
ASC = "ASC",
|
|
40
|
+
DESC = "DESC"
|
|
41
|
+
}
|
|
42
|
+
interface Aggregation$3 extends AggregationKindOneOf$1 {
|
|
43
|
+
/** Value aggregation */
|
|
44
|
+
value?: ValueAggregation$1;
|
|
45
|
+
/** Scalar aggregation */
|
|
46
|
+
scalar?: ScalarAggregation$1;
|
|
47
|
+
/** Nested aggregation */
|
|
48
|
+
nested?: NestedAggregation$1;
|
|
49
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
50
|
+
name?: string | null;
|
|
51
|
+
/** Type of aggregation, client must provide matching aggregation field below */
|
|
52
|
+
type?: AggregationType$1;
|
|
53
|
+
/** Field to aggregate by, use dot notation to specify json path */
|
|
54
|
+
fieldPath?: string;
|
|
55
|
+
}
|
|
56
|
+
/** @oneof */
|
|
57
|
+
interface AggregationKindOneOf$1 {
|
|
58
|
+
/** Value aggregation */
|
|
59
|
+
value?: ValueAggregation$1;
|
|
60
|
+
/** Scalar aggregation */
|
|
61
|
+
scalar?: ScalarAggregation$1;
|
|
62
|
+
/** Nested aggregation */
|
|
63
|
+
nested?: NestedAggregation$1;
|
|
64
|
+
}
|
|
65
|
+
declare enum ScalarType$1 {
|
|
66
|
+
UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
|
|
67
|
+
/** Minimum value */
|
|
68
|
+
MIN = "MIN",
|
|
69
|
+
/** Maximum value */
|
|
70
|
+
MAX = "MAX",
|
|
71
|
+
/** Sum of values */
|
|
72
|
+
SUM = "SUM"
|
|
73
|
+
}
|
|
74
|
+
declare enum NestedAggregationType$1 {
|
|
75
|
+
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
76
|
+
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
77
|
+
VALUE = "VALUE",
|
|
78
|
+
/** A single-value metric aggregation - e.g. min, max, sum, avg */
|
|
79
|
+
SCALAR = "SCALAR"
|
|
80
|
+
}
|
|
81
|
+
interface ValueAggregation$1 {
|
|
82
|
+
/** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */
|
|
83
|
+
limit?: number | null;
|
|
84
|
+
}
|
|
85
|
+
interface ScalarAggregation$1 {
|
|
86
|
+
/** Define the operator for the scalar aggregation */
|
|
87
|
+
type?: ScalarType$1;
|
|
88
|
+
}
|
|
89
|
+
interface NestedAggregationItem$1 extends NestedAggregationItemKindOneOf$1 {
|
|
90
|
+
/** Value aggregation */
|
|
91
|
+
value?: ValueAggregation$1;
|
|
92
|
+
/** Scalar aggregation */
|
|
93
|
+
scalar?: ScalarAggregation$1;
|
|
94
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
95
|
+
name?: string | null;
|
|
96
|
+
/** Type of aggregation, client must provide matching aggregation field below */
|
|
97
|
+
type?: NestedAggregationType$1;
|
|
98
|
+
/** Field to aggregate by, use dont notation to specify json path */
|
|
99
|
+
fieldPath?: string;
|
|
100
|
+
}
|
|
101
|
+
/** @oneof */
|
|
102
|
+
interface NestedAggregationItemKindOneOf$1 {
|
|
103
|
+
/** Value aggregation */
|
|
104
|
+
value?: ValueAggregation$1;
|
|
105
|
+
/** Scalar aggregation */
|
|
106
|
+
scalar?: ScalarAggregation$1;
|
|
107
|
+
}
|
|
108
|
+
declare enum AggregationType$1 {
|
|
109
|
+
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
110
|
+
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
111
|
+
VALUE = "VALUE",
|
|
112
|
+
/** A single-value metric aggregation - e.g. min, max, sum, avg */
|
|
113
|
+
SCALAR = "SCALAR",
|
|
114
|
+
/** Multi-level aggregation, where each next aggregation is nested within previous one */
|
|
115
|
+
NESTED = "NESTED"
|
|
116
|
+
}
|
|
117
|
+
/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
|
|
118
|
+
interface NestedAggregation$1 {
|
|
119
|
+
/** Flattened list of aggregations, where each next aggregation is nested within previous one */
|
|
120
|
+
nestedAggregations?: NestedAggregationItem$1[];
|
|
121
|
+
}
|
|
122
|
+
interface SearchDetails$1 {
|
|
123
|
+
/** Search term or expression */
|
|
124
|
+
expression?: string | null;
|
|
125
|
+
/** Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path */
|
|
126
|
+
fields?: string[];
|
|
127
|
+
/** Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
|
|
128
|
+
fuzzy?: boolean;
|
|
129
|
+
}
|
|
130
|
+
interface Paging$1 {
|
|
131
|
+
/** Number of items to load. */
|
|
132
|
+
limit?: number | null;
|
|
133
|
+
/** Number of items to skip in the current sort order. */
|
|
134
|
+
offset?: number | null;
|
|
135
|
+
}
|
|
136
|
+
declare enum DocumentType$1 {
|
|
137
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
138
|
+
BLOG_POSTS = "BLOG_POSTS",
|
|
139
|
+
BOOKING_SERVICES = "BOOKING_SERVICES",
|
|
140
|
+
EVENTS = "EVENTS",
|
|
141
|
+
FORUM_CONTENT = "FORUM_CONTENT",
|
|
142
|
+
ONLINE_PROGRAMS = "ONLINE_PROGRAMS",
|
|
143
|
+
PROGALLERY_ITEM = "PROGALLERY_ITEM",
|
|
144
|
+
STORES_PRODUCTS = "STORES_PRODUCTS"
|
|
145
|
+
}
|
|
146
|
+
interface SearchResponse$3 extends SearchResponsePagingOneOf$1 {
|
|
147
|
+
/** Paging metadata for the next page of results. */
|
|
148
|
+
pagingOffsetMetadata?: PagingMetadata$1;
|
|
149
|
+
/** Documents matching filter and query. */
|
|
150
|
+
siteDocuments?: SiteDocument$1[];
|
|
151
|
+
/** Response aggregation data */
|
|
152
|
+
aggregationData?: AggregationData$1;
|
|
153
|
+
}
|
|
154
|
+
/** @oneof */
|
|
155
|
+
interface SearchResponsePagingOneOf$1 {
|
|
156
|
+
/** Paging metadata for the next page of results. */
|
|
157
|
+
pagingOffsetMetadata?: PagingMetadata$1;
|
|
158
|
+
}
|
|
159
|
+
interface AggregationData$1 {
|
|
160
|
+
/** key = aggregation name (as derived from search request) */
|
|
161
|
+
results?: AggregationResults$1[];
|
|
162
|
+
}
|
|
163
|
+
interface ValueAggregationResult$1 {
|
|
164
|
+
/** Value of the field */
|
|
165
|
+
value?: string;
|
|
166
|
+
count?: number;
|
|
167
|
+
}
|
|
168
|
+
interface ValueResults$1 {
|
|
169
|
+
/** List of value aggregations */
|
|
170
|
+
results?: ValueAggregationResult$1[];
|
|
171
|
+
}
|
|
172
|
+
interface AggregationResultsScalarResult$1 {
|
|
173
|
+
/** Type of scalar aggregation */
|
|
174
|
+
type?: ScalarType$1;
|
|
175
|
+
/** Value of the scalar aggregation */
|
|
176
|
+
value?: number;
|
|
177
|
+
}
|
|
178
|
+
interface ValueResult$1 {
|
|
179
|
+
/** Value of the field */
|
|
180
|
+
value?: string;
|
|
181
|
+
/** Count of entities with this value */
|
|
182
|
+
count?: number | null;
|
|
183
|
+
}
|
|
184
|
+
interface ScalarResult$1 {
|
|
185
|
+
/** Value of the scalar aggregation */
|
|
186
|
+
value?: number;
|
|
187
|
+
}
|
|
188
|
+
interface NestedResultValue$1 extends NestedResultValueResultOneOf$1 {
|
|
189
|
+
/** Value aggregation result */
|
|
190
|
+
value?: ValueResult$1;
|
|
191
|
+
/** Scalar aggregation result */
|
|
192
|
+
scalar?: ScalarResult$1;
|
|
193
|
+
}
|
|
194
|
+
/** @oneof */
|
|
195
|
+
interface NestedResultValueResultOneOf$1 {
|
|
196
|
+
/** Value aggregation result */
|
|
197
|
+
value?: ValueResult$1;
|
|
198
|
+
/** Scalar aggregation result */
|
|
199
|
+
scalar?: ScalarResult$1;
|
|
200
|
+
}
|
|
201
|
+
interface Results$1 {
|
|
202
|
+
/** List of nested aggregations */
|
|
203
|
+
results?: Record<string, NestedResultValue$1>;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Results of `NESTED` aggregation type in a flattened form
|
|
207
|
+
* aggregations in resulting array are keyed by requested aggregation `name`.
|
|
208
|
+
*/
|
|
209
|
+
interface NestedResults$1 {
|
|
210
|
+
/** List of nested aggregations */
|
|
211
|
+
results?: Results$1[];
|
|
212
|
+
}
|
|
213
|
+
interface AggregationResults$1 extends AggregationResultsResultOneOf$1 {
|
|
214
|
+
/** Value aggregation results */
|
|
215
|
+
values?: ValueResults$1;
|
|
216
|
+
/** Scalar aggregation results */
|
|
217
|
+
scalar?: AggregationResultsScalarResult$1;
|
|
218
|
+
/** Nested aggregation results */
|
|
219
|
+
nested?: NestedResults$1;
|
|
220
|
+
/** User-defined name of aggregation as derived from search request */
|
|
221
|
+
name?: string;
|
|
222
|
+
/** Type of aggregation that must match provided kind as derived from search request */
|
|
223
|
+
type?: AggregationType$1;
|
|
224
|
+
/** Field to aggregate by as derived from search request */
|
|
225
|
+
fieldPath?: string;
|
|
226
|
+
}
|
|
227
|
+
/** @oneof */
|
|
228
|
+
interface AggregationResultsResultOneOf$1 {
|
|
229
|
+
/** Value aggregation results */
|
|
230
|
+
values?: ValueResults$1;
|
|
231
|
+
/** Scalar aggregation results */
|
|
232
|
+
scalar?: AggregationResultsScalarResult$1;
|
|
233
|
+
/** Nested aggregation results */
|
|
234
|
+
nested?: NestedResults$1;
|
|
235
|
+
}
|
|
236
|
+
interface PagingMetadata$1 {
|
|
237
|
+
/** Number of items returned in the response. */
|
|
238
|
+
count?: number | null;
|
|
239
|
+
/** Offset that was requested. */
|
|
240
|
+
offset?: number | null;
|
|
241
|
+
/** Total number of items that match the query. */
|
|
242
|
+
total?: number | null;
|
|
243
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
244
|
+
tooManyToCount?: boolean | null;
|
|
245
|
+
}
|
|
246
|
+
interface SearchResponseNonNullableFields$3 {
|
|
247
|
+
siteDocuments: {
|
|
248
|
+
id: string;
|
|
249
|
+
}[];
|
|
250
|
+
aggregationData?: {
|
|
251
|
+
results: {
|
|
252
|
+
values?: {
|
|
253
|
+
results: {
|
|
254
|
+
value: string;
|
|
255
|
+
count: number;
|
|
256
|
+
}[];
|
|
257
|
+
};
|
|
258
|
+
scalar?: {
|
|
259
|
+
type: ScalarType$1;
|
|
260
|
+
value: number;
|
|
261
|
+
};
|
|
262
|
+
nested?: {
|
|
263
|
+
results: {
|
|
264
|
+
results?: {
|
|
265
|
+
value?: {
|
|
266
|
+
value: string;
|
|
267
|
+
};
|
|
268
|
+
scalar?: {
|
|
269
|
+
value: number;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
}[];
|
|
273
|
+
};
|
|
274
|
+
name: string;
|
|
275
|
+
type: AggregationType$1;
|
|
276
|
+
fieldPath: string;
|
|
277
|
+
}[];
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
interface SiteDocument {
|
|
282
|
+
/** @readonly */
|
|
283
|
+
_id?: string;
|
|
284
|
+
/** the document payload */
|
|
285
|
+
document?: Record<string, any> | null;
|
|
286
|
+
}
|
|
287
|
+
interface SearchRequest$2 {
|
|
288
|
+
/** Search query */
|
|
289
|
+
search: Search;
|
|
290
|
+
/** Document type of documents to search for. All document types are searched if not provided. */
|
|
291
|
+
documentType: DocumentType;
|
|
292
|
+
/** Language to search in. */
|
|
293
|
+
language?: string | null;
|
|
294
|
+
}
|
|
295
|
+
interface Search extends SearchPagingMethodOneOf {
|
|
296
|
+
/** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
|
|
297
|
+
paging?: Paging;
|
|
298
|
+
/** 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) */
|
|
299
|
+
filter?: Record<string, any> | null;
|
|
300
|
+
/** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
|
|
301
|
+
sort?: Sorting[];
|
|
302
|
+
/** 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. */
|
|
303
|
+
aggregations?: Aggregation$2[];
|
|
304
|
+
/** Free text to match in searchable fields */
|
|
305
|
+
search?: SearchDetails;
|
|
306
|
+
}
|
|
307
|
+
/** @oneof */
|
|
308
|
+
interface SearchPagingMethodOneOf {
|
|
309
|
+
/** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
|
|
310
|
+
paging?: Paging;
|
|
311
|
+
}
|
|
312
|
+
interface Sorting {
|
|
313
|
+
/** Name of the field to sort by. */
|
|
314
|
+
fieldName?: string;
|
|
315
|
+
/** Sort order. */
|
|
316
|
+
order?: SortOrder;
|
|
317
|
+
}
|
|
318
|
+
declare enum SortOrder {
|
|
319
|
+
ASC = "ASC",
|
|
320
|
+
DESC = "DESC"
|
|
321
|
+
}
|
|
322
|
+
interface Aggregation$2 extends AggregationKindOneOf {
|
|
323
|
+
/** Value aggregation */
|
|
324
|
+
value?: ValueAggregation;
|
|
325
|
+
/** Scalar aggregation */
|
|
326
|
+
scalar?: ScalarAggregation;
|
|
327
|
+
/** Nested aggregation */
|
|
328
|
+
nested?: NestedAggregation;
|
|
329
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
330
|
+
name?: string | null;
|
|
331
|
+
/** Type of aggregation, client must provide matching aggregation field below */
|
|
332
|
+
type?: AggregationType;
|
|
333
|
+
/** Field to aggregate by, use dot notation to specify json path */
|
|
334
|
+
fieldPath?: string;
|
|
335
|
+
}
|
|
336
|
+
/** @oneof */
|
|
337
|
+
interface AggregationKindOneOf {
|
|
338
|
+
/** Value aggregation */
|
|
339
|
+
value?: ValueAggregation;
|
|
340
|
+
/** Scalar aggregation */
|
|
341
|
+
scalar?: ScalarAggregation;
|
|
342
|
+
/** Nested aggregation */
|
|
343
|
+
nested?: NestedAggregation;
|
|
344
|
+
}
|
|
345
|
+
declare enum ScalarType {
|
|
346
|
+
UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
|
|
347
|
+
/** Minimum value */
|
|
348
|
+
MIN = "MIN",
|
|
349
|
+
/** Maximum value */
|
|
350
|
+
MAX = "MAX",
|
|
351
|
+
/** Sum of values */
|
|
352
|
+
SUM = "SUM"
|
|
353
|
+
}
|
|
354
|
+
declare enum NestedAggregationType {
|
|
355
|
+
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
356
|
+
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
357
|
+
VALUE = "VALUE",
|
|
358
|
+
/** A single-value metric aggregation - e.g. min, max, sum, avg */
|
|
359
|
+
SCALAR = "SCALAR"
|
|
360
|
+
}
|
|
361
|
+
interface ValueAggregation {
|
|
362
|
+
/** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */
|
|
363
|
+
limit?: number | null;
|
|
364
|
+
}
|
|
365
|
+
interface ScalarAggregation {
|
|
366
|
+
/** Define the operator for the scalar aggregation */
|
|
367
|
+
type?: ScalarType;
|
|
368
|
+
}
|
|
369
|
+
interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
370
|
+
/** Value aggregation */
|
|
371
|
+
value?: ValueAggregation;
|
|
372
|
+
/** Scalar aggregation */
|
|
373
|
+
scalar?: ScalarAggregation;
|
|
374
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
375
|
+
name?: string | null;
|
|
376
|
+
/** Type of aggregation, client must provide matching aggregation field below */
|
|
377
|
+
type?: NestedAggregationType;
|
|
378
|
+
/** Field to aggregate by, use dont notation to specify json path */
|
|
379
|
+
fieldPath?: string;
|
|
380
|
+
}
|
|
381
|
+
/** @oneof */
|
|
382
|
+
interface NestedAggregationItemKindOneOf {
|
|
383
|
+
/** Value aggregation */
|
|
384
|
+
value?: ValueAggregation;
|
|
385
|
+
/** Scalar aggregation */
|
|
386
|
+
scalar?: ScalarAggregation;
|
|
387
|
+
}
|
|
388
|
+
declare enum AggregationType {
|
|
389
|
+
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
390
|
+
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
391
|
+
VALUE = "VALUE",
|
|
392
|
+
/** A single-value metric aggregation - e.g. min, max, sum, avg */
|
|
393
|
+
SCALAR = "SCALAR",
|
|
394
|
+
/** Multi-level aggregation, where each next aggregation is nested within previous one */
|
|
395
|
+
NESTED = "NESTED"
|
|
396
|
+
}
|
|
397
|
+
/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
|
|
398
|
+
interface NestedAggregation {
|
|
399
|
+
/** Flattened list of aggregations, where each next aggregation is nested within previous one */
|
|
400
|
+
nestedAggregations?: NestedAggregationItem[];
|
|
401
|
+
}
|
|
402
|
+
interface SearchDetails {
|
|
403
|
+
/** Search term or expression */
|
|
404
|
+
expression?: string | null;
|
|
405
|
+
/** Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path */
|
|
406
|
+
fields?: string[];
|
|
407
|
+
/** Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
|
|
408
|
+
fuzzy?: boolean;
|
|
409
|
+
}
|
|
410
|
+
interface Paging {
|
|
411
|
+
/** Number of items to load. */
|
|
412
|
+
limit?: number | null;
|
|
413
|
+
/** Number of items to skip in the current sort order. */
|
|
414
|
+
offset?: number | null;
|
|
415
|
+
}
|
|
416
|
+
declare enum DocumentType {
|
|
417
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
418
|
+
BLOG_POSTS = "BLOG_POSTS",
|
|
419
|
+
BOOKING_SERVICES = "BOOKING_SERVICES",
|
|
420
|
+
EVENTS = "EVENTS",
|
|
421
|
+
FORUM_CONTENT = "FORUM_CONTENT",
|
|
422
|
+
ONLINE_PROGRAMS = "ONLINE_PROGRAMS",
|
|
423
|
+
PROGALLERY_ITEM = "PROGALLERY_ITEM",
|
|
424
|
+
STORES_PRODUCTS = "STORES_PRODUCTS"
|
|
425
|
+
}
|
|
426
|
+
interface SearchResponse$2 extends SearchResponsePagingOneOf {
|
|
427
|
+
/** Paging metadata for the next page of results. */
|
|
428
|
+
pagingOffsetMetadata?: PagingMetadata;
|
|
429
|
+
/** Documents matching filter and query. */
|
|
430
|
+
siteDocuments?: SiteDocument[];
|
|
431
|
+
/** Response aggregation data */
|
|
432
|
+
aggregationData?: AggregationData;
|
|
433
|
+
}
|
|
434
|
+
/** @oneof */
|
|
435
|
+
interface SearchResponsePagingOneOf {
|
|
436
|
+
/** Paging metadata for the next page of results. */
|
|
437
|
+
pagingOffsetMetadata?: PagingMetadata;
|
|
438
|
+
}
|
|
439
|
+
interface AggregationData {
|
|
440
|
+
/** key = aggregation name (as derived from search request) */
|
|
441
|
+
results?: AggregationResults[];
|
|
442
|
+
}
|
|
443
|
+
interface ValueAggregationResult {
|
|
444
|
+
/** Value of the field */
|
|
445
|
+
value?: string;
|
|
446
|
+
count?: number;
|
|
447
|
+
}
|
|
448
|
+
interface ValueResults {
|
|
449
|
+
/** List of value aggregations */
|
|
450
|
+
results?: ValueAggregationResult[];
|
|
451
|
+
}
|
|
452
|
+
interface AggregationResultsScalarResult {
|
|
453
|
+
/** Type of scalar aggregation */
|
|
454
|
+
type?: ScalarType;
|
|
455
|
+
/** Value of the scalar aggregation */
|
|
456
|
+
value?: number;
|
|
457
|
+
}
|
|
458
|
+
interface ValueResult {
|
|
459
|
+
/** Value of the field */
|
|
460
|
+
value?: string;
|
|
461
|
+
/** Count of entities with this value */
|
|
462
|
+
count?: number | null;
|
|
463
|
+
}
|
|
464
|
+
interface ScalarResult {
|
|
465
|
+
/** Value of the scalar aggregation */
|
|
466
|
+
value?: number;
|
|
467
|
+
}
|
|
468
|
+
interface NestedResultValue extends NestedResultValueResultOneOf {
|
|
469
|
+
/** Value aggregation result */
|
|
470
|
+
value?: ValueResult;
|
|
471
|
+
/** Scalar aggregation result */
|
|
472
|
+
scalar?: ScalarResult;
|
|
473
|
+
}
|
|
474
|
+
/** @oneof */
|
|
475
|
+
interface NestedResultValueResultOneOf {
|
|
476
|
+
/** Value aggregation result */
|
|
477
|
+
value?: ValueResult;
|
|
478
|
+
/** Scalar aggregation result */
|
|
479
|
+
scalar?: ScalarResult;
|
|
480
|
+
}
|
|
481
|
+
interface Results {
|
|
482
|
+
/** List of nested aggregations */
|
|
483
|
+
results?: Record<string, NestedResultValue>;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Results of `NESTED` aggregation type in a flattened form
|
|
487
|
+
* aggregations in resulting array are keyed by requested aggregation `name`.
|
|
488
|
+
*/
|
|
489
|
+
interface NestedResults {
|
|
490
|
+
/** List of nested aggregations */
|
|
491
|
+
results?: Results[];
|
|
492
|
+
}
|
|
493
|
+
interface AggregationResults extends AggregationResultsResultOneOf {
|
|
494
|
+
/** Value aggregation results */
|
|
495
|
+
values?: ValueResults;
|
|
496
|
+
/** Scalar aggregation results */
|
|
497
|
+
scalar?: AggregationResultsScalarResult;
|
|
498
|
+
/** Nested aggregation results */
|
|
499
|
+
nested?: NestedResults;
|
|
500
|
+
/** User-defined name of aggregation as derived from search request */
|
|
501
|
+
name?: string;
|
|
502
|
+
/** Type of aggregation that must match provided kind as derived from search request */
|
|
503
|
+
type?: AggregationType;
|
|
504
|
+
/** Field to aggregate by as derived from search request */
|
|
505
|
+
fieldPath?: string;
|
|
506
|
+
}
|
|
507
|
+
/** @oneof */
|
|
508
|
+
interface AggregationResultsResultOneOf {
|
|
509
|
+
/** Value aggregation results */
|
|
510
|
+
values?: ValueResults;
|
|
511
|
+
/** Scalar aggregation results */
|
|
512
|
+
scalar?: AggregationResultsScalarResult;
|
|
513
|
+
/** Nested aggregation results */
|
|
514
|
+
nested?: NestedResults;
|
|
515
|
+
}
|
|
516
|
+
interface PagingMetadata {
|
|
517
|
+
/** Number of items returned in the response. */
|
|
518
|
+
count?: number | null;
|
|
519
|
+
/** Offset that was requested. */
|
|
520
|
+
offset?: number | null;
|
|
521
|
+
/** Total number of items that match the query. */
|
|
522
|
+
total?: number | null;
|
|
523
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
524
|
+
tooManyToCount?: boolean | null;
|
|
525
|
+
}
|
|
526
|
+
interface SearchResponseNonNullableFields$2 {
|
|
527
|
+
siteDocuments: {
|
|
528
|
+
_id: string;
|
|
529
|
+
}[];
|
|
530
|
+
aggregationData?: {
|
|
531
|
+
results: {
|
|
532
|
+
values?: {
|
|
533
|
+
results: {
|
|
534
|
+
value: string;
|
|
535
|
+
count: number;
|
|
536
|
+
}[];
|
|
537
|
+
};
|
|
538
|
+
scalar?: {
|
|
539
|
+
type: ScalarType;
|
|
540
|
+
value: number;
|
|
541
|
+
};
|
|
542
|
+
nested?: {
|
|
543
|
+
results: {
|
|
544
|
+
results?: {
|
|
545
|
+
value?: {
|
|
546
|
+
value: string;
|
|
547
|
+
};
|
|
548
|
+
scalar?: {
|
|
549
|
+
value: number;
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
}[];
|
|
553
|
+
};
|
|
554
|
+
name: string;
|
|
555
|
+
type: AggregationType;
|
|
556
|
+
fieldPath: string;
|
|
557
|
+
}[];
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
562
|
+
getUrl: (context: any) => string;
|
|
563
|
+
httpMethod: K;
|
|
564
|
+
path: string;
|
|
565
|
+
pathParams: M;
|
|
566
|
+
__requestType: T;
|
|
567
|
+
__originalRequestType: S;
|
|
568
|
+
__responseType: Q;
|
|
569
|
+
__originalResponseType: R;
|
|
570
|
+
};
|
|
571
|
+
declare function search$1(): __PublicMethodMetaInfo$1<'POST', {}, SearchRequest$2, SearchRequest$3, SearchResponse$2 & SearchResponseNonNullableFields$2, SearchResponse$3 & SearchResponseNonNullableFields$3>;
|
|
572
|
+
|
|
573
|
+
declare namespace meta$1 {
|
|
574
|
+
export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, search$1 as search };
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
interface SearchRequest$1 {
|
|
578
|
+
/** Text to search for. All searchable fields will be searched. */
|
|
579
|
+
query?: string | null;
|
|
580
|
+
/** Document type of documents to search for. All document types are searched if not provided. */
|
|
581
|
+
documentType?: string | null;
|
|
582
|
+
/** Fields to order by. */
|
|
583
|
+
ordering?: OrderingClauses$1;
|
|
584
|
+
/** Paging parameters. */
|
|
585
|
+
paging?: SearchPaging$1;
|
|
586
|
+
/** Language to search in. */
|
|
587
|
+
language?: string | null;
|
|
588
|
+
/** Filter in platformized query language (for example {'field': {'$eq': 'value'}}) */
|
|
589
|
+
filter?: Record<string, any> | null;
|
|
590
|
+
/** The facets to retrieve. */
|
|
591
|
+
facets?: FacetClauses$1;
|
|
592
|
+
/** Enable fuzzy search (eg. query 'kalvin clein' will match document with 'calvin klein' in title). */
|
|
593
|
+
fuzzy?: boolean | null;
|
|
594
|
+
/** Highlight texts matching the query. Highlighted text will be wrapped with <mark/> tag. Defaults to true if not provided. */
|
|
595
|
+
highlight?: boolean | null;
|
|
596
|
+
/** Searchable fields to search in. If not provided, search is executed on all searchable fields in schema */
|
|
597
|
+
searchFields?: string[];
|
|
598
|
+
/** A list of fields to include in the result set. If not provided, all fields of schema will be included. */
|
|
599
|
+
fields?: string[];
|
|
600
|
+
/** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`. */
|
|
601
|
+
properties?: SearchProperty$1[];
|
|
602
|
+
/** Include seo hidden documents. Defaults to false if not provided. */
|
|
603
|
+
includeSeoHidden?: boolean | null;
|
|
604
|
+
}
|
|
605
|
+
interface OrderingClauses$1 {
|
|
606
|
+
ordering?: OrderingClause$1[];
|
|
607
|
+
}
|
|
608
|
+
interface OrderingClause$1 {
|
|
609
|
+
fieldName?: string | null;
|
|
610
|
+
direction?: Direction$1;
|
|
611
|
+
}
|
|
612
|
+
declare enum Direction$1 {
|
|
613
|
+
UninitializedDirection = "UninitializedDirection",
|
|
614
|
+
ASC = "ASC",
|
|
615
|
+
DESC = "DESC"
|
|
616
|
+
}
|
|
617
|
+
interface SearchPaging$1 {
|
|
618
|
+
/**
|
|
619
|
+
* Number of items to skip in the result set.
|
|
620
|
+
* @deprecated
|
|
621
|
+
*/
|
|
622
|
+
skip?: number;
|
|
623
|
+
/** Number of items to fetch (effectively page size). */
|
|
624
|
+
limit?: number;
|
|
625
|
+
/** Number of items to skip in the result set. */
|
|
626
|
+
offset?: number;
|
|
627
|
+
}
|
|
628
|
+
interface FacetClauses$1 {
|
|
629
|
+
/** Each entry represents a single facet with parameters. */
|
|
630
|
+
clauses?: FacetClause$1[];
|
|
631
|
+
}
|
|
632
|
+
interface FacetClause$1 extends FacetClauseClauseOneOf$1 {
|
|
633
|
+
term?: TermFacet$1;
|
|
634
|
+
aggregation?: AggregationFacet$1;
|
|
635
|
+
hierarchical?: HierarchicalFacet$1;
|
|
636
|
+
}
|
|
637
|
+
/** @oneof */
|
|
638
|
+
interface FacetClauseClauseOneOf$1 {
|
|
639
|
+
term?: TermFacet$1;
|
|
640
|
+
aggregation?: AggregationFacet$1;
|
|
641
|
+
hierarchical?: HierarchicalFacet$1;
|
|
642
|
+
}
|
|
643
|
+
declare enum Aggregation$1 {
|
|
644
|
+
MIN = "MIN",
|
|
645
|
+
MAX = "MAX",
|
|
646
|
+
SUM = "SUM"
|
|
647
|
+
}
|
|
648
|
+
interface HierarchicalFacet$1 extends HierarchicalFacetClauseOneOf$1 {
|
|
649
|
+
term?: TermFacet$1;
|
|
650
|
+
aggregation?: AggregationFacet$1;
|
|
651
|
+
nestedAggregation?: HierarchicalFacet$1;
|
|
652
|
+
}
|
|
653
|
+
/** @oneof */
|
|
654
|
+
interface HierarchicalFacetClauseOneOf$1 {
|
|
655
|
+
term?: TermFacet$1;
|
|
656
|
+
aggregation?: AggregationFacet$1;
|
|
657
|
+
}
|
|
658
|
+
interface TermFacet$1 {
|
|
659
|
+
/** The name of the faceted attribute. */
|
|
660
|
+
name?: string;
|
|
661
|
+
/** Limit the number of facet values returned. Default is 10. */
|
|
662
|
+
limit?: number | null;
|
|
663
|
+
}
|
|
664
|
+
interface AggregationFacet$1 {
|
|
665
|
+
/** The name of the faceted attribute. */
|
|
666
|
+
name?: string;
|
|
667
|
+
/** Aggregation type. */
|
|
668
|
+
aggregation?: Aggregation$1;
|
|
669
|
+
}
|
|
670
|
+
interface SearchProperty$1 {
|
|
671
|
+
name?: string;
|
|
672
|
+
value?: any;
|
|
673
|
+
}
|
|
674
|
+
interface SearchResponse$1 {
|
|
675
|
+
/** Documents matching filter and query. */
|
|
676
|
+
documents?: Record<string, any>[] | null;
|
|
677
|
+
nextPage?: NextPageResponse$1;
|
|
678
|
+
/**
|
|
679
|
+
* Facets provide "counts in categories" view. For example searching for "Nike" would return
|
|
680
|
+
* (Shoes, 5), (Socks, 2) indicating numbers for matching by each faceted field.
|
|
681
|
+
*/
|
|
682
|
+
facets?: FacetsResponse$1[];
|
|
683
|
+
}
|
|
684
|
+
interface NextPageResponse$1 {
|
|
685
|
+
/** Total number of items across all pages */
|
|
686
|
+
total?: number;
|
|
687
|
+
/** The number of items to skip */
|
|
688
|
+
skip?: number;
|
|
689
|
+
/** The number of items to retrieve in one page */
|
|
690
|
+
limit?: number;
|
|
691
|
+
}
|
|
692
|
+
interface FacetsResponse$1 extends FacetsResponseResponseOneOf$1 {
|
|
693
|
+
terms?: TermAggregationResponse$1;
|
|
694
|
+
minAggregation?: MinAggregationResponse$1;
|
|
695
|
+
maxAggregation?: MaxAggregationResponse$1;
|
|
696
|
+
minMaxAggregation?: MinMaxAggregationResponse$1;
|
|
697
|
+
hierarchicalAggregation?: HierarchicalAggregationResponse$1;
|
|
698
|
+
sumAggregation?: SumAggregationResponse$1;
|
|
699
|
+
}
|
|
700
|
+
/** @oneof */
|
|
701
|
+
interface FacetsResponseResponseOneOf$1 {
|
|
702
|
+
terms?: TermAggregationResponse$1;
|
|
703
|
+
minAggregation?: MinAggregationResponse$1;
|
|
704
|
+
maxAggregation?: MaxAggregationResponse$1;
|
|
705
|
+
minMaxAggregation?: MinMaxAggregationResponse$1;
|
|
706
|
+
hierarchicalAggregation?: HierarchicalAggregationResponse$1;
|
|
707
|
+
sumAggregation?: SumAggregationResponse$1;
|
|
708
|
+
}
|
|
709
|
+
interface FacetCountResponse$1 {
|
|
710
|
+
/** Facet field value (for example "Shoes", "Socks") */
|
|
711
|
+
facetValue?: string;
|
|
712
|
+
/** Document count within the group */
|
|
713
|
+
count?: number;
|
|
714
|
+
}
|
|
715
|
+
interface Value$1 {
|
|
716
|
+
value?: string;
|
|
717
|
+
facets?: FacetsResponse$1;
|
|
718
|
+
count?: number;
|
|
719
|
+
}
|
|
720
|
+
interface TermAggregationResponse$1 {
|
|
721
|
+
/** Facet field (for example productCategory) */
|
|
722
|
+
facet?: string;
|
|
723
|
+
/** Facet values and document counts */
|
|
724
|
+
facets?: FacetCountResponse$1[];
|
|
725
|
+
}
|
|
726
|
+
interface MinAggregationResponse$1 {
|
|
727
|
+
/** Facet field (for example productPrice) */
|
|
728
|
+
facet?: string;
|
|
729
|
+
/** The minimum value across all documents */
|
|
730
|
+
minValue?: number | null;
|
|
731
|
+
}
|
|
732
|
+
interface MaxAggregationResponse$1 {
|
|
733
|
+
/** Facet field (for example productPrice) */
|
|
734
|
+
facet?: string;
|
|
735
|
+
/** The maximum value across all documents */
|
|
736
|
+
maxValue?: number | null;
|
|
737
|
+
}
|
|
738
|
+
interface MinMaxAggregationResponse$1 {
|
|
739
|
+
/** Facet field (for example productPrice) */
|
|
740
|
+
facet?: string;
|
|
741
|
+
/** The minimum value across all documents */
|
|
742
|
+
minValue?: number | null;
|
|
743
|
+
/** The maximum value across all documents */
|
|
744
|
+
maxValue?: number | null;
|
|
745
|
+
}
|
|
746
|
+
interface HierarchicalAggregationResponse$1 {
|
|
747
|
+
facet?: string;
|
|
748
|
+
values?: Value$1[];
|
|
749
|
+
}
|
|
750
|
+
interface SumAggregationResponse$1 {
|
|
751
|
+
/** Facet field (for example productPrice) */
|
|
752
|
+
facet?: string;
|
|
753
|
+
/** The sum value across all documents */
|
|
754
|
+
value?: number | null;
|
|
755
|
+
}
|
|
756
|
+
interface SearchResponseNonNullableFields$1 {
|
|
757
|
+
nextPage?: {
|
|
758
|
+
total: number;
|
|
759
|
+
skip: number;
|
|
760
|
+
limit: number;
|
|
761
|
+
};
|
|
762
|
+
facets: {
|
|
763
|
+
terms?: {
|
|
764
|
+
facet: string;
|
|
765
|
+
facets: {
|
|
766
|
+
facetValue: string;
|
|
767
|
+
count: number;
|
|
768
|
+
}[];
|
|
769
|
+
};
|
|
770
|
+
minAggregation?: {
|
|
771
|
+
facet: string;
|
|
772
|
+
};
|
|
773
|
+
maxAggregation?: {
|
|
774
|
+
facet: string;
|
|
775
|
+
};
|
|
776
|
+
minMaxAggregation?: {
|
|
777
|
+
facet: string;
|
|
778
|
+
};
|
|
779
|
+
hierarchicalAggregation?: {
|
|
780
|
+
facet: string;
|
|
781
|
+
values: {
|
|
782
|
+
value: string;
|
|
783
|
+
count: number;
|
|
784
|
+
}[];
|
|
785
|
+
};
|
|
786
|
+
sumAggregation?: {
|
|
787
|
+
facet: string;
|
|
788
|
+
};
|
|
789
|
+
}[];
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
interface SearchRequest {
|
|
793
|
+
/** Text to search for. All searchable fields will be searched. */
|
|
794
|
+
query?: string | null;
|
|
795
|
+
/** Document type of documents to search for. All document types are searched if not provided. */
|
|
796
|
+
documentType?: string | null;
|
|
797
|
+
/** Fields to order by. */
|
|
798
|
+
ordering?: OrderingClauses;
|
|
799
|
+
/** Paging parameters. */
|
|
800
|
+
paging?: SearchPaging;
|
|
801
|
+
/** Language to search in. */
|
|
802
|
+
language?: string | null;
|
|
803
|
+
/** Filter in platformized query language (for example {'field': {'$eq': 'value'}}) */
|
|
804
|
+
filter?: Record<string, any> | null;
|
|
805
|
+
/** The facets to retrieve. */
|
|
806
|
+
facets?: FacetClauses;
|
|
807
|
+
/** Enable fuzzy search (eg. query 'kalvin clein' will match document with 'calvin klein' in title). */
|
|
808
|
+
fuzzy?: boolean | null;
|
|
809
|
+
/** Highlight texts matching the query. Highlighted text will be wrapped with <mark/> tag. Defaults to true if not provided. */
|
|
810
|
+
highlight?: boolean | null;
|
|
811
|
+
/** Searchable fields to search in. If not provided, search is executed on all searchable fields in schema */
|
|
812
|
+
searchFields?: string[];
|
|
813
|
+
/** A list of fields to include in the result set. If not provided, all fields of schema will be included. */
|
|
814
|
+
fields?: string[];
|
|
815
|
+
/** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`. */
|
|
816
|
+
properties?: SearchProperty[];
|
|
817
|
+
/** Include seo hidden documents. Defaults to false if not provided. */
|
|
818
|
+
includeSeoHidden?: boolean | null;
|
|
819
|
+
}
|
|
820
|
+
interface OrderingClauses {
|
|
821
|
+
ordering?: OrderingClause[];
|
|
822
|
+
}
|
|
823
|
+
interface OrderingClause {
|
|
824
|
+
fieldName?: string | null;
|
|
825
|
+
direction?: Direction;
|
|
826
|
+
}
|
|
827
|
+
declare enum Direction {
|
|
828
|
+
UninitializedDirection = "UninitializedDirection",
|
|
829
|
+
ASC = "ASC",
|
|
830
|
+
DESC = "DESC"
|
|
831
|
+
}
|
|
832
|
+
interface SearchPaging {
|
|
833
|
+
/**
|
|
834
|
+
* Number of items to skip in the result set.
|
|
835
|
+
* @deprecated
|
|
836
|
+
*/
|
|
837
|
+
skip?: number;
|
|
838
|
+
/** Number of items to fetch (effectively page size). */
|
|
839
|
+
limit?: number;
|
|
840
|
+
/** Number of items to skip in the result set. */
|
|
841
|
+
offset?: number;
|
|
842
|
+
}
|
|
843
|
+
interface FacetClauses {
|
|
844
|
+
/** Each entry represents a single facet with parameters. */
|
|
845
|
+
clauses?: FacetClause[];
|
|
846
|
+
}
|
|
847
|
+
interface FacetClause extends FacetClauseClauseOneOf {
|
|
848
|
+
term?: TermFacet;
|
|
849
|
+
aggregation?: AggregationFacet;
|
|
850
|
+
hierarchical?: HierarchicalFacet;
|
|
851
|
+
}
|
|
852
|
+
/** @oneof */
|
|
853
|
+
interface FacetClauseClauseOneOf {
|
|
854
|
+
term?: TermFacet;
|
|
855
|
+
aggregation?: AggregationFacet;
|
|
856
|
+
hierarchical?: HierarchicalFacet;
|
|
857
|
+
}
|
|
858
|
+
declare enum Aggregation {
|
|
859
|
+
MIN = "MIN",
|
|
860
|
+
MAX = "MAX",
|
|
861
|
+
SUM = "SUM"
|
|
862
|
+
}
|
|
863
|
+
interface HierarchicalFacet extends HierarchicalFacetClauseOneOf {
|
|
864
|
+
term?: TermFacet;
|
|
865
|
+
aggregation?: AggregationFacet;
|
|
866
|
+
nestedAggregation?: HierarchicalFacet;
|
|
867
|
+
}
|
|
868
|
+
/** @oneof */
|
|
869
|
+
interface HierarchicalFacetClauseOneOf {
|
|
870
|
+
term?: TermFacet;
|
|
871
|
+
aggregation?: AggregationFacet;
|
|
872
|
+
}
|
|
873
|
+
interface TermFacet {
|
|
874
|
+
/** The name of the faceted attribute. */
|
|
875
|
+
name?: string;
|
|
876
|
+
/** Limit the number of facet values returned. Default is 10. */
|
|
877
|
+
limit?: number | null;
|
|
878
|
+
}
|
|
879
|
+
interface AggregationFacet {
|
|
880
|
+
/** The name of the faceted attribute. */
|
|
881
|
+
name?: string;
|
|
882
|
+
/** Aggregation type. */
|
|
883
|
+
aggregation?: Aggregation;
|
|
884
|
+
}
|
|
885
|
+
interface SearchProperty {
|
|
886
|
+
name?: string;
|
|
887
|
+
value?: any;
|
|
888
|
+
}
|
|
889
|
+
interface SearchResponse {
|
|
890
|
+
/** Documents matching filter and query. */
|
|
891
|
+
documents?: Record<string, any>[] | null;
|
|
892
|
+
nextPage?: NextPageResponse;
|
|
893
|
+
/**
|
|
894
|
+
* Facets provide "counts in categories" view. For example searching for "Nike" would return
|
|
895
|
+
* (Shoes, 5), (Socks, 2) indicating numbers for matching by each faceted field.
|
|
896
|
+
*/
|
|
897
|
+
facets?: FacetsResponse[];
|
|
898
|
+
}
|
|
899
|
+
interface NextPageResponse {
|
|
900
|
+
/** Total number of items across all pages */
|
|
901
|
+
total?: number;
|
|
902
|
+
/** The number of items to skip */
|
|
903
|
+
skip?: number;
|
|
904
|
+
/** The number of items to retrieve in one page */
|
|
905
|
+
limit?: number;
|
|
906
|
+
}
|
|
907
|
+
interface FacetsResponse extends FacetsResponseResponseOneOf {
|
|
908
|
+
terms?: TermAggregationResponse;
|
|
909
|
+
minAggregation?: MinAggregationResponse;
|
|
910
|
+
maxAggregation?: MaxAggregationResponse;
|
|
911
|
+
minMaxAggregation?: MinMaxAggregationResponse;
|
|
912
|
+
hierarchicalAggregation?: HierarchicalAggregationResponse;
|
|
913
|
+
sumAggregation?: SumAggregationResponse;
|
|
914
|
+
}
|
|
915
|
+
/** @oneof */
|
|
916
|
+
interface FacetsResponseResponseOneOf {
|
|
917
|
+
terms?: TermAggregationResponse;
|
|
918
|
+
minAggregation?: MinAggregationResponse;
|
|
919
|
+
maxAggregation?: MaxAggregationResponse;
|
|
920
|
+
minMaxAggregation?: MinMaxAggregationResponse;
|
|
921
|
+
hierarchicalAggregation?: HierarchicalAggregationResponse;
|
|
922
|
+
sumAggregation?: SumAggregationResponse;
|
|
923
|
+
}
|
|
924
|
+
interface FacetCountResponse {
|
|
925
|
+
/** Facet field value (for example "Shoes", "Socks") */
|
|
926
|
+
facetValue?: string;
|
|
927
|
+
/** Document count within the group */
|
|
928
|
+
count?: number;
|
|
929
|
+
}
|
|
930
|
+
interface Value {
|
|
931
|
+
value?: string;
|
|
932
|
+
facets?: FacetsResponse;
|
|
933
|
+
count?: number;
|
|
934
|
+
}
|
|
935
|
+
interface TermAggregationResponse {
|
|
936
|
+
/** Facet field (for example productCategory) */
|
|
937
|
+
facet?: string;
|
|
938
|
+
/** Facet values and document counts */
|
|
939
|
+
facets?: FacetCountResponse[];
|
|
940
|
+
}
|
|
941
|
+
interface MinAggregationResponse {
|
|
942
|
+
/** Facet field (for example productPrice) */
|
|
943
|
+
facet?: string;
|
|
944
|
+
/** The minimum value across all documents */
|
|
945
|
+
minValue?: number | null;
|
|
946
|
+
}
|
|
947
|
+
interface MaxAggregationResponse {
|
|
948
|
+
/** Facet field (for example productPrice) */
|
|
949
|
+
facet?: string;
|
|
950
|
+
/** The maximum value across all documents */
|
|
951
|
+
maxValue?: number | null;
|
|
952
|
+
}
|
|
953
|
+
interface MinMaxAggregationResponse {
|
|
954
|
+
/** Facet field (for example productPrice) */
|
|
955
|
+
facet?: string;
|
|
956
|
+
/** The minimum value across all documents */
|
|
957
|
+
minValue?: number | null;
|
|
958
|
+
/** The maximum value across all documents */
|
|
959
|
+
maxValue?: number | null;
|
|
960
|
+
}
|
|
961
|
+
interface HierarchicalAggregationResponse {
|
|
962
|
+
facet?: string;
|
|
963
|
+
values?: Value[];
|
|
964
|
+
}
|
|
965
|
+
interface SumAggregationResponse {
|
|
966
|
+
/** Facet field (for example productPrice) */
|
|
967
|
+
facet?: string;
|
|
968
|
+
/** The sum value across all documents */
|
|
969
|
+
value?: number | null;
|
|
970
|
+
}
|
|
971
|
+
interface SearchResponseNonNullableFields {
|
|
972
|
+
nextPage?: {
|
|
973
|
+
total: number;
|
|
974
|
+
skip: number;
|
|
975
|
+
limit: number;
|
|
976
|
+
};
|
|
977
|
+
facets: {
|
|
978
|
+
terms?: {
|
|
979
|
+
facet: string;
|
|
980
|
+
facets: {
|
|
981
|
+
facetValue: string;
|
|
982
|
+
count: number;
|
|
983
|
+
}[];
|
|
984
|
+
};
|
|
985
|
+
minAggregation?: {
|
|
986
|
+
facet: string;
|
|
987
|
+
};
|
|
988
|
+
maxAggregation?: {
|
|
989
|
+
facet: string;
|
|
990
|
+
};
|
|
991
|
+
minMaxAggregation?: {
|
|
992
|
+
facet: string;
|
|
993
|
+
};
|
|
994
|
+
hierarchicalAggregation?: {
|
|
995
|
+
facet: string;
|
|
996
|
+
values: {
|
|
997
|
+
value: string;
|
|
998
|
+
count: number;
|
|
999
|
+
}[];
|
|
1000
|
+
};
|
|
1001
|
+
sumAggregation?: {
|
|
1002
|
+
facet: string;
|
|
1003
|
+
};
|
|
1004
|
+
}[];
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
1008
|
+
getUrl: (context: any) => string;
|
|
1009
|
+
httpMethod: K;
|
|
1010
|
+
path: string;
|
|
1011
|
+
pathParams: M;
|
|
1012
|
+
__requestType: T;
|
|
1013
|
+
__originalRequestType: S;
|
|
1014
|
+
__responseType: Q;
|
|
1015
|
+
__originalResponseType: R;
|
|
1016
|
+
};
|
|
1017
|
+
declare function search(): __PublicMethodMetaInfo<'POST', {}, SearchRequest, SearchRequest$1, SearchResponse & SearchResponseNonNullableFields, SearchResponse$1 & SearchResponseNonNullableFields$1>;
|
|
1018
|
+
|
|
1019
|
+
type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
|
|
1020
|
+
declare const meta_search: typeof search;
|
|
1021
|
+
declare namespace meta {
|
|
1022
|
+
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_search as search };
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
export { meta as siteSearch, meta$1 as wixSiteSearch };
|