@algolia/client-analytics 5.0.0-alpha.8 → 5.0.0-alpha.80

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 (146) hide show
  1. package/dist/builds/browser.d.ts +5 -5
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +5 -5
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/{client-analytics.cjs.js → client-analytics.cjs} +922 -924
  6. package/dist/client-analytics.esm.browser.js +1105 -1153
  7. package/dist/client-analytics.esm.node.js +922 -922
  8. package/dist/client-analytics.umd.js +2 -2
  9. package/dist/model/averageClickEvent.d.ts +14 -14
  10. package/dist/model/averageClickEvent.d.ts.map +1 -1
  11. package/dist/model/clickPosition.d.ts +10 -10
  12. package/dist/model/clickPosition.d.ts.map +1 -1
  13. package/dist/model/clickThroughRateEvent.d.ts +18 -18
  14. package/dist/model/clickThroughRateEvent.d.ts.map +1 -1
  15. package/dist/model/clientMethodProps.d.ts +507 -507
  16. package/dist/model/clientMethodProps.d.ts.map +1 -1
  17. package/dist/model/conversionRateEvent.d.ts +18 -18
  18. package/dist/model/conversionRateEvent.d.ts.map +1 -1
  19. package/dist/model/direction.d.ts +1 -1
  20. package/dist/model/direction.d.ts.map +1 -1
  21. package/dist/model/errorBase.d.ts +6 -6
  22. package/dist/model/errorBase.d.ts.map +1 -1
  23. package/dist/model/getAverageClickPositionResponse.d.ts +15 -15
  24. package/dist/model/getAverageClickPositionResponse.d.ts.map +1 -1
  25. package/dist/model/getClickPositionsResponse.d.ts +7 -7
  26. package/dist/model/getClickPositionsResponse.d.ts.map +1 -1
  27. package/dist/model/getClickThroughRateResponse.d.ts +19 -19
  28. package/dist/model/getClickThroughRateResponse.d.ts.map +1 -1
  29. package/dist/model/getConversationRateResponse.d.ts +19 -19
  30. package/dist/model/getConversationRateResponse.d.ts.map +1 -1
  31. package/dist/model/getNoClickRateResponse.d.ts +19 -19
  32. package/dist/model/getNoClickRateResponse.d.ts.map +1 -1
  33. package/dist/model/getNoResultsRateResponse.d.ts +19 -19
  34. package/dist/model/getNoResultsRateResponse.d.ts.map +1 -1
  35. package/dist/model/getSearchesCountResponse.d.ts +11 -11
  36. package/dist/model/getSearchesCountResponse.d.ts.map +1 -1
  37. package/dist/model/getSearchesNoClicksResponse.d.ts +7 -7
  38. package/dist/model/getSearchesNoClicksResponse.d.ts.map +1 -1
  39. package/dist/model/getSearchesNoResultsResponse.d.ts +7 -7
  40. package/dist/model/getSearchesNoResultsResponse.d.ts.map +1 -1
  41. package/dist/model/getStatusResponse.d.ts +6 -6
  42. package/dist/model/getStatusResponse.d.ts.map +1 -1
  43. package/dist/model/getTopCountriesResponse.d.ts +7 -7
  44. package/dist/model/getTopCountriesResponse.d.ts.map +1 -1
  45. package/dist/model/getTopFilterAttribute.d.ts +10 -10
  46. package/dist/model/getTopFilterAttribute.d.ts.map +1 -1
  47. package/dist/model/getTopFilterAttributesResponse.d.ts +7 -7
  48. package/dist/model/getTopFilterAttributesResponse.d.ts.map +1 -1
  49. package/dist/model/getTopFilterForAttribute.d.ts +18 -18
  50. package/dist/model/getTopFilterForAttribute.d.ts.map +1 -1
  51. package/dist/model/getTopFilterForAttributeResponse.d.ts +7 -7
  52. package/dist/model/getTopFilterForAttributeResponse.d.ts.map +1 -1
  53. package/dist/model/getTopFiltersNoResultsResponse.d.ts +7 -7
  54. package/dist/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
  55. package/dist/model/getTopFiltersNoResultsValue.d.ts +14 -14
  56. package/dist/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
  57. package/dist/model/getTopFiltersNoResultsValues.d.ts +11 -11
  58. package/dist/model/getTopFiltersNoResultsValues.d.ts.map +1 -1
  59. package/dist/model/getTopHitsResponse.d.ts +3 -3
  60. package/dist/model/getTopHitsResponse.d.ts.map +1 -1
  61. package/dist/model/getTopSearchesResponse.d.ts +3 -3
  62. package/dist/model/getTopSearchesResponse.d.ts.map +1 -1
  63. package/dist/model/getUsersCountResponse.d.ts +11 -11
  64. package/dist/model/getUsersCountResponse.d.ts.map +1 -1
  65. package/dist/model/index.d.ts +44 -44
  66. package/dist/model/noClickRateEvent.d.ts +18 -18
  67. package/dist/model/noClickRateEvent.d.ts.map +1 -1
  68. package/dist/model/noResultsRateEvent.d.ts +18 -18
  69. package/dist/model/noResultsRateEvent.d.ts.map +1 -1
  70. package/dist/model/orderBy.d.ts +4 -1
  71. package/dist/model/orderBy.d.ts.map +1 -1
  72. package/dist/model/searchEvent.d.ts +10 -10
  73. package/dist/model/searchEvent.d.ts.map +1 -1
  74. package/dist/model/searchNoClickEvent.d.ts +14 -14
  75. package/dist/model/searchNoClickEvent.d.ts.map +1 -1
  76. package/dist/model/searchNoResultEvent.d.ts +14 -14
  77. package/dist/model/searchNoResultEvent.d.ts.map +1 -1
  78. package/dist/model/topCountry.d.ts +10 -10
  79. package/dist/model/topCountry.d.ts.map +1 -1
  80. package/dist/model/topHit.d.ts +10 -10
  81. package/dist/model/topHit.d.ts.map +1 -1
  82. package/dist/model/topHitWithAnalytics.d.ts +30 -30
  83. package/dist/model/topHitWithAnalytics.d.ts.map +1 -1
  84. package/dist/model/topHitsResponse.d.ts +7 -7
  85. package/dist/model/topHitsResponse.d.ts.map +1 -1
  86. package/dist/model/topHitsResponseWithAnalytics.d.ts +7 -7
  87. package/dist/model/topHitsResponseWithAnalytics.d.ts.map +1 -1
  88. package/dist/model/topSearch.d.ts +14 -14
  89. package/dist/model/topSearch.d.ts.map +1 -1
  90. package/dist/model/topSearchWithAnalytics.d.ts +38 -38
  91. package/dist/model/topSearchWithAnalytics.d.ts.map +1 -1
  92. package/dist/model/topSearchesResponse.d.ts +7 -7
  93. package/dist/model/topSearchesResponse.d.ts.map +1 -1
  94. package/dist/model/topSearchesResponseWithAnalytics.d.ts +7 -7
  95. package/dist/model/topSearchesResponseWithAnalytics.d.ts.map +1 -1
  96. package/dist/model/userWithDate.d.ts +10 -10
  97. package/dist/model/userWithDate.d.ts.map +1 -1
  98. package/dist/src/analyticsClient.d.ts +318 -318
  99. package/dist/src/analyticsClient.d.ts.map +1 -1
  100. package/index.js +1 -1
  101. package/model/averageClickEvent.ts +4 -4
  102. package/model/clickPosition.ts +3 -3
  103. package/model/clickThroughRateEvent.ts +5 -5
  104. package/model/clientMethodProps.ts +92 -92
  105. package/model/conversionRateEvent.ts +5 -5
  106. package/model/direction.ts +1 -1
  107. package/model/errorBase.ts +1 -1
  108. package/model/getAverageClickPositionResponse.ts +4 -4
  109. package/model/getClickPositionsResponse.ts +2 -2
  110. package/model/getClickThroughRateResponse.ts +5 -5
  111. package/model/getConversationRateResponse.ts +5 -5
  112. package/model/getNoClickRateResponse.ts +5 -5
  113. package/model/getNoResultsRateResponse.ts +5 -5
  114. package/model/getSearchesCountResponse.ts +3 -3
  115. package/model/getSearchesNoClicksResponse.ts +2 -2
  116. package/model/getSearchesNoResultsResponse.ts +2 -2
  117. package/model/getStatusResponse.ts +2 -2
  118. package/model/getTopCountriesResponse.ts +2 -2
  119. package/model/getTopFilterAttribute.ts +3 -3
  120. package/model/getTopFilterAttributesResponse.ts +2 -2
  121. package/model/getTopFilterForAttribute.ts +5 -5
  122. package/model/getTopFilterForAttributeResponse.ts +2 -2
  123. package/model/getTopFiltersNoResultsResponse.ts +2 -2
  124. package/model/getTopFiltersNoResultsValue.ts +4 -4
  125. package/model/getTopFiltersNoResultsValues.ts +3 -3
  126. package/model/getTopHitsResponse.ts +1 -1
  127. package/model/getTopSearchesResponse.ts +1 -1
  128. package/model/getUsersCountResponse.ts +3 -3
  129. package/model/index.ts +1 -1
  130. package/model/noClickRateEvent.ts +5 -5
  131. package/model/noResultsRateEvent.ts +5 -5
  132. package/model/orderBy.ts +4 -1
  133. package/model/searchEvent.ts +3 -3
  134. package/model/searchNoClickEvent.ts +4 -4
  135. package/model/searchNoResultEvent.ts +4 -4
  136. package/model/topCountry.ts +3 -3
  137. package/model/topHit.ts +3 -3
  138. package/model/topHitWithAnalytics.ts +8 -8
  139. package/model/topHitsResponse.ts +2 -2
  140. package/model/topHitsResponseWithAnalytics.ts +2 -2
  141. package/model/topSearch.ts +4 -4
  142. package/model/topSearchWithAnalytics.ts +10 -10
  143. package/model/topSearchesResponse.ts +2 -2
  144. package/model/topSearchesResponseWithAnalytics.ts +2 -2
  145. package/model/userWithDate.ts +3 -3
  146. package/package.json +30 -13
