@algolia/client-analytics 5.0.0-alpha.73 → 5.0.0-alpha.76

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 (87) hide show
  1. package/dist/client-analytics.cjs.js +114 -116
  2. package/dist/client-analytics.esm.browser.js +114 -114
  3. package/dist/client-analytics.esm.node.js +114 -114
  4. package/dist/client-analytics.umd.js +2 -2
  5. package/dist/model/averageClickEvent.d.ts +3 -3
  6. package/dist/model/clickPosition.d.ts +2 -2
  7. package/dist/model/clickThroughRateEvent.d.ts +4 -4
  8. package/dist/model/clientMethodProps.d.ts +91 -91
  9. package/dist/model/conversionRateEvent.d.ts +4 -4
  10. package/dist/model/getAverageClickPositionResponse.d.ts +3 -3
  11. package/dist/model/getClickPositionsResponse.d.ts +1 -1
  12. package/dist/model/getClickThroughRateResponse.d.ts +4 -4
  13. package/dist/model/getConversationRateResponse.d.ts +4 -4
  14. package/dist/model/getNoClickRateResponse.d.ts +4 -4
  15. package/dist/model/getNoResultsRateResponse.d.ts +4 -4
  16. package/dist/model/getSearchesCountResponse.d.ts +2 -2
  17. package/dist/model/getSearchesNoClicksResponse.d.ts +1 -1
  18. package/dist/model/getSearchesNoResultsResponse.d.ts +1 -1
  19. package/dist/model/getStatusResponse.d.ts +1 -1
  20. package/dist/model/getTopCountriesResponse.d.ts +1 -1
  21. package/dist/model/getTopFilterAttribute.d.ts +2 -2
  22. package/dist/model/getTopFilterAttributesResponse.d.ts +1 -1
  23. package/dist/model/getTopFilterForAttribute.d.ts +4 -4
  24. package/dist/model/getTopFilterForAttributeResponse.d.ts +1 -1
  25. package/dist/model/getTopFiltersNoResultsResponse.d.ts +1 -1
  26. package/dist/model/getTopFiltersNoResultsValue.d.ts +3 -3
  27. package/dist/model/getTopFiltersNoResultsValues.d.ts +2 -2
  28. package/dist/model/getUsersCountResponse.d.ts +2 -2
  29. package/dist/model/noClickRateEvent.d.ts +4 -4
  30. package/dist/model/noResultsRateEvent.d.ts +4 -4
  31. package/dist/model/orderBy.d.ts +3 -0
  32. package/dist/model/orderBy.d.ts.map +1 -1
  33. package/dist/model/searchEvent.d.ts +2 -2
  34. package/dist/model/searchNoClickEvent.d.ts +3 -3
  35. package/dist/model/searchNoResultEvent.d.ts +3 -3
  36. package/dist/model/topCountry.d.ts +2 -2
  37. package/dist/model/topHit.d.ts +2 -2
  38. package/dist/model/topHitWithAnalytics.d.ts +7 -7
  39. package/dist/model/topHitsResponse.d.ts +1 -1
  40. package/dist/model/topHitsResponseWithAnalytics.d.ts +1 -1
  41. package/dist/model/topSearch.d.ts +3 -3
  42. package/dist/model/topSearchWithAnalytics.d.ts +9 -9
  43. package/dist/model/topSearchesResponse.d.ts +1 -1
  44. package/dist/model/topSearchesResponseWithAnalytics.d.ts +1 -1
  45. package/dist/model/userWithDate.d.ts +2 -2
  46. package/dist/src/analyticsClient.d.ts +114 -114
  47. package/model/averageClickEvent.ts +3 -3
  48. package/model/clickPosition.ts +2 -2
  49. package/model/clickThroughRateEvent.ts +4 -4
  50. package/model/clientMethodProps.ts +91 -91
  51. package/model/conversionRateEvent.ts +4 -4
  52. package/model/getAverageClickPositionResponse.ts +3 -3
  53. package/model/getClickPositionsResponse.ts +1 -1
  54. package/model/getClickThroughRateResponse.ts +4 -4
  55. package/model/getConversationRateResponse.ts +4 -4
  56. package/model/getNoClickRateResponse.ts +4 -4
  57. package/model/getNoResultsRateResponse.ts +4 -4
  58. package/model/getSearchesCountResponse.ts +2 -2
  59. package/model/getSearchesNoClicksResponse.ts +1 -1
  60. package/model/getSearchesNoResultsResponse.ts +1 -1
  61. package/model/getStatusResponse.ts +1 -1
  62. package/model/getTopCountriesResponse.ts +1 -1
  63. package/model/getTopFilterAttribute.ts +2 -2
  64. package/model/getTopFilterAttributesResponse.ts +1 -1
  65. package/model/getTopFilterForAttribute.ts +4 -4
  66. package/model/getTopFilterForAttributeResponse.ts +1 -1
  67. package/model/getTopFiltersNoResultsResponse.ts +1 -1
  68. package/model/getTopFiltersNoResultsValue.ts +3 -3
  69. package/model/getTopFiltersNoResultsValues.ts +2 -2
  70. package/model/getUsersCountResponse.ts +2 -2
  71. package/model/noClickRateEvent.ts +4 -4
  72. package/model/noResultsRateEvent.ts +4 -4
  73. package/model/orderBy.ts +3 -0
  74. package/model/searchEvent.ts +2 -2
  75. package/model/searchNoClickEvent.ts +3 -3
  76. package/model/searchNoResultEvent.ts +3 -3
  77. package/model/topCountry.ts +2 -2
  78. package/model/topHit.ts +2 -2
  79. package/model/topHitWithAnalytics.ts +7 -7
  80. package/model/topHitsResponse.ts +1 -1
  81. package/model/topHitsResponseWithAnalytics.ts +1 -1
  82. package/model/topSearch.ts +3 -3
  83. package/model/topSearchWithAnalytics.ts +9 -9
  84. package/model/topSearchesResponse.ts +1 -1
  85. package/model/topSearchesResponseWithAnalytics.ts +1 -1
  86. package/model/userWithDate.ts +2 -2
  87. package/package.json +8 -7
