@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.
@@ -0,0 +1,1101 @@
1
+ interface SiteDocument$1 {
2
+ /** @readonly */
3
+ _id?: string;
4
+ /** the document payload */
5
+ document?: Record<string, any> | null;
6
+ }
7
+ interface SearchRequest$1 {
8
+ /** Search query */
9
+ search: Search;
10
+ /** Document type of documents to search for. All document types are searched if not provided. */
11
+ documentType: DocumentType;
12
+ /** Language to search in. */
13
+ language?: string | null;
14
+ }
15
+ interface Search extends SearchPagingMethodOneOf {
16
+ /** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
17
+ paging?: Paging;
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[];
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$1[];
24
+ /** Free text to match in searchable fields */
25
+ search?: SearchDetails;
26
+ }
27
+ /** @oneof */
28
+ interface SearchPagingMethodOneOf {
29
+ /** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
30
+ paging?: Paging;
31
+ }
32
+ interface Sorting {
33
+ /** Name of the field to sort by. */
34
+ fieldName?: string;
35
+ /** Sort order. */
36
+ order?: SortOrder;
37
+ }
38
+ declare enum SortOrder {
39
+ ASC = "ASC",
40
+ DESC = "DESC"
41
+ }
42
+ interface Aggregation$1 extends AggregationKindOneOf {
43
+ /** Value aggregation */
44
+ value?: ValueAggregation;
45
+ /** Scalar aggregation */
46
+ scalar?: ScalarAggregation;
47
+ /** Nested aggregation */
48
+ nested?: NestedAggregation;
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;
53
+ /** Field to aggregate by, use dot notation to specify json path */
54
+ fieldPath?: string;
55
+ }
56
+ /** @oneof */
57
+ interface AggregationKindOneOf {
58
+ /** Value aggregation */
59
+ value?: ValueAggregation;
60
+ /** Scalar aggregation */
61
+ scalar?: ScalarAggregation;
62
+ /** Nested aggregation */
63
+ nested?: NestedAggregation;
64
+ }
65
+ declare enum ScalarType {
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 {
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 {
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 {
86
+ /** Define the operator for the scalar aggregation */
87
+ type?: ScalarType;
88
+ }
89
+ interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
90
+ /** Value aggregation */
91
+ value?: ValueAggregation;
92
+ /** Scalar aggregation */
93
+ scalar?: ScalarAggregation;
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;
98
+ /** Field to aggregate by, use dont notation to specify json path */
99
+ fieldPath?: string;
100
+ }
101
+ /** @oneof */
102
+ interface NestedAggregationItemKindOneOf {
103
+ /** Value aggregation */
104
+ value?: ValueAggregation;
105
+ /** Scalar aggregation */
106
+ scalar?: ScalarAggregation;
107
+ }
108
+ declare enum AggregationType {
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 {
119
+ /** Flattened list of aggregations, where each next aggregation is nested within previous one */
120
+ nestedAggregations?: NestedAggregationItem[];
121
+ }
122
+ interface SearchDetails {
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 {
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 {
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$1 extends SearchResponsePagingOneOf {
147
+ /** Paging metadata for the next page of results. */
148
+ pagingOffsetMetadata?: PagingMetadata;
149
+ /** Documents matching filter and query. */
150
+ siteDocuments?: SiteDocument$1[];
151
+ /** Response aggregation data */
152
+ aggregationData?: AggregationData;
153
+ }
154
+ /** @oneof */
155
+ interface SearchResponsePagingOneOf {
156
+ /** Paging metadata for the next page of results. */
157
+ pagingOffsetMetadata?: PagingMetadata;
158
+ }
159
+ interface AggregationData {
160
+ /** key = aggregation name (as derived from search request) */
161
+ results?: AggregationResults[];
162
+ }
163
+ interface ValueAggregationResult {
164
+ /** Value of the field */
165
+ value?: string;
166
+ count?: number;
167
+ }
168
+ interface ValueResults {
169
+ /** List of value aggregations */
170
+ results?: ValueAggregationResult[];
171
+ }
172
+ interface AggregationResultsScalarResult {
173
+ /** Type of scalar aggregation */
174
+ type?: ScalarType;
175
+ /** Value of the scalar aggregation */
176
+ value?: number;
177
+ }
178
+ interface ValueResult {
179
+ /** Value of the field */
180
+ value?: string;
181
+ /** Count of entities with this value */
182
+ count?: number | null;
183
+ }
184
+ interface ScalarResult {
185
+ /** Value of the scalar aggregation */
186
+ value?: number;
187
+ }
188
+ interface NestedResultValue extends NestedResultValueResultOneOf {
189
+ /** Value aggregation result */
190
+ value?: ValueResult;
191
+ /** Scalar aggregation result */
192
+ scalar?: ScalarResult;
193
+ }
194
+ /** @oneof */
195
+ interface NestedResultValueResultOneOf {
196
+ /** Value aggregation result */
197
+ value?: ValueResult;
198
+ /** Scalar aggregation result */
199
+ scalar?: ScalarResult;
200
+ }
201
+ interface Results {
202
+ /** List of nested aggregations */
203
+ results?: Record<string, NestedResultValue>;
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 {
210
+ /** List of nested aggregations */
211
+ results?: Results[];
212
+ }
213
+ interface AggregationResults extends AggregationResultsResultOneOf {
214
+ /** Value aggregation results */
215
+ values?: ValueResults;
216
+ /** Scalar aggregation results */
217
+ scalar?: AggregationResultsScalarResult;
218
+ /** Nested aggregation results */
219
+ nested?: NestedResults;
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;
224
+ /** Field to aggregate by as derived from search request */
225
+ fieldPath?: string;
226
+ }
227
+ /** @oneof */
228
+ interface AggregationResultsResultOneOf {
229
+ /** Value aggregation results */
230
+ values?: ValueResults;
231
+ /** Scalar aggregation results */
232
+ scalar?: AggregationResultsScalarResult;
233
+ /** Nested aggregation results */
234
+ nested?: NestedResults;
235
+ }
236
+ interface PagingMetadata {
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$1 {
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;
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;
276
+ fieldPath: string;
277
+ }[];
278
+ };
279
+ }
280
+ interface SearchOptions$1 {
281
+ /** Document type of documents to search for. All document types are searched if not provided. */
282
+ documentType: DocumentType;
283
+ /** Language to search in. */
284
+ language?: string | null;
285
+ }
286
+
287
+ interface HttpClient {
288
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
289
+ }
290
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
291
+ type HttpResponse<T = any> = {
292
+ data: T;
293
+ status: number;
294
+ statusText: string;
295
+ headers: any;
296
+ request?: any;
297
+ };
298
+ type RequestOptions<_TResponse = any, Data = any> = {
299
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
300
+ url: string;
301
+ data?: Data;
302
+ params?: URLSearchParams;
303
+ } & APIMetadata;
304
+ type APIMetadata = {
305
+ methodFqn?: string;
306
+ entityFqdn?: string;
307
+ packageName?: string;
308
+ };
309
+
310
+ declare const __metadata$1: {
311
+ PACKAGE_NAME: string;
312
+ };
313
+ declare function search$1(httpClient: HttpClient): (search: Search, options?: SearchOptions$1) => Promise<SearchResponse$1 & SearchResponseNonNullableFields$1>;
314
+
315
+ type index_d$1_AggregationData = AggregationData;
316
+ type index_d$1_AggregationKindOneOf = AggregationKindOneOf;
317
+ type index_d$1_AggregationResults = AggregationResults;
318
+ type index_d$1_AggregationResultsResultOneOf = AggregationResultsResultOneOf;
319
+ type index_d$1_AggregationResultsScalarResult = AggregationResultsScalarResult;
320
+ type index_d$1_AggregationType = AggregationType;
321
+ declare const index_d$1_AggregationType: typeof AggregationType;
322
+ type index_d$1_DocumentType = DocumentType;
323
+ declare const index_d$1_DocumentType: typeof DocumentType;
324
+ type index_d$1_NestedAggregation = NestedAggregation;
325
+ type index_d$1_NestedAggregationItem = NestedAggregationItem;
326
+ type index_d$1_NestedAggregationItemKindOneOf = NestedAggregationItemKindOneOf;
327
+ type index_d$1_NestedAggregationType = NestedAggregationType;
328
+ declare const index_d$1_NestedAggregationType: typeof NestedAggregationType;
329
+ type index_d$1_NestedResultValue = NestedResultValue;
330
+ type index_d$1_NestedResultValueResultOneOf = NestedResultValueResultOneOf;
331
+ type index_d$1_NestedResults = NestedResults;
332
+ type index_d$1_Paging = Paging;
333
+ type index_d$1_PagingMetadata = PagingMetadata;
334
+ type index_d$1_Results = Results;
335
+ type index_d$1_ScalarAggregation = ScalarAggregation;
336
+ type index_d$1_ScalarResult = ScalarResult;
337
+ type index_d$1_ScalarType = ScalarType;
338
+ declare const index_d$1_ScalarType: typeof ScalarType;
339
+ type index_d$1_Search = Search;
340
+ type index_d$1_SearchDetails = SearchDetails;
341
+ type index_d$1_SearchPagingMethodOneOf = SearchPagingMethodOneOf;
342
+ type index_d$1_SearchResponsePagingOneOf = SearchResponsePagingOneOf;
343
+ type index_d$1_SortOrder = SortOrder;
344
+ declare const index_d$1_SortOrder: typeof SortOrder;
345
+ type index_d$1_Sorting = Sorting;
346
+ type index_d$1_ValueAggregation = ValueAggregation;
347
+ type index_d$1_ValueAggregationResult = ValueAggregationResult;
348
+ type index_d$1_ValueResult = ValueResult;
349
+ type index_d$1_ValueResults = ValueResults;
350
+ declare namespace index_d$1 {
351
+ export { type Aggregation$1 as Aggregation, type index_d$1_AggregationData as AggregationData, type index_d$1_AggregationKindOneOf as AggregationKindOneOf, type index_d$1_AggregationResults as AggregationResults, type index_d$1_AggregationResultsResultOneOf as AggregationResultsResultOneOf, type index_d$1_AggregationResultsScalarResult as AggregationResultsScalarResult, index_d$1_AggregationType as AggregationType, index_d$1_DocumentType as DocumentType, type index_d$1_NestedAggregation as NestedAggregation, type index_d$1_NestedAggregationItem as NestedAggregationItem, type index_d$1_NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOf, index_d$1_NestedAggregationType as NestedAggregationType, type index_d$1_NestedResultValue as NestedResultValue, type index_d$1_NestedResultValueResultOneOf as NestedResultValueResultOneOf, type index_d$1_NestedResults as NestedResults, type index_d$1_Paging as Paging, type index_d$1_PagingMetadata as PagingMetadata, type index_d$1_Results as Results, type index_d$1_ScalarAggregation as ScalarAggregation, type index_d$1_ScalarResult as ScalarResult, index_d$1_ScalarType as ScalarType, type index_d$1_Search as Search, type index_d$1_SearchDetails as SearchDetails, type SearchOptions$1 as SearchOptions, type index_d$1_SearchPagingMethodOneOf as SearchPagingMethodOneOf, type SearchRequest$1 as SearchRequest, type SearchResponse$1 as SearchResponse, type SearchResponseNonNullableFields$1 as SearchResponseNonNullableFields, type index_d$1_SearchResponsePagingOneOf as SearchResponsePagingOneOf, type SiteDocument$1 as SiteDocument, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, type index_d$1_ValueAggregation as ValueAggregation, type index_d$1_ValueAggregationResult as ValueAggregationResult, type index_d$1_ValueResult as ValueResult, type index_d$1_ValueResults as ValueResults, __metadata$1 as __metadata, search$1 as search };
352
+ }
353
+
354
+ /** API is not yet fully migrated to FQDN entity */
355
+ interface SiteDocument {
356
+ /** the document payload */
357
+ document?: Record<string, any> | null;
358
+ }
359
+ interface UpdateInternalDocumentsEvent extends UpdateInternalDocumentsEventOperationOneOf {
360
+ /** insert/update documents */
361
+ update?: InternalDocumentUpdateOperation;
362
+ /** delete by document ids */
363
+ deleteByIds?: DeleteByIdsOperation;
364
+ /** delete documents matching filter */
365
+ deleteByFilter?: DeleteByFilterOperation;
366
+ /** update internal documents matching filter */
367
+ updateByFilter?: InternalDocumentUpdateByFilterOperation;
368
+ /** update only existing documents */
369
+ updateExisting?: InternalUpdateExistingOperation;
370
+ /** insert/update documents with versioning */
371
+ versionedUpdate?: VersionedDocumentUpdateOperation;
372
+ /** delete by document ids with versioning */
373
+ versionedDeleteByIds?: VersionedDeleteByIdsOperation;
374
+ /** type of the documents */
375
+ documentType?: string;
376
+ /** language of the documents (mandatory) */
377
+ language?: string | null;
378
+ /**
379
+ * one or more search documents
380
+ * @deprecated
381
+ */
382
+ addDocuments?: InternalDocument[];
383
+ /**
384
+ * one or more ids of indexed documents to be removed. Removal will happen before addition (if both provided)
385
+ * @deprecated
386
+ */
387
+ removeDocumentIds?: string[];
388
+ /** id to pass to processing notification */
389
+ correlationId?: string | null;
390
+ }
391
+ /** @oneof */
392
+ interface UpdateInternalDocumentsEventOperationOneOf {
393
+ /** insert/update documents */
394
+ update?: InternalDocumentUpdateOperation;
395
+ /** delete by document ids */
396
+ deleteByIds?: DeleteByIdsOperation;
397
+ /** delete documents matching filter */
398
+ deleteByFilter?: DeleteByFilterOperation;
399
+ /** update internal documents matching filter */
400
+ updateByFilter?: InternalDocumentUpdateByFilterOperation;
401
+ /** update only existing documents */
402
+ updateExisting?: InternalUpdateExistingOperation;
403
+ /** insert/update documents with versioning */
404
+ versionedUpdate?: VersionedDocumentUpdateOperation;
405
+ /** delete by document ids with versioning */
406
+ versionedDeleteByIds?: VersionedDeleteByIdsOperation;
407
+ }
408
+ interface InternalDocument {
409
+ /** document with mandatory fields (id) and with fields specific to the type of the document */
410
+ document?: Record<string, any> | null;
411
+ }
412
+ interface InternalDocumentUpdateOperation {
413
+ /** documents to index or update */
414
+ documents?: InternalDocument[];
415
+ }
416
+ interface DeleteByIdsOperation {
417
+ /** ids of the documents to delete */
418
+ documentIds?: string[];
419
+ }
420
+ interface DeleteByFilterOperation {
421
+ /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */
422
+ filter?: Record<string, any> | null;
423
+ }
424
+ interface InternalDocumentUpdateByFilterOperation {
425
+ /** documents matching this filter will be updated */
426
+ filter?: Record<string, any> | null;
427
+ /** partial document to apply */
428
+ document?: InternalDocument;
429
+ }
430
+ interface InternalUpdateExistingOperation {
431
+ /** documents to update */
432
+ documents?: InternalDocument[];
433
+ }
434
+ interface VersionedDocumentUpdateOperation {
435
+ /** documents to create or overwrite */
436
+ documents?: InternalDocument[];
437
+ /** versioning mode to use instead of default */
438
+ versioningMode?: VersioningMode;
439
+ }
440
+ declare enum VersioningMode {
441
+ /** use default versioning mode agreed with search team */
442
+ DEFAULT = "DEFAULT",
443
+ /** execute only if version is greater than existing */
444
+ GREATER_THAN = "GREATER_THAN",
445
+ /** execute only if version is greater or equal to existing */
446
+ GREATER_OR_EQUAL = "GREATER_OR_EQUAL"
447
+ }
448
+ interface VersionedDeleteByIdsOperation {
449
+ /** ids with version of the documents to delete */
450
+ documentIds?: VersionedDocumentId[];
451
+ }
452
+ interface VersionedDocumentId {
453
+ /** document id */
454
+ documentId?: string;
455
+ /** document version */
456
+ version?: string;
457
+ /** versioning mode to use instead of default */
458
+ versioningMode?: VersioningMode;
459
+ }
460
+ interface UpdateDocumentsEvent extends UpdateDocumentsEventOperationOneOf {
461
+ /** insert/update documents */
462
+ update?: DocumentUpdateOperation;
463
+ /** delete by document ids */
464
+ deleteByIds?: V1DeleteByIdsOperation;
465
+ /** delete documents matching filter */
466
+ deleteByFilter?: V1DeleteByFilterOperation;
467
+ /** update documents matching filter */
468
+ updateByFilter?: UpdateByFilterOperation;
469
+ /** update only existing documents */
470
+ updateExisting?: UpdateExistingOperation;
471
+ /** application which owns documents */
472
+ appDefId?: string | null;
473
+ /** type of the documents */
474
+ documentType?: string | null;
475
+ /** language of the documents */
476
+ language?: string | null;
477
+ /** site documents belong to */
478
+ msId?: string | null;
479
+ }
480
+ /** @oneof */
481
+ interface UpdateDocumentsEventOperationOneOf {
482
+ /** insert/update documents */
483
+ update?: DocumentUpdateOperation;
484
+ /** delete by document ids */
485
+ deleteByIds?: V1DeleteByIdsOperation;
486
+ /** delete documents matching filter */
487
+ deleteByFilter?: V1DeleteByFilterOperation;
488
+ /** update documents matching filter */
489
+ updateByFilter?: UpdateByFilterOperation;
490
+ /** update only existing documents */
491
+ updateExisting?: UpdateExistingOperation;
492
+ }
493
+ interface DocumentUpdateOperation {
494
+ /** documents to index or update */
495
+ documents?: IndexDocument[];
496
+ }
497
+ interface IndexDocument {
498
+ /** data bag with non-searchable fields (url, image) */
499
+ payload?: DocumentPayload;
500
+ /** what type of users should documents be visible to */
501
+ exposure?: Enum;
502
+ /** document with mandatory fields (id, title, description) and with fields specific to the type of the document */
503
+ document?: Record<string, any> | null;
504
+ /** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */
505
+ permittedMemberGroups?: string[];
506
+ /** if true SEO is disabled for this document */
507
+ seoHidden?: boolean | null;
508
+ /** if true the page is a lightbox popup */
509
+ isPopup?: boolean | null;
510
+ }
511
+ interface DocumentPayload {
512
+ /** url of the page representing the document */
513
+ url?: string | null;
514
+ /** image which represents the document */
515
+ documentImage?: DocumentImage;
516
+ }
517
+ interface DocumentImage {
518
+ /** the name of the image */
519
+ name?: string;
520
+ /** the width of the image */
521
+ width?: number;
522
+ /** the height of the image */
523
+ height?: number;
524
+ }
525
+ declare enum Enum {
526
+ /** Default value. Means that permission not set */
527
+ UNKNOWN = "UNKNOWN",
528
+ /** Protected exposure. Exposed to members and owners */
529
+ PROTECTED = "PROTECTED",
530
+ /** Private exposure. Exposed to owners */
531
+ PRIVATE = "PRIVATE",
532
+ /** Public exposure. Visible to everyone */
533
+ PUBLIC = "PUBLIC",
534
+ /** Used for partial updates, to state that exposure is not changing */
535
+ UNCHANGED = "UNCHANGED",
536
+ /** Protected to members of permitted groups and owners */
537
+ GROUP_PROTECTED = "GROUP_PROTECTED"
538
+ }
539
+ interface V1DeleteByIdsOperation {
540
+ /** ids of the documents to delete */
541
+ documentIds?: string[];
542
+ }
543
+ interface V1DeleteByFilterOperation {
544
+ /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */
545
+ filter?: Record<string, any> | null;
546
+ }
547
+ interface UpdateByFilterOperation {
548
+ /** documents matching this filter will be updated */
549
+ filter?: Record<string, any> | null;
550
+ /** partial document to apply */
551
+ document?: IndexDocument;
552
+ }
553
+ interface UpdateExistingOperation {
554
+ /** documents to update */
555
+ documents?: IndexDocument[];
556
+ }
557
+ interface Empty {
558
+ }
559
+ interface MessageEnvelope {
560
+ /** App instance ID. */
561
+ instanceId?: string | null;
562
+ /** Event type. */
563
+ eventType?: string;
564
+ /** The identification type and identity data. */
565
+ identity?: IdentificationData;
566
+ /** Stringify payload. */
567
+ data?: string;
568
+ }
569
+ interface IdentificationData extends IdentificationDataIdOneOf {
570
+ /** ID of a site visitor that has not logged in to the site. */
571
+ anonymousVisitorId?: string;
572
+ /** ID of a site visitor that has logged in to the site. */
573
+ memberId?: string;
574
+ /** ID of a Wix user (site owner, contributor, etc.). */
575
+ wixUserId?: string;
576
+ /** ID of an app. */
577
+ appId?: string;
578
+ /** @readonly */
579
+ identityType?: WebhookIdentityType;
580
+ }
581
+ /** @oneof */
582
+ interface IdentificationDataIdOneOf {
583
+ /** ID of a site visitor that has not logged in to the site. */
584
+ anonymousVisitorId?: string;
585
+ /** ID of a site visitor that has logged in to the site. */
586
+ memberId?: string;
587
+ /** ID of a Wix user (site owner, contributor, etc.). */
588
+ wixUserId?: string;
589
+ /** ID of an app. */
590
+ appId?: string;
591
+ }
592
+ declare enum WebhookIdentityType {
593
+ UNKNOWN = "UNKNOWN",
594
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
595
+ MEMBER = "MEMBER",
596
+ WIX_USER = "WIX_USER",
597
+ APP = "APP"
598
+ }
599
+ interface SearchRequest {
600
+ /** Text to search for. All searchable fields will be searched. */
601
+ query?: string | null;
602
+ /** Document type of documents to search for. All document types are searched if not provided. */
603
+ documentType?: string | null;
604
+ /** Fields to order by. */
605
+ ordering?: OrderingClauses;
606
+ /** Paging parameters. */
607
+ paging?: SearchPaging;
608
+ /** Language to search in. */
609
+ language?: string | null;
610
+ /** Filter in platformized query language (for example {'field': {'$eq': 'value'}}) */
611
+ filter?: Record<string, any> | null;
612
+ /** The facets to retrieve. */
613
+ facets?: FacetClauses;
614
+ /** Enable fuzzy search (eg. query 'kalvin clein' will match document with 'calvin klein' in title). */
615
+ fuzzy?: boolean | null;
616
+ /** Highlight texts matching the query. Highlighted text will be wrapped with <mark/> tag. Defaults to true if not provided. */
617
+ highlight?: boolean | null;
618
+ /** Searchable fields to search in. If not provided, search is executed on all searchable fields in schema */
619
+ searchFields?: string[];
620
+ /** A list of fields to include in the result set. If not provided, all fields of schema will be included. */
621
+ fields?: string[];
622
+ /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`. */
623
+ properties?: SearchProperty[];
624
+ /** Include seo hidden documents. Defaults to false if not provided. */
625
+ includeSeoHidden?: boolean | null;
626
+ }
627
+ interface OrderingClauses {
628
+ ordering?: OrderingClause[];
629
+ }
630
+ interface OrderingClause {
631
+ fieldName?: string | null;
632
+ direction?: Direction;
633
+ }
634
+ declare enum Direction {
635
+ UninitializedDirection = "UninitializedDirection",
636
+ ASC = "ASC",
637
+ DESC = "DESC"
638
+ }
639
+ interface SearchPaging {
640
+ /**
641
+ * Number of items to skip in the result set.
642
+ * @deprecated
643
+ */
644
+ skip?: number;
645
+ /** Number of items to fetch (effectively page size). */
646
+ limit?: number;
647
+ /** Number of items to skip in the result set. */
648
+ offset?: number;
649
+ }
650
+ interface FacetClauses {
651
+ /** Each entry represents a single facet with parameters. */
652
+ clauses?: FacetClause[];
653
+ }
654
+ interface FacetClause extends FacetClauseClauseOneOf {
655
+ term?: TermFacet;
656
+ aggregation?: AggregationFacet;
657
+ hierarchical?: HierarchicalFacet;
658
+ }
659
+ /** @oneof */
660
+ interface FacetClauseClauseOneOf {
661
+ term?: TermFacet;
662
+ aggregation?: AggregationFacet;
663
+ hierarchical?: HierarchicalFacet;
664
+ }
665
+ declare enum Aggregation {
666
+ MIN = "MIN",
667
+ MAX = "MAX",
668
+ SUM = "SUM"
669
+ }
670
+ interface HierarchicalFacet extends HierarchicalFacetClauseOneOf {
671
+ term?: TermFacet;
672
+ aggregation?: AggregationFacet;
673
+ nestedAggregation?: HierarchicalFacet;
674
+ }
675
+ /** @oneof */
676
+ interface HierarchicalFacetClauseOneOf {
677
+ term?: TermFacet;
678
+ aggregation?: AggregationFacet;
679
+ }
680
+ interface TermFacet {
681
+ /** The name of the faceted attribute. */
682
+ name?: string;
683
+ /** Limit the number of facet values returned. Default is 10. */
684
+ limit?: number | null;
685
+ }
686
+ interface AggregationFacet {
687
+ /** The name of the faceted attribute. */
688
+ name?: string;
689
+ /** Aggregation type. */
690
+ aggregation?: Aggregation;
691
+ }
692
+ interface SearchProperty {
693
+ name?: string;
694
+ value?: any;
695
+ }
696
+ interface SearchResponse {
697
+ /** Documents matching filter and query. */
698
+ documents?: Record<string, any>[] | null;
699
+ nextPage?: NextPageResponse;
700
+ /**
701
+ * Facets provide "counts in categories" view. For example searching for "Nike" would return
702
+ * (Shoes, 5), (Socks, 2) indicating numbers for matching by each faceted field.
703
+ */
704
+ facets?: FacetsResponse[];
705
+ }
706
+ interface NextPageResponse {
707
+ /** Total number of items across all pages */
708
+ total?: number;
709
+ /** The number of items to skip */
710
+ skip?: number;
711
+ /** The number of items to retrieve in one page */
712
+ limit?: number;
713
+ }
714
+ interface FacetsResponse extends FacetsResponseResponseOneOf {
715
+ terms?: TermAggregationResponse;
716
+ minAggregation?: MinAggregationResponse;
717
+ maxAggregation?: MaxAggregationResponse;
718
+ minMaxAggregation?: MinMaxAggregationResponse;
719
+ hierarchicalAggregation?: HierarchicalAggregationResponse;
720
+ sumAggregation?: SumAggregationResponse;
721
+ }
722
+ /** @oneof */
723
+ interface FacetsResponseResponseOneOf {
724
+ terms?: TermAggregationResponse;
725
+ minAggregation?: MinAggregationResponse;
726
+ maxAggregation?: MaxAggregationResponse;
727
+ minMaxAggregation?: MinMaxAggregationResponse;
728
+ hierarchicalAggregation?: HierarchicalAggregationResponse;
729
+ sumAggregation?: SumAggregationResponse;
730
+ }
731
+ interface FacetCountResponse {
732
+ /** Facet field value (for example "Shoes", "Socks") */
733
+ facetValue?: string;
734
+ /** Document count within the group */
735
+ count?: number;
736
+ }
737
+ interface Value {
738
+ value?: string;
739
+ facets?: FacetsResponse;
740
+ count?: number;
741
+ }
742
+ interface TermAggregationResponse {
743
+ /** Facet field (for example productCategory) */
744
+ facet?: string;
745
+ /** Facet values and document counts */
746
+ facets?: FacetCountResponse[];
747
+ }
748
+ interface MinAggregationResponse {
749
+ /** Facet field (for example productPrice) */
750
+ facet?: string;
751
+ /** The minimum value across all documents */
752
+ minValue?: number | null;
753
+ }
754
+ interface MaxAggregationResponse {
755
+ /** Facet field (for example productPrice) */
756
+ facet?: string;
757
+ /** The maximum value across all documents */
758
+ maxValue?: number | null;
759
+ }
760
+ interface MinMaxAggregationResponse {
761
+ /** Facet field (for example productPrice) */
762
+ facet?: string;
763
+ /** The minimum value across all documents */
764
+ minValue?: number | null;
765
+ /** The maximum value across all documents */
766
+ maxValue?: number | null;
767
+ }
768
+ interface HierarchicalAggregationResponse {
769
+ facet?: string;
770
+ values?: Value[];
771
+ }
772
+ interface SumAggregationResponse {
773
+ /** Facet field (for example productPrice) */
774
+ facet?: string;
775
+ /** The sum value across all documents */
776
+ value?: number | null;
777
+ }
778
+ interface FederatedSearchRequest {
779
+ /** Query phrase to use. */
780
+ query?: string | null;
781
+ /** Language to search in. */
782
+ language?: string | null;
783
+ /** Limit of documents to return per document type. */
784
+ limit?: number | null;
785
+ /** Enable fuzzy search (for example query 'kalvin clein' will match document with 'calvin klein' in title). */
786
+ fuzzy?: boolean | null;
787
+ /** Highlight texts matching the query. Highlighted text will be wrapped with <mark/> tag. Defaults to true if not provided. */
788
+ highlight?: boolean | null;
789
+ /** Searchable fields to search in. If not provided, search is executed on all searchable fields in schemas */
790
+ searchFields?: string[];
791
+ /** Document types to search in. If not provided, search is executed on all document types enabled for the site */
792
+ documentTypes?: string[];
793
+ /** Include seo hidden documents. Defaults to false if not provided. */
794
+ includeSeoHidden?: boolean | null;
795
+ }
796
+ interface FederatedSearchResponse {
797
+ /** Search results from multiple indexes. */
798
+ results?: FederatedSearchDocuments[];
799
+ }
800
+ interface FederatedSearchDocuments {
801
+ /** Document type of documents */
802
+ documentType?: string | null;
803
+ /** Documents of document type */
804
+ documents?: Record<string, any>[] | null;
805
+ /** Total count of matching documents for document type */
806
+ total?: number;
807
+ }
808
+ interface SuggestRequest {
809
+ /** Text to search for. Fields configured in suggester configuration will be searched. */
810
+ query?: string | null;
811
+ /** Document type of documents to search for. All document types are searched if not provided. */
812
+ documentType?: string | null;
813
+ /** Fields to order by. */
814
+ ordering?: OrderingClauses;
815
+ /** Number of suggested document to return. */
816
+ limit?: number;
817
+ /** Language to search in. */
818
+ language?: string | null;
819
+ /** Filter in platformized query language (for example {'field': {'$eq': 'value'}}) */
820
+ filter?: Record<string, any> | null;
821
+ /** Searchable fields to search in. If not provided, search is executed on all suggestable fields in schema */
822
+ searchFields?: string[];
823
+ /** A list of fields to include in the result set. If not provided, all fields of schema will be included. */
824
+ fields?: string[];
825
+ /** Include seo hidden documents. Defaults to false if not provided. */
826
+ includeSeoHidden?: boolean | null;
827
+ /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`. */
828
+ properties?: SearchProperty[];
829
+ }
830
+ interface SuggestResponse {
831
+ /** Suggested documents. */
832
+ documents?: Record<string, any>[] | null;
833
+ }
834
+ interface FederatedSuggestRequest {
835
+ /** Text to search for. Fields configured in suggester configuration will be searched. */
836
+ query?: string | null;
837
+ /** Language to search in. */
838
+ language?: string | null;
839
+ /** Number of suggested document to return per document type. */
840
+ limit?: number;
841
+ /** Searchable fields to search in. If not provided, search is executed on all suggestable fields in schemas */
842
+ searchFields?: string[];
843
+ /** Document types to search in. If not provided, search is executed on all document types enabled for the site */
844
+ documentTypes?: string[];
845
+ /** Include seo hidden documents. Defaults to false if not provided. */
846
+ includeSeoHidden?: boolean | null;
847
+ }
848
+ interface FederatedSuggestResponse {
849
+ /** Suggest results from multiple indexes. */
850
+ results?: FederatedSuggestDocuments[];
851
+ }
852
+ interface FederatedSuggestDocuments {
853
+ /** Document type of documents */
854
+ documentType?: string | null;
855
+ /** Documents of document type */
856
+ documents?: Record<string, any>[] | null;
857
+ }
858
+ interface RelatedRequest {
859
+ /** ID of the document to fetch related documents for. */
860
+ documentId?: string | null;
861
+ /** Document type of the document. */
862
+ documentType?: string | null;
863
+ /** Fields to order by. */
864
+ ordering?: OrderingClauses;
865
+ /** Language to search in. */
866
+ language?: string | null;
867
+ /** Filter in platformized query language (for example {'field': {'$eq': 'value'}}). */
868
+ filter?: Record<string, any> | null;
869
+ /** Searchable fields to compare documents by. If not provided, all searchable fields in schema are used */
870
+ searchFields?: string[];
871
+ /** A list of fields to include in the result set. If not provided, all fields of schema will be included. */
872
+ fields?: string[];
873
+ /** Number of related documents to return */
874
+ limit?: number;
875
+ /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`. */
876
+ properties?: SearchProperty[];
877
+ /** Include seo hidden documents. Defaults to false if not provided. */
878
+ includeSeoHidden?: boolean | null;
879
+ }
880
+ interface RelatedResponse {
881
+ /** Documents matching filter and query. */
882
+ documents?: Record<string, any>[] | null;
883
+ }
884
+ interface AutocompleteRequest {
885
+ /** Query phrase to fetch completions for. */
886
+ query?: string | null;
887
+ /** Document type to use to search for phrases. */
888
+ documentType?: string | null;
889
+ /** Limit of phrases to fetch. */
890
+ limit?: number;
891
+ /** Language to search in. */
892
+ language?: string | null;
893
+ /** Filter in platfromized query language (for example {'field': {'$eq': 'value'}}) */
894
+ filter?: Record<string, any> | null;
895
+ /** Searchable fields to use for query completion. If not provided, all searchable fields in schema are used */
896
+ searchFields?: string[];
897
+ /** Include seo hidden documents. Defaults to false if not provided. */
898
+ includeSeoHidden?: boolean | null;
899
+ }
900
+ interface AutocompleteResponse {
901
+ /** Suggested phrases. */
902
+ values?: AutocompleteResponseValue[];
903
+ }
904
+ interface AutocompleteResponseValue {
905
+ /** Suggested phrase. */
906
+ query?: string;
907
+ }
908
+ interface FederatedAutocompleteRequest {
909
+ /** Query phrase to fetch completions for. */
910
+ query?: string | null;
911
+ /** Language to search in. */
912
+ language?: string | null;
913
+ /** Number of queries to return per document type. */
914
+ limit?: number;
915
+ /** Searchable fields to search in. If not provided, search is executed on all autocompletable fields in schemas */
916
+ searchFields?: string[];
917
+ /** Document types to autocomplete in. If not provided, autocomplete is executed on all document types enabled for the site */
918
+ documentTypes?: string[];
919
+ /** Include seo hidden documents. Defaults to false if not provided. */
920
+ includeSeoHidden?: boolean | null;
921
+ }
922
+ interface FederatedAutocompleteResponse {
923
+ /** Suggested phrases from multiple indexes */
924
+ results?: FederatedAutocompleteResults[];
925
+ }
926
+ interface FederatedAutocompleteResults {
927
+ /** Document type of queries */
928
+ documentType?: string | null;
929
+ /** Suggested phrases */
930
+ values?: AutocompleteResponseValue[];
931
+ }
932
+ interface TrendingRequest {
933
+ documentTypes?: string[];
934
+ language?: string | null;
935
+ /** Include seo hidden documents. Defaults to false if not provided. */
936
+ includeSeoHidden?: boolean | null;
937
+ }
938
+ interface TrendingResponse {
939
+ results?: TrendingItems[];
940
+ }
941
+ interface TrendingItems {
942
+ documentType?: string;
943
+ documents?: Record<string, any>[] | null;
944
+ }
945
+ interface SearchResponseNonNullableFields {
946
+ nextPage?: {
947
+ total: number;
948
+ skip: number;
949
+ limit: number;
950
+ };
951
+ facets: {
952
+ terms?: {
953
+ facet: string;
954
+ facets: {
955
+ facetValue: string;
956
+ count: number;
957
+ }[];
958
+ };
959
+ minAggregation?: {
960
+ facet: string;
961
+ };
962
+ maxAggregation?: {
963
+ facet: string;
964
+ };
965
+ minMaxAggregation?: {
966
+ facet: string;
967
+ };
968
+ hierarchicalAggregation?: {
969
+ facet: string;
970
+ values: {
971
+ value: string;
972
+ count: number;
973
+ }[];
974
+ };
975
+ sumAggregation?: {
976
+ facet: string;
977
+ };
978
+ }[];
979
+ }
980
+ interface SearchOptions {
981
+ /** Text to search for. All searchable fields will be searched. */
982
+ query?: string | null;
983
+ /** Document type of documents to search for. All document types are searched if not provided. */
984
+ documentType?: string | null;
985
+ /** Fields to order by. */
986
+ ordering?: OrderingClauses;
987
+ /** Paging parameters. */
988
+ paging?: SearchPaging;
989
+ /** Language to search in. */
990
+ language?: string | null;
991
+ /** Filter in platformized query language (for example {'field': {'$eq': 'value'}}) */
992
+ filter?: Record<string, any> | null;
993
+ /** The facets to retrieve. */
994
+ facets?: FacetClauses;
995
+ /** Enable fuzzy search (eg. query 'kalvin clein' will match document with 'calvin klein' in title). */
996
+ fuzzy?: boolean | null;
997
+ /** Highlight texts matching the query. Highlighted text will be wrapped with <mark/> tag. Defaults to true if not provided. */
998
+ highlight?: boolean | null;
999
+ /** Searchable fields to search in. If not provided, search is executed on all searchable fields in schema */
1000
+ searchFields?: string[];
1001
+ /** A list of fields to include in the result set. If not provided, all fields of schema will be included. */
1002
+ fields?: string[];
1003
+ /** The properties/overrides/experiments to enable for this request. Currently supported: `scoring_profile`. */
1004
+ properties?: SearchProperty[];
1005
+ /** Include seo hidden documents. Defaults to false if not provided. */
1006
+ includeSeoHidden?: boolean | null;
1007
+ }
1008
+
1009
+ declare const __metadata: {
1010
+ PACKAGE_NAME: string;
1011
+ };
1012
+ declare function search(httpClient: HttpClient): (options?: SearchOptions) => Promise<SearchResponse & SearchResponseNonNullableFields>;
1013
+
1014
+ type index_d_Aggregation = Aggregation;
1015
+ declare const index_d_Aggregation: typeof Aggregation;
1016
+ type index_d_AggregationFacet = AggregationFacet;
1017
+ type index_d_AutocompleteRequest = AutocompleteRequest;
1018
+ type index_d_AutocompleteResponse = AutocompleteResponse;
1019
+ type index_d_AutocompleteResponseValue = AutocompleteResponseValue;
1020
+ type index_d_DeleteByFilterOperation = DeleteByFilterOperation;
1021
+ type index_d_DeleteByIdsOperation = DeleteByIdsOperation;
1022
+ type index_d_Direction = Direction;
1023
+ declare const index_d_Direction: typeof Direction;
1024
+ type index_d_DocumentImage = DocumentImage;
1025
+ type index_d_DocumentPayload = DocumentPayload;
1026
+ type index_d_DocumentUpdateOperation = DocumentUpdateOperation;
1027
+ type index_d_Empty = Empty;
1028
+ type index_d_Enum = Enum;
1029
+ declare const index_d_Enum: typeof Enum;
1030
+ type index_d_FacetClause = FacetClause;
1031
+ type index_d_FacetClauseClauseOneOf = FacetClauseClauseOneOf;
1032
+ type index_d_FacetClauses = FacetClauses;
1033
+ type index_d_FacetCountResponse = FacetCountResponse;
1034
+ type index_d_FacetsResponse = FacetsResponse;
1035
+ type index_d_FacetsResponseResponseOneOf = FacetsResponseResponseOneOf;
1036
+ type index_d_FederatedAutocompleteRequest = FederatedAutocompleteRequest;
1037
+ type index_d_FederatedAutocompleteResponse = FederatedAutocompleteResponse;
1038
+ type index_d_FederatedAutocompleteResults = FederatedAutocompleteResults;
1039
+ type index_d_FederatedSearchDocuments = FederatedSearchDocuments;
1040
+ type index_d_FederatedSearchRequest = FederatedSearchRequest;
1041
+ type index_d_FederatedSearchResponse = FederatedSearchResponse;
1042
+ type index_d_FederatedSuggestDocuments = FederatedSuggestDocuments;
1043
+ type index_d_FederatedSuggestRequest = FederatedSuggestRequest;
1044
+ type index_d_FederatedSuggestResponse = FederatedSuggestResponse;
1045
+ type index_d_HierarchicalAggregationResponse = HierarchicalAggregationResponse;
1046
+ type index_d_HierarchicalFacet = HierarchicalFacet;
1047
+ type index_d_HierarchicalFacetClauseOneOf = HierarchicalFacetClauseOneOf;
1048
+ type index_d_IdentificationData = IdentificationData;
1049
+ type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
1050
+ type index_d_IndexDocument = IndexDocument;
1051
+ type index_d_InternalDocument = InternalDocument;
1052
+ type index_d_InternalDocumentUpdateByFilterOperation = InternalDocumentUpdateByFilterOperation;
1053
+ type index_d_InternalDocumentUpdateOperation = InternalDocumentUpdateOperation;
1054
+ type index_d_InternalUpdateExistingOperation = InternalUpdateExistingOperation;
1055
+ type index_d_MaxAggregationResponse = MaxAggregationResponse;
1056
+ type index_d_MessageEnvelope = MessageEnvelope;
1057
+ type index_d_MinAggregationResponse = MinAggregationResponse;
1058
+ type index_d_MinMaxAggregationResponse = MinMaxAggregationResponse;
1059
+ type index_d_NextPageResponse = NextPageResponse;
1060
+ type index_d_OrderingClause = OrderingClause;
1061
+ type index_d_OrderingClauses = OrderingClauses;
1062
+ type index_d_RelatedRequest = RelatedRequest;
1063
+ type index_d_RelatedResponse = RelatedResponse;
1064
+ type index_d_SearchOptions = SearchOptions;
1065
+ type index_d_SearchPaging = SearchPaging;
1066
+ type index_d_SearchProperty = SearchProperty;
1067
+ type index_d_SearchRequest = SearchRequest;
1068
+ type index_d_SearchResponse = SearchResponse;
1069
+ type index_d_SearchResponseNonNullableFields = SearchResponseNonNullableFields;
1070
+ type index_d_SiteDocument = SiteDocument;
1071
+ type index_d_SuggestRequest = SuggestRequest;
1072
+ type index_d_SuggestResponse = SuggestResponse;
1073
+ type index_d_SumAggregationResponse = SumAggregationResponse;
1074
+ type index_d_TermAggregationResponse = TermAggregationResponse;
1075
+ type index_d_TermFacet = TermFacet;
1076
+ type index_d_TrendingItems = TrendingItems;
1077
+ type index_d_TrendingRequest = TrendingRequest;
1078
+ type index_d_TrendingResponse = TrendingResponse;
1079
+ type index_d_UpdateByFilterOperation = UpdateByFilterOperation;
1080
+ type index_d_UpdateDocumentsEvent = UpdateDocumentsEvent;
1081
+ type index_d_UpdateDocumentsEventOperationOneOf = UpdateDocumentsEventOperationOneOf;
1082
+ type index_d_UpdateExistingOperation = UpdateExistingOperation;
1083
+ type index_d_UpdateInternalDocumentsEvent = UpdateInternalDocumentsEvent;
1084
+ type index_d_UpdateInternalDocumentsEventOperationOneOf = UpdateInternalDocumentsEventOperationOneOf;
1085
+ type index_d_V1DeleteByFilterOperation = V1DeleteByFilterOperation;
1086
+ type index_d_V1DeleteByIdsOperation = V1DeleteByIdsOperation;
1087
+ type index_d_Value = Value;
1088
+ type index_d_VersionedDeleteByIdsOperation = VersionedDeleteByIdsOperation;
1089
+ type index_d_VersionedDocumentId = VersionedDocumentId;
1090
+ type index_d_VersionedDocumentUpdateOperation = VersionedDocumentUpdateOperation;
1091
+ type index_d_VersioningMode = VersioningMode;
1092
+ declare const index_d_VersioningMode: typeof VersioningMode;
1093
+ type index_d_WebhookIdentityType = WebhookIdentityType;
1094
+ declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
1095
+ declare const index_d___metadata: typeof __metadata;
1096
+ declare const index_d_search: typeof search;
1097
+ declare namespace index_d {
1098
+ export { index_d_Aggregation as Aggregation, type index_d_AggregationFacet as AggregationFacet, type index_d_AutocompleteRequest as AutocompleteRequest, type index_d_AutocompleteResponse as AutocompleteResponse, type index_d_AutocompleteResponseValue as AutocompleteResponseValue, type index_d_DeleteByFilterOperation as DeleteByFilterOperation, type index_d_DeleteByIdsOperation as DeleteByIdsOperation, index_d_Direction as Direction, type index_d_DocumentImage as DocumentImage, type index_d_DocumentPayload as DocumentPayload, type index_d_DocumentUpdateOperation as DocumentUpdateOperation, type index_d_Empty as Empty, index_d_Enum as Enum, type index_d_FacetClause as FacetClause, type index_d_FacetClauseClauseOneOf as FacetClauseClauseOneOf, type index_d_FacetClauses as FacetClauses, type index_d_FacetCountResponse as FacetCountResponse, type index_d_FacetsResponse as FacetsResponse, type index_d_FacetsResponseResponseOneOf as FacetsResponseResponseOneOf, type index_d_FederatedAutocompleteRequest as FederatedAutocompleteRequest, type index_d_FederatedAutocompleteResponse as FederatedAutocompleteResponse, type index_d_FederatedAutocompleteResults as FederatedAutocompleteResults, type index_d_FederatedSearchDocuments as FederatedSearchDocuments, type index_d_FederatedSearchRequest as FederatedSearchRequest, type index_d_FederatedSearchResponse as FederatedSearchResponse, type index_d_FederatedSuggestDocuments as FederatedSuggestDocuments, type index_d_FederatedSuggestRequest as FederatedSuggestRequest, type index_d_FederatedSuggestResponse as FederatedSuggestResponse, type index_d_HierarchicalAggregationResponse as HierarchicalAggregationResponse, type index_d_HierarchicalFacet as HierarchicalFacet, type index_d_HierarchicalFacetClauseOneOf as HierarchicalFacetClauseOneOf, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_IndexDocument as IndexDocument, type index_d_InternalDocument as InternalDocument, type index_d_InternalDocumentUpdateByFilterOperation as InternalDocumentUpdateByFilterOperation, type index_d_InternalDocumentUpdateOperation as InternalDocumentUpdateOperation, type index_d_InternalUpdateExistingOperation as InternalUpdateExistingOperation, type index_d_MaxAggregationResponse as MaxAggregationResponse, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MinAggregationResponse as MinAggregationResponse, type index_d_MinMaxAggregationResponse as MinMaxAggregationResponse, type index_d_NextPageResponse as NextPageResponse, type index_d_OrderingClause as OrderingClause, type index_d_OrderingClauses as OrderingClauses, type index_d_RelatedRequest as RelatedRequest, type index_d_RelatedResponse as RelatedResponse, type index_d_SearchOptions as SearchOptions, type index_d_SearchPaging as SearchPaging, type index_d_SearchProperty as SearchProperty, type index_d_SearchRequest as SearchRequest, type index_d_SearchResponse as SearchResponse, type index_d_SearchResponseNonNullableFields as SearchResponseNonNullableFields, type index_d_SiteDocument as SiteDocument, type index_d_SuggestRequest as SuggestRequest, type index_d_SuggestResponse as SuggestResponse, type index_d_SumAggregationResponse as SumAggregationResponse, type index_d_TermAggregationResponse as TermAggregationResponse, type index_d_TermFacet as TermFacet, type index_d_TrendingItems as TrendingItems, type index_d_TrendingRequest as TrendingRequest, type index_d_TrendingResponse as TrendingResponse, type index_d_UpdateByFilterOperation as UpdateByFilterOperation, type index_d_UpdateDocumentsEvent as UpdateDocumentsEvent, type index_d_UpdateDocumentsEventOperationOneOf as UpdateDocumentsEventOperationOneOf, type index_d_UpdateExistingOperation as UpdateExistingOperation, type index_d_UpdateInternalDocumentsEvent as UpdateInternalDocumentsEvent, type index_d_UpdateInternalDocumentsEventOperationOneOf as UpdateInternalDocumentsEventOperationOneOf, type index_d_V1DeleteByFilterOperation as V1DeleteByFilterOperation, type index_d_V1DeleteByIdsOperation as V1DeleteByIdsOperation, type index_d_Value as Value, type index_d_VersionedDeleteByIdsOperation as VersionedDeleteByIdsOperation, type index_d_VersionedDocumentId as VersionedDocumentId, type index_d_VersionedDocumentUpdateOperation as VersionedDocumentUpdateOperation, index_d_VersioningMode as VersioningMode, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_search as search };
1099
+ }
1100
+
1101
+ export { index_d as siteSearch, index_d$1 as wixSiteSearch };