@@ -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 declare 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 declare 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 declare 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 declare 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 declare 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 declare 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 declare 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 declare 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 declare 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 declare 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 declare 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 declare type GetStatusProps = {
238
- /**
239
- * The index name to target.
240
- */
241
- index: string;
242
- };
243
- /**
244
- * Properties for the `getTopCountries` method.
245
- */
246
- export declare 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 declare 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 declare 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 declare 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 declare 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 declare 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 declare 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 declare 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 declare 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
+ * Path of the endpoint, anything after \"/1\" must be specified.
9
+ */
10
+ path: string;
11
+ /**
12
+ * Query parameters to apply 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
+ * Path of the endpoint, anything after \"/1\" must be specified.
22
+ */
23
+ path: string;
24
+ /**
25
+ * Query parameters to apply 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
+ * Index name to target.
35
+ */
36
+ index: string;
37
+ /**
38
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
39
+ */
40
+ startDate?: string;
41
+ /**
42
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
43
+ */
44
+ endDate?: string;
45
+ /**
46
+ * Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
47
+ */
48
+ tags?: string;
49
+ };
50
+ /**
51
+ * Properties for the `getClickPositions` method.
52
+ */
53
+ export type GetClickPositionsProps = {
54
+ /**
55
+ * Index name to target.
56
+ */
57
+ index: string;
58
+ /**
59
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
60
+ */
61
+ startDate?: string;
62
+ /**
63
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
64
+ */
65
+ endDate?: string;
66
+ /**
67
+ * Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
68
+ */
69
+ tags?: string;
70
+ };
71
+ /**
72
+ * Properties for the `getClickThroughRate` method.
73
+ */
74
+ export type GetClickThroughRateProps = {
75
+ /**
76
+ * Index name to target.
77
+ */
78
+ index: string;
79
+ /**
80
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
81
+ */
82
+ startDate?: string;
83
+ /**
84
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
85
+ */
86
+ endDate?: string;
87
+ /**
88
+ * Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
89
+ */
90
+ tags?: string;
91
+ };
92
+ /**
93
+ * Properties for the `getConversationRate` method.
94
+ */
95
+ export type GetConversationRateProps = {
96
+ /**
97
+ * Index name to target.
98
+ */
99
+ index: string;
100
+ /**
101
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
102
+ */
103
+ startDate?: string;
104
+ /**
105
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
106
+ */
107
+ endDate?: string;
108
+ /**
109
+ * Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
110
+ */
111
+ tags?: string;
112
+ };
113
+ /**
114
+ * Properties for the `getNoClickRate` method.
115
+ */
116
+ export type GetNoClickRateProps = {
117
+ /**
118
+ * Index name to target.
119
+ */
120
+ index: string;
121
+ /**
122
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
123
+ */
124
+ startDate?: string;
125
+ /**
126
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
127
+ */
128
+ endDate?: string;
129
+ /**
130
+ * Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
131
+ */
132
+ tags?: string;
133
+ };
134
+ /**
135
+ * Properties for the `getNoResultsRate` method.
136
+ */
137
+ export type GetNoResultsRateProps = {
138
+ /**
139
+ * Index name to target.
140
+ */
141
+ index: string;
142
+ /**
143
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
144
+ */
145
+ startDate?: string;
146
+ /**
147
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
148
+ */
149
+ endDate?: string;
150
+ /**
151
+ * Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
152
+ */
153
+ tags?: string;
154
+ };
155
+ /**
156
+ * Properties for the `getSearchesCount` method.
157
+ */
158
+ export type GetSearchesCountProps = {
159
+ /**
160
+ * Index name to target.
161
+ */
162
+ index: string;
163
+ /**
164
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
165
+ */
166
+ startDate?: string;
167
+ /**
168
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
169
+ */
170
+ endDate?: string;
171
+ /**
172
+ * Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
173
+ */
174
+ tags?: string;
175
+ };
176
+ /**
177
+ * Properties for the `getSearchesNoClicks` method.
178
+ */
179
+ export type GetSearchesNoClicksProps = {
180
+ /**
181
+ * Index name to target.
182
+ */
183
+ index: string;
184
+ /**
185
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
186
+ */
187
+ startDate?: string;
188
+ /**
189
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
190
+ */
191
+ endDate?: string;
192
+ /**
193
+ * Number of records to return (page size).
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 analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
202
+ */
203
+ tags?: string;
204
+ };
205
+ /**
206
+ * Properties for the `getSearchesNoResults` method.
207
+ */
208
+ export type GetSearchesNoResultsProps = {
209
+ /**
210
+ * Index name to target.
211
+ */
212
+ index: string;
213
+ /**
214
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
215
+ */
216
+ startDate?: string;
217
+ /**
218
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
219
+ */
220
+ endDate?: string;
221
+ /**
222
+ * Number of records to return (page size).
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 analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
231
+ */
232
+ tags?: string;
233
+ };
234
+ /**
235
+ * Properties for the `getStatus` method.
236
+ */
237
+ export type GetStatusProps = {
238
+ /**
239
+ * Index name to target.
240
+ */
241
+ index: string;
242
+ };
243
+ /**
244
+ * Properties for the `getTopCountries` method.
245
+ */
246
+ export type GetTopCountriesProps = {
247
+ /**
248
+ * Index name to target.
249
+ */
250
+ index: string;
251
+ /**
252
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
253
+ */
254
+ startDate?: string;
255
+ /**
256
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
257
+ */
258
+ endDate?: string;
259
+ /**
260
+ * Number of records to return (page size).
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 analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
269
+ */
270
+ tags?: string;
271
+ };
272
+ /**
273
+ * Properties for the `getTopFilterAttributes` method.
274
+ */
275
+ export type GetTopFilterAttributesProps = {
276
+ /**
277
+ * Index name to target.
278
+ */
279
+ index: string;
280
+ /**
281
+ * User query.
282
+ */
283
+ search?: string;
284
+ /**
285
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
286
+ */
287
+ startDate?: string;
288
+ /**
289
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
290
+ */
291
+ endDate?: string;
292
+ /**
293
+ * Number of records to return (page size).
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 analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
302
+ */
303
+ tags?: string;
304
+ };
305
+ /**
306
+ * Properties for the `getTopFilterForAttribute` method.
307
+ */
308
+ export type GetTopFilterForAttributeProps = {
309
+ /**
310
+ * Attribute name.
311
+ */
312
+ attribute: string;
313
+ /**
314
+ * Index name to target.
315
+ */
316
+ index: string;
317
+ /**
318
+ * User query.
319
+ */
320
+ search?: string;
321
+ /**
322
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
323
+ */
324
+ startDate?: string;
325
+ /**
326
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
327
+ */
328
+ endDate?: string;
329
+ /**
330
+ * Number of records to return (page size).
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 analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
339
+ */
340
+ tags?: string;
341
+ };
342
+ /**
343
+ * Properties for the `getTopFiltersNoResults` method.
344
+ */
345
+ export type GetTopFiltersNoResultsProps = {
346
+ /**
347
+ * Index name to target.
348
+ */
349
+ index: string;
350
+ /**
351
+ * User query.
352
+ */
353
+ search?: string;
354
+ /**
355
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
356
+ */
357
+ startDate?: string;
358
+ /**
359
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
360
+ */
361
+ endDate?: string;
362
+ /**
363
+ * Number of records to return (page size).
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 analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
372
+ */
373
+ tags?: string;
374
+ };
375
+ /**
376
+ * Properties for the `getTopHits` method.
377
+ */
378
+ export type GetTopHitsProps = {
379
+ /**
380
+ * Index name to target.
381
+ */
382
+ index: string;
383
+ /**
384
+ * User query.
385
+ */
386
+ search?: string;
387
+ /**
388
+ * Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
389
+ */
390
+ clickAnalytics?: boolean;
391
+ /**
392
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
393
+ */
394
+ startDate?: string;
395
+ /**
396
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
397
+ */
398
+ endDate?: string;
399
+ /**
400
+ * Number of records to return (page size).
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 analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
409
+ */
410
+ tags?: string;
411
+ };
412
+ /**
413
+ * Properties for the `getTopSearches` method.
414
+ */
415
+ export type GetTopSearchesProps = {
416
+ /**
417
+ * Index name to target.
418
+ */
419
+ index: string;
420
+ /**
421
+ * Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
422
+ */
423
+ clickAnalytics?: boolean;
424
+ /**
425
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
426
+ */
427
+ startDate?: string;
428
+ /**
429
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
430
+ */
431
+ endDate?: string;
432
+ /**
433
+ * Reorder the results.
434
+ */
435
+ orderBy?: OrderBy;
436
+ /**
437
+ * Sorting direction of the results: ascending or descending.
438
+ */
439
+ direction?: Direction;
440
+ /**
441
+ * Number of records to return (page size).
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 analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
450
+ */
451
+ tags?: string;
452
+ };
453
+ /**
454
+ * Properties for the `getUsersCount` method.
455
+ */
456
+ export type GetUsersCountProps = {
457
+ /**
458
+ * Index name to target.
459
+ */
460
+ index: string;
461
+ /**
462
+ * Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
463
+ */
464
+ startDate?: string;
465
+ /**
466
+ * End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
467
+ */
468
+ endDate?: string;
469
+ /**
470
+ * Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
471
+ */
472
+ tags?: string;
473
+ };
474
+ /**
475
+ * Properties for the `post` method.
476
+ */
477
+ export type PostProps = {
478
+ /**
479
+ * Path of the endpoint, anything after \"/1\" must be specified.
480
+ */
481
+ path: string;
482
+ /**
483
+ * Query parameters to apply to the current query.
484
+ */
485
+ parameters?: Record<string, any>;
486
+ /**
487
+ * 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
+ * Path of the endpoint, anything after \"/1\" must be specified.
497
+ */
498
+ path: string;
499
+ /**
500
+ * Query parameters to apply to the current query.
501
+ */
502
+ parameters?: Record<string, any>;
503
+ /**
504
+ * Parameters to send with the custom request.
505
+ */
506
+ body?: Record<string, any>;
507
+ };
508
508
  //# sourceMappingURL=clientMethodProps.d.ts.map