@@ -1,12 +1,10 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var clientCommon = require('@algolia/client-common');
6
4
  var requesterNodeHttp = require('@algolia/requester-node-http');
7
5
 
8
6
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
9
- const apiClientVersion = '5.0.0-alpha.73';
7
+ const apiClientVersion = '5.0.0-alpha.76';
10
8
  const REGIONS = ['de', 'us'];
11
9
  function getDefaultHosts(region) {
12
10
  const url = !region
@@ -70,8 +68,8 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
70
68
  *
71
69
  * @summary Send requests to the Algolia REST API.
72
70
  * @param del - The del object.
73
- * @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
74
- * @param del.parameters - Query parameters to be applied to the current query.
71
+ * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
72
+ * @param del.parameters - Query parameters to apply to the current query.
75
73
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
76
74
  */
77
75
  del({ path, parameters }, requestOptions) {
@@ -94,8 +92,8 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
94
92
  *
95
93
  * @summary Send requests to the Algolia REST API.
96
94
  * @param get - The get object.
97
- * @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
98
- * @param get.parameters - Query parameters to be applied to the current query.
95
+ * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
96
+ * @param get.parameters - Query parameters to apply to the current query.
99
97
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
100
98
  */
101
99
  get({ path, parameters }, requestOptions) {
@@ -114,14 +112,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
114
112
  return transporter.request(request, requestOptions);
115
113
  },
116
114
  /**
117
- * Returns the average click position. The endpoint returns a value for the complete given time range, as well as a value per day.
115
+ * Return the average click position for the complete time range and for individual days. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn\'t receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
118
116
  *
119
117
  * @summary Get average click position.
120
118
  * @param getAverageClickPosition - The getAverageClickPosition object.
121
- * @param getAverageClickPosition.index - The index name to target.
122
- * @param getAverageClickPosition.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
123
- * @param getAverageClickPosition.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
124
- * @param getAverageClickPosition.tags - 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.
119
+ * @param getAverageClickPosition.index - Index name to target.
120
+ * @param getAverageClickPosition.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
121
+ * @param getAverageClickPosition.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
122
+ * @param getAverageClickPosition.tags - 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.
125
123
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
126
124
  */
127
125
  getAverageClickPosition({ index, startDate, endDate, tags }, requestOptions) {
@@ -152,14 +150,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
152
150
  return transporter.request(request, requestOptions);
153
151
  },
154
152
  /**
155
- * Returns the distribution of clicks per range of positions. If the groups all have a count of 0, it means Algolia didnt receive any click events for the queries with the clickAnalytics search parameter set to true. The count is 0 until Algolia receives at least one click event.
153
+ * Show the number of clicks events and their associated position in the search results. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn\'t receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
156
154
  *
157
- * @summary Get clicks per positions.
155
+ * @summary Get click positions.
158
156
  * @param getClickPositions - The getClickPositions object.
159
- * @param getClickPositions.index - The index name to target.
160
- * @param getClickPositions.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
161
- * @param getClickPositions.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
162
- * @param getClickPositions.tags - 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.
157
+ * @param getClickPositions.index - Index name to target.
158
+ * @param getClickPositions.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
159
+ * @param getClickPositions.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
160
+ * @param getClickPositions.tags - 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.
163
161
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
164
162
  */
165
163
  getClickPositions({ index, startDate, endDate, tags }, requestOptions) {
@@ -190,14 +188,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
190
188
  return transporter.request(request, requestOptions);
191
189
  },
192
190
  /**
193
- * Returns a click-through rate (CTR). The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of clicks and searches used to compute the rates.
191
+ * Returns a [click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
194
192
  *
195
193
  * @summary Get click-through rate (CTR).
196
194
  * @param getClickThroughRate - The getClickThroughRate object.
197
- * @param getClickThroughRate.index - The index name to target.
198
- * @param getClickThroughRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
199
- * @param getClickThroughRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
200
- * @param getClickThroughRate.tags - 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.
195
+ * @param getClickThroughRate.index - Index name to target.
196
+ * @param getClickThroughRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
197
+ * @param getClickThroughRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
198
+ * @param getClickThroughRate.tags - 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.
201
199
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
202
200
  */
203
201
  getClickThroughRate({ index, startDate, endDate, tags }, requestOptions) {
@@ -228,14 +226,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
228
226
  return transporter.request(request, requestOptions);
229
227
  },
230
228
  /**
231
- * Returns a conversion rate (CR). The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of conversion and searches used to compute the rates.
229
+ * Return a [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
232
230
  *
233
231
  * @summary Get conversion rate (CR).
234
232
  * @param getConversationRate - The getConversationRate object.
235
- * @param getConversationRate.index - The index name to target.
236
- * @param getConversationRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
237
- * @param getConversationRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
238
- * @param getConversationRate.tags - 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.
233
+ * @param getConversationRate.index - Index name to target.
234
+ * @param getConversationRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
235
+ * @param getConversationRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
236
+ * @param getConversationRate.tags - 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.
239
237
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
240
238
  */
241
239
  getConversationRate({ index, startDate, endDate, tags }, requestOptions) {
@@ -266,14 +264,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
266
264
  return transporter.request(request, requestOptions);
267
265
  },
268
266
  /**
269
- * Returns the rate at which searches didn\'t lead to any clicks. The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of searches and searches without clicks.
267
+ * Returns the rate at which searches don\'t lead to any clicks. The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of searches and searches without clicks.
270
268
  *
271
269
  * @summary Get no click rate.
272
270
  * @param getNoClickRate - The getNoClickRate object.
273
- * @param getNoClickRate.index - The index name to target.
274
- * @param getNoClickRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
275
- * @param getNoClickRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
276
- * @param getNoClickRate.tags - 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.
271
+ * @param getNoClickRate.index - Index name to target.
272
+ * @param getNoClickRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
273
+ * @param getNoClickRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
274
+ * @param getNoClickRate.tags - 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.
277
275
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
278
276
  */
279
277
  getNoClickRate({ index, startDate, endDate, tags }, requestOptions) {
@@ -304,14 +302,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
304
302
  return transporter.request(request, requestOptions);
305
303
  },
306
304
  /**
307
- * Returns the rate at which searches didn\'t return any results. The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of searches and searches without results used to compute the rates.
305
+ * Returns the rate at which searches didn\'t return any results.
308
306
  *
309
307
  * @summary Get no results rate.
310
308
  * @param getNoResultsRate - The getNoResultsRate object.
311
- * @param getNoResultsRate.index - The index name to target.
312
- * @param getNoResultsRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
313
- * @param getNoResultsRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
314
- * @param getNoResultsRate.tags - 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.
309
+ * @param getNoResultsRate.index - Index name to target.
310
+ * @param getNoResultsRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
311
+ * @param getNoResultsRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
312
+ * @param getNoResultsRate.tags - 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.
315
313
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
316
314
  */
317
315
  getNoResultsRate({ index, startDate, endDate, tags }, requestOptions) {
@@ -342,14 +340,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
342
340
  return transporter.request(request, requestOptions);
343
341
  },
344
342
  /**
345
- * Returns the number of searches across the given time range. The endpoint returns a value for the complete given time range, as well as a value per day.
343
+ * Returns the number of searches within a time range.
346
344
  *
347
- * @summary Get searches count.
345
+ * @summary Get number of searches.
348
346
  * @param getSearchesCount - The getSearchesCount object.
349
- * @param getSearchesCount.index - The index name to target.
350
- * @param getSearchesCount.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
351
- * @param getSearchesCount.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
352
- * @param getSearchesCount.tags - 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.
347
+ * @param getSearchesCount.index - Index name to target.
348
+ * @param getSearchesCount.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
349
+ * @param getSearchesCount.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
350
+ * @param getSearchesCount.tags - 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.
353
351
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
354
352
  */
355
353
  getSearchesCount({ index, startDate, endDate, tags }, requestOptions) {
@@ -380,16 +378,16 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
380
378
  return transporter.request(request, requestOptions);
381
379
  },
382
380
  /**
383
- * Returns top searches that didn\'t lead to any clicks. Limited to the 1000 most frequent ones. For each search, also returns the average number of found hits.
381
+ * Return the most popular of the last 1,000 searches that didn\'t lead to any clicks.
384
382
  *
385
383
  * @summary Get top searches with no clicks.
386
384
  * @param getSearchesNoClicks - The getSearchesNoClicks object.
387
- * @param getSearchesNoClicks.index - The index name to target.
388
- * @param getSearchesNoClicks.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
389
- * @param getSearchesNoClicks.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
390
- * @param getSearchesNoClicks.limit - Number of records to return. Limit is the size of the page.
385
+ * @param getSearchesNoClicks.index - Index name to target.
386
+ * @param getSearchesNoClicks.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
387
+ * @param getSearchesNoClicks.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
388
+ * @param getSearchesNoClicks.limit - Number of records to return (page size).
391
389
  * @param getSearchesNoClicks.offset - Position of the starting record. Used for paging. 0 is the first record.
392
- * @param getSearchesNoClicks.tags - 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.
390
+ * @param getSearchesNoClicks.tags - 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.
393
391
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
394
392
  */
395
393
  getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
@@ -426,16 +424,16 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
426
424
  return transporter.request(request, requestOptions);
427
425
  },
428
426
  /**
429
- * Returns top searches that didn\'t return any results. Limited to the 1000 most frequent ones.
427
+ * Returns the most popular of the latest 1,000 searches that didn\'t return any results.
430
428
  *
431
429
  * @summary Get top searches with no results.
432
430
  * @param getSearchesNoResults - The getSearchesNoResults object.
433
- * @param getSearchesNoResults.index - The index name to target.
434
- * @param getSearchesNoResults.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
435
- * @param getSearchesNoResults.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
436
- * @param getSearchesNoResults.limit - Number of records to return. Limit is the size of the page.
431
+ * @param getSearchesNoResults.index - Index name to target.
432
+ * @param getSearchesNoResults.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
433
+ * @param getSearchesNoResults.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
434
+ * @param getSearchesNoResults.limit - Number of records to return (page size).
437
435
  * @param getSearchesNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
438
- * @param getSearchesNoResults.tags - 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.
436
+ * @param getSearchesNoResults.tags - 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.
439
437
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
440
438
  */
441
439
  getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
@@ -472,11 +470,11 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
472
470
  return transporter.request(request, requestOptions);
473
471
  },
