@algolia/client-analytics 5.0.0-alpha.53 → 5.0.0-alpha.54

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.
Files changed (53) hide show
  1. package/dist/builds/browser.d.ts +5 -5
  2. package/dist/builds/node.d.ts +5 -5
  3. package/dist/client-analytics.cjs.js +922 -922
  4. package/dist/client-analytics.esm.browser.js +1046 -1046
  5. package/dist/client-analytics.esm.node.js +922 -922
  6. package/dist/client-analytics.umd.js +2 -2
  7. package/dist/model/averageClickEvent.d.ts +14 -14
  8. package/dist/model/clickPosition.d.ts +10 -10
  9. package/dist/model/clickThroughRateEvent.d.ts +18 -18
  10. package/dist/model/clientMethodProps.d.ts +507 -507
  11. package/dist/model/conversionRateEvent.d.ts +18 -18
  12. package/dist/model/direction.d.ts +1 -1
  13. package/dist/model/errorBase.d.ts +6 -6
  14. package/dist/model/getAverageClickPositionResponse.d.ts +15 -15
  15. package/dist/model/getClickPositionsResponse.d.ts +7 -7
  16. package/dist/model/getClickThroughRateResponse.d.ts +19 -19
  17. package/dist/model/getConversationRateResponse.d.ts +19 -19
  18. package/dist/model/getNoClickRateResponse.d.ts +19 -19
  19. package/dist/model/getNoResultsRateResponse.d.ts +19 -19
  20. package/dist/model/getSearchesCountResponse.d.ts +11 -11
  21. package/dist/model/getSearchesNoClicksResponse.d.ts +7 -7
  22. package/dist/model/getSearchesNoResultsResponse.d.ts +7 -7
  23. package/dist/model/getStatusResponse.d.ts +6 -6
  24. package/dist/model/getTopCountriesResponse.d.ts +7 -7
  25. package/dist/model/getTopFilterAttribute.d.ts +10 -10
  26. package/dist/model/getTopFilterAttributesResponse.d.ts +7 -7
  27. package/dist/model/getTopFilterForAttribute.d.ts +18 -18
  28. package/dist/model/getTopFilterForAttributeResponse.d.ts +7 -7
  29. package/dist/model/getTopFiltersNoResultsResponse.d.ts +7 -7
  30. package/dist/model/getTopFiltersNoResultsValue.d.ts +14 -14
  31. package/dist/model/getTopFiltersNoResultsValues.d.ts +11 -11
  32. package/dist/model/getTopHitsResponse.d.ts +3 -3
  33. package/dist/model/getTopSearchesResponse.d.ts +3 -3
  34. package/dist/model/getUsersCountResponse.d.ts +11 -11
  35. package/dist/model/index.d.ts +44 -44
  36. package/dist/model/noClickRateEvent.d.ts +18 -18
  37. package/dist/model/noResultsRateEvent.d.ts +18 -18
  38. package/dist/model/orderBy.d.ts +1 -1
  39. package/dist/model/searchEvent.d.ts +10 -10
  40. package/dist/model/searchNoClickEvent.d.ts +14 -14
  41. package/dist/model/searchNoResultEvent.d.ts +14 -14
  42. package/dist/model/topCountry.d.ts +10 -10
  43. package/dist/model/topHit.d.ts +10 -10
  44. package/dist/model/topHitWithAnalytics.d.ts +30 -30
  45. package/dist/model/topHitsResponse.d.ts +7 -7
  46. package/dist/model/topHitsResponseWithAnalytics.d.ts +7 -7
  47. package/dist/model/topSearch.d.ts +14 -14
  48. package/dist/model/topSearchWithAnalytics.d.ts +38 -38
  49. package/dist/model/topSearchesResponse.d.ts +7 -7
  50. package/dist/model/topSearchesResponseWithAnalytics.d.ts +7 -7
  51. package/dist/model/userWithDate.d.ts +10 -10
  52. package/dist/src/analyticsClient.d.ts +318 -318
  53. package/package.json +6 -6