474
472
  /**
475
- * Returns the latest update time of the analytics API for a given index. If the index has been recently created and/or no search has been performed yet the updated time will be null.
473
+ * Return the latest update time of the Analytics API for an index. If the index has been recently created or no search has been performed yet, `updatedAt` will be `null`. > **Note**: The Analytics API is updated every 5 minutes.
476
474
  *
477
475
  * @summary Get Analytics API status.
478
476
  * @param getStatus - The getStatus object.
479
- * @param getStatus.index - The index name to target.
477
+ * @param getStatus.index - Index name to target.
480
478
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
481
479
  */
482
480
  getStatus({ index }, requestOptions) {
@@ -498,16 +496,16 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
498
496
  return transporter.request(request, requestOptions);
499
497
  },
500
498
  /**
501
- * Returns top countries. Limited to the 1000 most frequent ones.
499
+ * Returns top countries. Limited to the 1,000 most frequent ones.
502
500
  *
503
501
  * @summary Get top countries.
504
502
  * @param getTopCountries - The getTopCountries object.
505
- * @param getTopCountries.index - The index name to target.
506
- * @param getTopCountries.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
507
- * @param getTopCountries.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
508
- * @param getTopCountries.limit - Number of records to return. Limit is the size of the page.
503
+ * @param getTopCountries.index - Index name to target.
504
+ * @param getTopCountries.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
505
+ * @param getTopCountries.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
506
+ * @param getTopCountries.limit - Number of records to return (page size).
509
507
  * @param getTopCountries.offset - Position of the starting record. Used for paging. 0 is the first record.
510
- * @param getTopCountries.tags - 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.
508
+ * @param getTopCountries.tags - 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.
511
509
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
512
510
  */
513
511
  getTopCountries({ index, startDate, endDate, limit, offset, tags }, requestOptions) {
@@ -544,17 +542,17 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
544
542
  return transporter.request(request, requestOptions);
545
543
  },
546
544
  /**
547
- * Returns top filter attributes. Limited to the 1000 most used filters.
545
+ * Return the most popular [filterable attributes](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) in the 1,000 most recently used filters.
548
546
  *
549
- * @summary Get top filter attributes.
547
+ * @summary Get top filterable attributes.
550
548
  * @param getTopFilterAttributes - The getTopFilterAttributes object.
551
- * @param getTopFilterAttributes.index - The index name to target.
552
- * @param getTopFilterAttributes.search - The query term to search for. Must match the exact user input.
553
- * @param getTopFilterAttributes.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
554
- * @param getTopFilterAttributes.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
555
- * @param getTopFilterAttributes.limit - Number of records to return. Limit is the size of the page.
549
+ * @param getTopFilterAttributes.index - Index name to target.
550
+ * @param getTopFilterAttributes.search - User query.
551
+ * @param getTopFilterAttributes.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
552
+ * @param getTopFilterAttributes.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
553
+ * @param getTopFilterAttributes.limit - Number of records to return (page size).
556
554
  * @param getTopFilterAttributes.offset - Position of the starting record. Used for paging. 0 is the first record.
557
- * @param getTopFilterAttributes.tags - 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.
555
+ * @param getTopFilterAttributes.tags - 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.
558
556
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
559
557
  */