@@ -1,508 +1,508 @@
1
- import type { Direction } from './direction';
2
- import type { OrderBy } from './orderBy';
3
- /**
4
- * Properties for the `del` method.
5
- */
6
- export type DelProps = {
7
- /**
8
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
9
- */
10
- path: string;
11
- /**
12
- * Query parameters to be applied to the current query.
13
- */
14
- parameters?: Record<string, any>;
15
- };
16
- /**
17
- * Properties for the `get` method.
18
- */
19
- export type GetProps = {
20
- /**
21
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
22
- */
23
- path: string;
24
- /**
25
- * Query parameters to be applied to the current query.
26
- */
27
- parameters?: Record<string, any>;
28
- };
29
- /**
30
- * Properties for the `getAverageClickPosition` method.
31
- */
32
- export type GetAverageClickPositionProps = {
33
- /**
34
- * The index name to target.
35
- */
36
- index: string;
37
- /**
38
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
39
- */
40
- startDate?: string;
41
- /**
42
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
43
- */
44
- endDate?: string;
45
- /**
46
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
47
- */
48
- tags?: string;
49
- };
50
- /**
51
- * Properties for the `getClickPositions` method.
52
- */
53
- export type GetClickPositionsProps = {
54
- /**
55
- * The index name to target.
56
- */
57
- index: string;
58
- /**
59
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
60
- */
61
- startDate?: string;
62
- /**
63
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
64
- */
65
- endDate?: string;
66
- /**
67
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
68
- */
69
- tags?: string;
70
- };
71
- /**
72
- * Properties for the `getClickThroughRate` method.
73
- */
74
- export type GetClickThroughRateProps = {
75
- /**
76
- * The index name to target.
77
- */
78
- index: string;
79
- /**
80
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
81
- */
82
- startDate?: string;
83
- /**
84
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
85
- */
86
- endDate?: string;
87
- /**
88
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
89
- */
90
- tags?: string;
91
- };
92
- /**
93
- * Properties for the `getConversationRate` method.
94
- */
95
- export type GetConversationRateProps = {
96
- /**
97
- * The index name to target.
98
- */
99
- index: string;
100
- /**
101
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
102
- */
103
- startDate?: string;
104
- /**
105
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
106
- */
107
- endDate?: string;
108
- /**
109
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
110
- */
111
- tags?: string;
112
- };
113
- /**
114
- * Properties for the `getNoClickRate` method.
115
- */
116
- export type GetNoClickRateProps = {
117
- /**
118
- * The index name to target.
119
- */
120
- index: string;
121
- /**
122
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
123
- */
124
- startDate?: string;
125
- /**
126
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
127
- */
128
- endDate?: string;
129
- /**
130
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
131
- */
132
- tags?: string;
133
- };
134
- /**
135
- * Properties for the `getNoResultsRate` method.
136
- */
137
- export type GetNoResultsRateProps = {
138
- /**
139
- * The index name to target.
140
- */
141
- index: string;
142
- /**
143
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
144
- */
145
- startDate?: string;
146
- /**
147
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
148
- */
149
- endDate?: string;
150
- /**
151
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
152
- */
153
- tags?: string;
154
- };
155
- /**
156
- * Properties for the `getSearchesCount` method.
157
- */
158
- export type GetSearchesCountProps = {
159
- /**
160
- * The index name to target.
161
- */
162
- index: string;
163
- /**
164
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
165
- */
166
- startDate?: string;
167
- /**
168
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
169
- */
170
- endDate?: string;
171
- /**
172
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
173
- */
174
- tags?: string;
175
- };
176
- /**
177
- * Properties for the `getSearchesNoClicks` method.
178
- */
179
- export type GetSearchesNoClicksProps = {
180
- /**
181
- * The index name to target.
182
- */
183
- index: string;
184
- /**
185
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
186
- */
187
- startDate?: string;
188
- /**
189
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
190
- */
191
- endDate?: string;
192
- /**
193
- * Number of records to return. Limit is the size of the page.
194
- */
195
- limit?: number;
196
- /**
197
- * Position of the starting record. Used for paging. 0 is the first record.
198
- */
199
- offset?: number;
200
- /**
201
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
202
- */
203
- tags?: string;
204
- };
205
- /**
206
- * Properties for the `getSearchesNoResults` method.
207
- */
208
- export type GetSearchesNoResultsProps = {
209
- /**
210
- * The index name to target.
211
- */
212
- index: string;
213
- /**
214
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
215
- */
216
- startDate?: string;
217
- /**
218
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
219
- */
220
- endDate?: string;
221
- /**
222
- * Number of records to return. Limit is the size of the page.
223
- */
224
- limit?: number;
225
- /**
226
- * Position of the starting record. Used for paging. 0 is the first record.
227
- */
228
- offset?: number;
229
- /**
230
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
231
- */
232
- tags?: string;
233
- };
234
- /**
235
- * Properties for the `getStatus` method.
236
- */
237
- export type GetStatusProps = {
238
- /**
239
- * The index name to target.
240
- */
241
- index: string;
242
- };
243
- /**
244
- * Properties for the `getTopCountries` method.
245
- */
246
- export type GetTopCountriesProps = {
247
- /**
248
- * The index name to target.
249
- */
250
- index: string;
251
- /**
252
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
253
- */
254
- startDate?: string;
255
- /**
256
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
257
- */
258
- endDate?: string;
259
- /**
260
- * Number of records to return. Limit is the size of the page.
261
- */
262
- limit?: number;
263
- /**
264
- * Position of the starting record. Used for paging. 0 is the first record.
265
- */
266
- offset?: number;
267
- /**
268
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
269
- */
270
- tags?: string;
271
- };
272
- /**
273
- * Properties for the `getTopFilterAttributes` method.
274
- */
275
- export type GetTopFilterAttributesProps = {
276
- /**
277
- * The index name to target.
278
- */
279
- index: string;
280
- /**
281
- * The query term to search for. Must match the exact user input.
282
- */
283
- search?: string;
284
- /**
285
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
286
- */
287
- startDate?: string;
288
- /**
289
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
290
- */
291
- endDate?: string;
292
- /**
293
- * Number of records to return. Limit is the size of the page.
294
- */
295
- limit?: number;
296
- /**
297
- * Position of the starting record. Used for paging. 0 is the first record.
298
- */
299
- offset?: number;
300
- /**
301
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
302
- */
303
- tags?: string;
304
- };
305
- /**
306
- * Properties for the `getTopFilterForAttribute` method.
307
- */
308
- export type GetTopFilterForAttributeProps = {
309
- /**
310
- * The exact name of the attribute.
311
- */
312
- attribute: string;
313
- /**
314
- * The index name to target.
315
- */
316
- index: string;
317
- /**
318
- * The query term to search for. Must match the exact user input.
319
- */
320
- search?: string;
321
- /**
322
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
323
- */
324
- startDate?: string;
325
- /**
326
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
327
- */
328
- endDate?: string;
329
- /**
330
- * Number of records to return. Limit is the size of the page.
331
- */
332
- limit?: number;
333
- /**
334
- * Position of the starting record. Used for paging. 0 is the first record.
335
- */
336
- offset?: number;
337
- /**
338
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
339
- */
340
- tags?: string;
341
- };
342
- /**
343
- * Properties for the `getTopFiltersNoResults` method.
344
- */
345
- export type GetTopFiltersNoResultsProps = {
346
- /**
347
- * The index name to target.
348
- */
349
- index: string;
350
- /**
351
- * The query term to search for. Must match the exact user input.
352
- */
353
- search?: string;
354
- /**
355
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
356
- */
357
- startDate?: string;
358
- /**
359
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
360
- */
361
- endDate?: string;
362
- /**
363
- * Number of records to return. Limit is the size of the page.
364
- */
365
- limit?: number;
366
- /**
367
- * Position of the starting record. Used for paging. 0 is the first record.
368
- */
369
- offset?: number;
370
- /**
371
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
372
- */
373
- tags?: string;
374
- };
375
- /**
376
- * Properties for the `getTopHits` method.
377
- */
378
- export type GetTopHitsProps = {
379
- /**
380
- * The index name to target.
381
- */
382
- index: string;
383
- /**
384
- * The query term to search for. Must match the exact user input.
385
- */
386
- search?: string;
387
- /**
388
- * Whether to include the click-through and conversion rates for a search.
389
- */
390
- clickAnalytics?: boolean;
391
- /**
392
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
393
- */
394
- startDate?: string;
395
- /**
396
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
397
- */
398
- endDate?: string;
399
- /**
400
- * Number of records to return. Limit is the size of the page.
401
- */
402
- limit?: number;
403
- /**
404
- * Position of the starting record. Used for paging. 0 is the first record.
405
- */
406
- offset?: number;
407
- /**
408
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
409
- */
410
- tags?: string;
411
- };
412
- /**
413
- * Properties for the `getTopSearches` method.
414
- */
415
- export type GetTopSearchesProps = {
416
- /**
417
- * The index name to target.
418
- */
419
- index: string;
420
- /**
421
- * Whether to include the click-through and conversion rates for a search.
422
- */
423
- clickAnalytics?: boolean;
424
- /**
425
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
426
- */
427
- startDate?: string;
428
- /**
429
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
430
- */
431
- endDate?: string;
432
- /**
433
- * Reorder the results.
434
- */
435
- orderBy?: OrderBy;
436
- /**
437
- * The sorting of the result.
438
- */
439
- direction?: Direction;
440
- /**
441
- * Number of records to return. Limit is the size of the page.
442
- */
443
- limit?: number;
444
- /**
445
- * Position of the starting record. Used for paging. 0 is the first record.
446
- */
447
- offset?: number;
448
- /**
449
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
450
- */
451
- tags?: string;
452
- };
453
- /**
454
- * Properties for the `getUsersCount` method.
455
- */
456
- export type GetUsersCountProps = {
457
- /**
458
- * The index name to target.
459
- */
460
- index: string;
461
- /**
462
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
463
- */
464
- startDate?: string;
465
- /**
466
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
467
- */
468
- endDate?: string;
469
- /**
470
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
471
- */
472
- tags?: string;
473
- };
474
- /**
475
- * Properties for the `post` method.
476
- */
477
- export type PostProps = {
478
- /**
479
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
480
- */
481
- path: string;
482
- /**
483
- * Query parameters to be applied to the current query.
484
- */
485
- parameters?: Record<string, any>;
486
- /**
487
- * The parameters to send with the custom request.
488
- */
489
- body?: Record<string, any>;
490
- };
491
- /**
492
- * Properties for the `put` method.
493
- */
494
- export type PutProps = {
495
- /**
496
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
497
- */
498
- path: string;
499
- /**
500
- * Query parameters to be applied to the current query.
501
- */
502
- parameters?: Record<string, any>;
503
- /**
504
- * The parameters to send with the custom request.
505
- */
506
- body?: Record<string, any>;
507
- };
1
+ import type { Direction } from './direction';
2
+ import type { OrderBy } from './orderBy';
3
+ /**
4
+ * Properties for the `del` method.
5
+ */
6
+ export type DelProps = {
7
+ /**
8
+ * The path of the API endpoint to target, anything after the /1 needs to be specified.
9
+ */
10
+ path: string;
11
+ /**
12
+ * Query parameters to be applied to the current query.
13
+ */
14
+ parameters?: Record<string, any>;
15
+ };
16
+ /**
17
+ * Properties for the `get` method.
18
+ */
19
+ export type GetProps = {
20
+ /**
21
+ * The path of the API endpoint to target, anything after the /1 needs to be specified.
22
+ */
23
+ path: string;
24
+ /**
25
+ * Query parameters to be applied to the current query.
26
+ */
27
+ parameters?: Record<string, any>;
28
+ };
29
+ /**
30
+ * Properties for the `getAverageClickPosition` method.
31
+ */
32
+ export type GetAverageClickPositionProps = {
33
+ /**
34
+ * The index name to target.
35
+ */
36
+ index: string;
37
+ /**
38
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
39
+ */
40
+ startDate?: string;
41
+ /**
42
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
43
+ */
44
+ endDate?: string;
45
+ /**
46
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
47
+ */
48
+ tags?: string;
49
+ };
50
+ /**
51
+ * Properties for the `getClickPositions` method.
52
+ */
53
+ export type GetClickPositionsProps = {
54
+ /**
55
+ * The index name to target.
56
+ */
57
+ index: string;
58
+ /**
59
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
60
+ */
61
+ startDate?: string;
62
+ /**
63
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
64
+ */
65
+ endDate?: string;
66
+ /**
67
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
68
+ */
69
+ tags?: string;
70
+ };
71
+ /**
72
+ * Properties for the `getClickThroughRate` method.
73
+ */
74
+ export type GetClickThroughRateProps = {
75
+ /**
76
+ * The index name to target.
77
+ */
78
+ index: string;
79
+ /**
80
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
81
+ */
82
+ startDate?: string;
83
+ /**
84
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
85
+ */
86
+ endDate?: string;
87
+ /**
88
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
89
+ */
90
+ tags?: string;
91
+ };
92
+ /**
93
+ * Properties for the `getConversationRate` method.
94
+ */
95
+ export type GetConversationRateProps = {
96
+ /**
97
+ * The index name to target.
98
+ */
99
+ index: string;
100
+ /**
101
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
102
+ */
103
+ startDate?: string;
104
+ /**
105
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
106
+ */
107
+ endDate?: string;
108
+ /**
109
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
110
+ */
111
+ tags?: string;
112
+ };
113
+ /**
114
+ * Properties for the `getNoClickRate` method.
115
+ */
116
+ export type GetNoClickRateProps = {
117
+ /**
118
+ * The index name to target.
119
+ */
120
+ index: string;
121
+ /**
122
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
123
+ */
124
+ startDate?: string;
125
+ /**
126
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
127
+ */
128
+ endDate?: string;
129
+ /**
130
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
131
+ */
132
+ tags?: string;
133
+ };
134
+ /**
135
+ * Properties for the `getNoResultsRate` method.
136
+ */
137
+ export type GetNoResultsRateProps = {
138
+ /**
139
+ * The index name to target.
140
+ */
141
+ index: string;
142
+ /**
143
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
144
+ */
145
+ startDate?: string;
146
+ /**
147
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
148
+ */
149
+ endDate?: string;
150
+ /**
151
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
152
+ */
153
+ tags?: string;
154
+ };
155
+ /**
156
+ * Properties for the `getSearchesCount` method.
157
+ */
158
+ export type GetSearchesCountProps = {
159
+ /**
160
+ * The index name to target.
161
+ */
162
+ index: string;
163
+ /**
164
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
165
+ */
166
+ startDate?: string;
167
+ /**
168
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
169
+ */
170
+ endDate?: string;
171
+ /**
172
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
173
+ */
174
+ tags?: string;
175
+ };
176
+ /**
177
+ * Properties for the `getSearchesNoClicks` method.
178
+ */
179
+ export type GetSearchesNoClicksProps = {
180
+ /**
181
+ * The index name to target.
182
+ */
183
+ index: string;
184
+ /**
185
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
186
+ */
187
+ startDate?: string;
188
+ /**
189
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
190
+ */
191
+ endDate?: string;
192
+ /**
193
+ * Number of records to return. Limit is the size of the page.
194
+ */
195
+ limit?: number;
196
+ /**
197
+ * Position of the starting record. Used for paging. 0 is the first record.
198
+ */
199
+ offset?: number;
200
+ /**
201
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
202
+ */
203
+ tags?: string;
204
+ };
205
+ /**
206
+ * Properties for the `getSearchesNoResults` method.
207
+ */
208
+ export type GetSearchesNoResultsProps = {
209
+ /**
210
+ * The index name to target.
211
+ */
212
+ index: string;
213
+ /**
214
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
215
+ */
216
+ startDate?: string;
217
+ /**
218
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
219
+ */
220
+ endDate?: string;
221
+ /**
222
+ * Number of records to return. Limit is the size of the page.
223
+ */
224
+ limit?: number;
225
+ /**
226
+ * Position of the starting record. Used for paging. 0 is the first record.
227
+ */
228
+ offset?: number;
229
+ /**
230
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
231
+ */
232
+ tags?: string;
233
+ };
234
+ /**
235
+ * Properties for the `getStatus` method.
236
+ */
237
+ export type GetStatusProps = {
238
+ /**
239
+ * The index name to target.
240
+ */
241
+ index: string;
242
+ };
243
+ /**
244
+ * Properties for the `getTopCountries` method.
245
+ */
246
+ export type GetTopCountriesProps = {
247
+ /**
248
+ * The index name to target.
249
+ */
250
+ index: string;
251
+ /**
252
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
253
+ */
254
+ startDate?: string;
255
+ /**
256
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
257
+ */
258
+ endDate?: string;
259
+ /**
260
+ * Number of records to return. Limit is the size of the page.
261
+ */
262
+ limit?: number;
263
+ /**
264
+ * Position of the starting record. Used for paging. 0 is the first record.
265
+ */
266
+ offset?: number;
267
+ /**
268
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
269
+ */
270
+ tags?: string;
271
+ };
272
+ /**
273
+ * Properties for the `getTopFilterAttributes` method.
274
+ */
275
+ export type GetTopFilterAttributesProps = {
276
+ /**
277
+ * The index name to target.
278
+ */
279
+ index: string;
280
+ /**
281
+ * The query term to search for. Must match the exact user input.
282
+ */
283
+ search?: string;
284
+ /**
285
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
286
+ */
287
+ startDate?: string;
288
+ /**
289
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
290
+ */
291
+ endDate?: string;
292
+ /**
293
+ * Number of records to return. Limit is the size of the page.
294
+ */
295
+ limit?: number;
296
+ /**
297
+ * Position of the starting record. Used for paging. 0 is the first record.
298
+ */
299
+ offset?: number;
300
+ /**
301
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
302
+ */
303
+ tags?: string;
304
+ };
305
+ /**
306
+ * Properties for the `getTopFilterForAttribute` method.
307
+ */
308
+ export type GetTopFilterForAttributeProps = {
309
+ /**
310
+ * The exact name of the attribute.
311
+ */
312
+ attribute: string;
313
+ /**
314
+ * The index name to target.
315
+ */
316
+ index: string;
317
+ /**
318
+ * The query term to search for. Must match the exact user input.
319
+ */
320
+ search?: string;
321
+ /**
322
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
323
+ */
324
+ startDate?: string;
325
+ /**
326
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
327
+ */
328
+ endDate?: string;
329
+ /**
330
+ * Number of records to return. Limit is the size of the page.
331
+ */
332
+ limit?: number;
333
+ /**
334
+ * Position of the starting record. Used for paging. 0 is the first record.
335
+ */
336
+ offset?: number;
337
+ /**
338
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
339
+ */
340
+ tags?: string;
341
+ };
342
+ /**
343
+ * Properties for the `getTopFiltersNoResults` method.
344
+ */
345
+ export type GetTopFiltersNoResultsProps = {
346
+ /**
347
+ * The index name to target.
348
+ */
349
+ index: string;
350
+ /**
351
+ * The query term to search for. Must match the exact user input.
352
+ */
353
+ search?: string;
354
+ /**
355
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
356
+ */
357
+ startDate?: string;
358
+ /**
359
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
360
+ */
361
+ endDate?: string;
362
+ /**
363
+ * Number of records to return. Limit is the size of the page.
364
+ */
365
+ limit?: number;
366
+ /**
367
+ * Position of the starting record. Used for paging. 0 is the first record.
368
+ */
369
+ offset?: number;
370
+ /**
371
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
372
+ */
373
+ tags?: string;
374
+ };
375
+ /**
376
+ * Properties for the `getTopHits` method.
377
+ */
378
+ export type GetTopHitsProps = {
379
+ /**
380
+ * The index name to target.
381
+ */
382
+ index: string;
383
+ /**
384
+ * The query term to search for. Must match the exact user input.
385
+ */
386
+ search?: string;
387
+ /**
388
+ * Whether to include the click-through and conversion rates for a search.
389
+ */
390
+ clickAnalytics?: boolean;
391
+ /**
392
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
393
+ */
394
+ startDate?: string;
395
+ /**
396
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
397
+ */
398
+ endDate?: string;
399
+ /**
400
+ * Number of records to return. Limit is the size of the page.
401
+ */
402
+ limit?: number;
403
+ /**
404
+ * Position of the starting record. Used for paging. 0 is the first record.
405
+ */
406
+ offset?: number;
407
+ /**
408
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
409
+ */
410
+ tags?: string;
411
+ };
412
+ /**
413
+ * Properties for the `getTopSearches` method.
414
+ */
415
+ export type GetTopSearchesProps = {
416
+ /**
417
+ * The index name to target.
418
+ */
419
+ index: string;
420
+ /**
421
+ * Whether to include the click-through and conversion rates for a search.
422
+ */
423
+ clickAnalytics?: boolean;
424
+ /**
425
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
426
+ */
427
+ startDate?: string;
428
+ /**
429
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
430
+ */
431
+ endDate?: string;
432
+ /**
433
+ * Reorder the results.
434
+ */
435
+ orderBy?: OrderBy;
436
+ /**
437
+ * The sorting of the result.
438
+ */
439
+ direction?: Direction;
440
+ /**
441
+ * Number of records to return. Limit is the size of the page.
442
+ */
443
+ limit?: number;
444
+ /**
445
+ * Position of the starting record. Used for paging. 0 is the first record.
446
+ */
447
+ offset?: number;
448
+ /**
449
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
450
+ */
451
+ tags?: string;
452
+ };
453
+ /**
454
+ * Properties for the `getUsersCount` method.
455
+ */
456
+ export type GetUsersCountProps = {
457
+ /**
458
+ * The index name to target.
459
+ */
460
+ index: string;
461
+ /**
462
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
463
+ */
464
+ startDate?: string;
465
+ /**
466
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
467
+ */
468
+ endDate?: string;
469
+ /**
470
+ * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
471
+ */
472
+ tags?: string;
473
+ };
474
+ /**
475
+ * Properties for the `post` method.
476
+ */
477
+ export type PostProps = {
478
+ /**
479
+ * The path of the API endpoint to target, anything after the /1 needs to be specified.
480
+ */
481
+ path: string;
482
+ /**
483
+ * Query parameters to be applied to the current query.
484
+ */
485
+ parameters?: Record<string, any>;
486
+ /**
487
+ * The parameters to send with the custom request.
488
+ */
489
+ body?: Record<string, any>;
490
+ };
491
+ /**
492
+ * Properties for the `put` method.
493
+ */
494
+ export type PutProps = {
495
+ /**
496
+ * The path of the API endpoint to target, anything after the /1 needs to be specified.
497
+ */
498
+ path: string;
499
+ /**
500
+ * Query parameters to be applied to the current query.
501
+ */
502
+ parameters?: Record<string, any>;
503
+ /**
504
+ * The parameters to send with the custom request.
505
+ */
506
+ body?: Record<string, any>;
507
+ };
508
508
  //# sourceMappingURL=clientMethodProps.d.ts.map