560
558
  getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
@@ -594,18 +592,18 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
594
592
  return transporter.request(request, requestOptions);
595
593
  },
596
594
  /**
597
- * Returns top filters for the given attribute. Limited to the 1000 most used filters.
595
+ * Returns the most popular filter values for an attribute in the 1,000 most recently used filters.
598
596
  *
599
- * @summary Get top filters for the an attribute.
597
+ * @summary Get top filter values for an attribute.
600
598
  * @param getTopFilterForAttribute - The getTopFilterForAttribute object.
601
- * @param getTopFilterForAttribute.attribute - The exact name of the attribute.
602
- * @param getTopFilterForAttribute.index - The index name to target.
603
- * @param getTopFilterForAttribute.search - The query term to search for. Must match the exact user input.
604
- * @param getTopFilterForAttribute.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
605
- * @param getTopFilterForAttribute.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
606
- * @param getTopFilterForAttribute.limit - Number of records to return. Limit is the size of the page.
599
+ * @param getTopFilterForAttribute.attribute - Attribute name.
600
+ * @param getTopFilterForAttribute.index - Index name to target.
601
+ * @param getTopFilterForAttribute.search - User query.
602
+ * @param getTopFilterForAttribute.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
603
+ * @param getTopFilterForAttribute.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
604
+ * @param getTopFilterForAttribute.limit - Number of records to return (page size).
607
605
  * @param getTopFilterForAttribute.offset - Position of the starting record. Used for paging. 0 is the first record.
608
- * @param getTopFilterForAttribute.tags - 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.
606
+ * @param getTopFilterForAttribute.tags - 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.
609
607
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
610
608
  */
611
609
  getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
@@ -648,17 +646,17 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
648
646
  return transporter.request(request, requestOptions);
649
647
  },
650
648
  /**
651
- * Returns top filters with no results. Limited to the 1000 most used filters.
649
+ * Returns top filters for filter-enabled searches that don\'t return results. Limited to the 1,000 most recently used filters.
652
650
  *
653
651
  * @summary Get top filters for a no result search.
654
652
  * @param getTopFiltersNoResults - The getTopFiltersNoResults object.
655
- * @param getTopFiltersNoResults.index - The index name to target.
656
- * @param getTopFiltersNoResults.search - The query term to search for. Must match the exact user input.
657
- * @param getTopFiltersNoResults.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
658
- * @param getTopFiltersNoResults.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
659
- * @param getTopFiltersNoResults.limit - Number of records to return. Limit is the size of the page.
653
+ * @param getTopFiltersNoResults.index - Index name to target.
654
+ * @param getTopFiltersNoResults.search - User query.
655
+ * @param getTopFiltersNoResults.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
656
+ * @param getTopFiltersNoResults.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
657
+ * @param getTopFiltersNoResults.limit - Number of records to return (page size).
660
658
  * @param getTopFiltersNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
661
- * @param getTopFiltersNoResults.tags - 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.
659
+ * @param getTopFiltersNoResults.tags - 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.
662
660
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
663
661
  */
664
662
  getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
@@ -698,18 +696,18 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
698
696
  return transporter.request(request, requestOptions);
699
697
  },
700
698
  /**
701
- * Returns top hits. Limited to the 1000 most frequent ones.
699
+ * Return the most popular clicked results in the last 1,000 searches.
702
700
  *
703
701
  * @summary Get top hits.
704
702
  * @param getTopHits - The getTopHits object.
705
- * @param getTopHits.index - The index name to target.
706
- * @param getTopHits.search - The query term to search for. Must match the exact user input.
707
- * @param getTopHits.clickAnalytics - Whether to include the click-through and conversion rates for a search.
708
- * @param getTopHits.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
709
- * @param getTopHits.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
710
- * @param getTopHits.limit - Number of records to return. Limit is the size of the page.
703
+ * @param getTopHits.index - Index name to target.
704
+ * @param getTopHits.search - User query.
705
+ * @param getTopHits.clickAnalytics - Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
706
+ * @param getTopHits.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
707
+ * @param getTopHits.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
708
+ * @param getTopHits.limit - Number of records to return (page size).
711
709
  * @param getTopHits.offset - Position of the starting record. Used for paging. 0 is the first record.
712
- * @param getTopHits.tags - 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.
710
+ * @param getTopHits.tags - 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.
713
711
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
714
712
  */
715
713
  getTopHits({ index, search, clickAnalytics, startDate, endDate, limit, offset, tags, }, requestOptions) {
@@ -752,19 +750,19 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
752
750
  return transporter.request(request, requestOptions);
753
751
  },
754
752
  /**
755
- * Returns top searches. Limited to the 1000 most frequent ones. For each search, also returns the average number of hits returned.
753
+ * Returns the most popular of the latest 1,000 searches. For each search, also returns the number of hits.
756
754
  *
757
755
  * @summary Get top searches.
758
756
  * @param getTopSearches - The getTopSearches object.
759
- * @param getTopSearches.index - The index name to target.
760
- * @param getTopSearches.clickAnalytics - Whether to include the click-through and conversion rates for a search.
761
- * @param getTopSearches.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
762
- * @param getTopSearches.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
757
+ * @param getTopSearches.index - Index name to target.
758
+ * @param getTopSearches.clickAnalytics - Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
759
+ * @param getTopSearches.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
760
+ * @param getTopSearches.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
763
761
  * @param getTopSearches.orderBy - Reorder the results.
764
- * @param getTopSearches.direction - The sorting of the result.
765
- * @param getTopSearches.limit - Number of records to return. Limit is the size of the page.
762
+ * @param getTopSearches.direction - Sorting direction of the results: ascending or descending.
763
+ * @param getTopSearches.limit - Number of records to return (page size).
766
764
  * @param getTopSearches.offset - Position of the starting record. Used for paging. 0 is the first record.
767
- * @param getTopSearches.tags - 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.
765
+ * @param getTopSearches.tags - 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.
768
766
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
769
767
  */
770
768
  getTopSearches({ index, clickAnalytics, startDate, endDate, orderBy, direction, limit, offset, tags, }, requestOptions) {
@@ -810,14 +808,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
810
808
  return transporter.request(request, requestOptions);
811
809
  },
812
810
  /**
813
- * Returns the distinct count of users across the given time range. The endpoint returns a value for the complete given time range, as well as a value per day.
811
+ * Return the count of unique users.
814
812
  *
815
- * @summary Get users count.
813
+ * @summary Get user count.
816
814
  * @param getUsersCount - The getUsersCount object.
817
- * @param getUsersCount.index - The index name to target.
818
- * @param getUsersCount.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
819
- * @param getUsersCount.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
820
- * @param getUsersCount.tags - 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.
815
+ * @param getUsersCount.index - Index name to target.
816
+ * @param getUsersCount.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
817
+ * @param getUsersCount.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
818
+ * @param getUsersCount.tags - 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.
821
819
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
822
820
  */
823
821
  getUsersCount({ index, startDate, endDate, tags }, requestOptions) {
@@ -852,9 +850,9 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
852
850
  *
853
851
  * @summary Send requests to the Algolia REST API.
854
852
  * @param post - The post object.
855
- * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
856
- * @param post.parameters - Query parameters to be applied to the current query.
857
- * @param post.body - The parameters to send with the custom request.
853
+ * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
854
+ * @param post.parameters - Query parameters to apply to the current query.
855
+ * @param post.body - Parameters to send with the custom request.
858
856
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
859
857
  */
860
858
  post({ path, parameters, body }, requestOptions) {
@@ -878,9 +876,9 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
878
876
  *
879
877
  * @summary Send requests to the Algolia REST API.
880
878
  * @param put - The put object.
881
- * @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
882
- * @param put.parameters - Query parameters to be applied to the current query.
883
- * @param put.body - The parameters to send with the custom request.
879
+ * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
880
+ * @param put.parameters - Query parameters to apply to the current query.
881
+ * @param put.body - Parameters to send with the custom request.
884
882
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
885
883
  */
886
884
  put({ path, parameters, body }, requestOptions) {