@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
@@ -662,7 +662,7 @@ function createXhrRequester() {
662
662
  }
663
663
 
664
664
  // 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.
665
- const apiClientVersion = '5.0.0-alpha.73';
665
+ const apiClientVersion = '5.0.0-alpha.76';
666
666
  const REGIONS = ['de', 'us'];
667
667
  function getDefaultHosts(region) {
668
668
  const url = !region
@@ -726,8 +726,8 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
726
726
  *
727
727
  * @summary Send requests to the Algolia REST API.
728
728
  * @param del - The del object.
729
- * @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
730
- * @param del.parameters - Query parameters to be applied to the current query.
729
+ * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
730
+ * @param del.parameters - Query parameters to apply to the current query.
731
731
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
732
732
  */
733
733
  del({ path, parameters }, requestOptions) {
@@ -750,8 +750,8 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
750
750
  *
751
751
  * @summary Send requests to the Algolia REST API.
752
752
  * @param get - The get object.
753
- * @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
754
- * @param get.parameters - Query parameters to be applied to the current query.
753
+ * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
754
+ * @param get.parameters - Query parameters to apply to the current query.
755
755
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
756
756
  */
757
757
  get({ path, parameters }, requestOptions) {
@@ -770,14 +770,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
770
770
  return transporter.request(request, requestOptions);
771
771
  },
772
772
  /**
773
- * Returns the average click position. The endpoint returns a value for the complete given time range, as well as a value per day.
773
+ * 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`.
774
774
  *
775
775
  * @summary Get average click position.
776
776
  * @param getAverageClickPosition - The getAverageClickPosition object.
777
- * @param getAverageClickPosition.index - The index name to target.
778
- * @param getAverageClickPosition.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
779
- * @param getAverageClickPosition.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
780
- * @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.
777
+ * @param getAverageClickPosition.index - Index name to target.
778
+ * @param getAverageClickPosition.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
779
+ * @param getAverageClickPosition.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
780
+ * @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.
781
781
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
782
782
  */
783
783
  getAverageClickPosition({ index, startDate, endDate, tags }, requestOptions) {
@@ -808,14 +808,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
808
808
  return transporter.request(request, requestOptions);
809
809
  },
810
810
  /**
811
- * 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.
811
+ * 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`.
812
812
  *
813
- * @summary Get clicks per positions.
813
+ * @summary Get click positions.
814
814
  * @param getClickPositions - The getClickPositions object.
815
- * @param getClickPositions.index - The index name to target.
816
- * @param getClickPositions.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
817
- * @param getClickPositions.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
818
- * @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.
815
+ * @param getClickPositions.index - Index name to target.
816
+ * @param getClickPositions.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
817
+ * @param getClickPositions.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
818
+ * @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.
819
819
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
820
820
  */
821
821
  getClickPositions({ index, startDate, endDate, tags }, requestOptions) {
@@ -846,14 +846,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
846
846
  return transporter.request(request, requestOptions);
847
847
  },
848
848
  /**
849
- * 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.
849
+ * Returns a [click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
850
850
  *
851
851
  * @summary Get click-through rate (CTR).
852
852
  * @param getClickThroughRate - The getClickThroughRate object.
853
- * @param getClickThroughRate.index - The index name to target.
854
- * @param getClickThroughRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
855
- * @param getClickThroughRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
856
- * @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.
853
+ * @param getClickThroughRate.index - Index name to target.
854
+ * @param getClickThroughRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
855
+ * @param getClickThroughRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
856
+ * @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.
857
857
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
858
858
  */
859
859
  getClickThroughRate({ index, startDate, endDate, tags }, requestOptions) {
@@ -884,14 +884,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
884
884
  return transporter.request(request, requestOptions);
885
885
  },
886
886
  /**
887
- * 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.
887
+ * Return a [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
888
888
  *
889
889
  * @summary Get conversion rate (CR).
890
890
  * @param getConversationRate - The getConversationRate object.
891
- * @param getConversationRate.index - The index name to target.
892
- * @param getConversationRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
893
- * @param getConversationRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
894
- * @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.
891
+ * @param getConversationRate.index - Index name to target.
892
+ * @param getConversationRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
893
+ * @param getConversationRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
894
+ * @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.
895
895
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
896
896
  */
897
897
  getConversationRate({ index, startDate, endDate, tags }, requestOptions) {
@@ -922,14 +922,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
922
922
  return transporter.request(request, requestOptions);
923
923
  },
924
924
  /**
925
- * 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.
925
+ * 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.
926
926
  *
927
927
  * @summary Get no click rate.
928
928
  * @param getNoClickRate - The getNoClickRate object.
929
- * @param getNoClickRate.index - The index name to target.
930
- * @param getNoClickRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
931
- * @param getNoClickRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
932
- * @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.
929
+ * @param getNoClickRate.index - Index name to target.
930
+ * @param getNoClickRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
931
+ * @param getNoClickRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
932
+ * @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.
933
933
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
934
934
  */
935
935
  getNoClickRate({ index, startDate, endDate, tags }, requestOptions) {
@@ -960,14 +960,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
960
960
  return transporter.request(request, requestOptions);
961
961
  },
962
962
  /**
963
- * 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.
963
+ * Returns the rate at which searches didn\'t return any results.
964
964
  *
965
965
  * @summary Get no results rate.
966
966
  * @param getNoResultsRate - The getNoResultsRate object.
967
- * @param getNoResultsRate.index - The index name to target.
968
- * @param getNoResultsRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
969
- * @param getNoResultsRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
970
- * @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.
967
+ * @param getNoResultsRate.index - Index name to target.
968
+ * @param getNoResultsRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
969
+ * @param getNoResultsRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
970
+ * @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.
971
971
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
972
972
  */
973
973
  getNoResultsRate({ index, startDate, endDate, tags }, requestOptions) {
@@ -998,14 +998,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
998
998
  return transporter.request(request, requestOptions);
999
999
  },
1000
1000
  /**
1001
- * 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.
1001
+ * Returns the number of searches within a time range.
1002
1002
  *
1003
- * @summary Get searches count.
1003
+ * @summary Get number of searches.
1004
1004
  * @param getSearchesCount - The getSearchesCount object.
1005
- * @param getSearchesCount.index - The index name to target.
1006
- * @param getSearchesCount.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1007
- * @param getSearchesCount.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1008
- * @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.
1005
+ * @param getSearchesCount.index - Index name to target.
1006
+ * @param getSearchesCount.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1007
+ * @param getSearchesCount.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1008
+ * @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.
1009
1009
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1010
1010
  */
1011
1011
  getSearchesCount({ index, startDate, endDate, tags }, requestOptions) {
@@ -1036,16 +1036,16 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1036
1036
  return transporter.request(request, requestOptions);
1037
1037
  },
1038
1038
  /**
1039
- * 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.
1039
+ * Return the most popular of the last 1,000 searches that didn\'t lead to any clicks.
1040
1040
  *
1041
1041
  * @summary Get top searches with no clicks.
1042
1042
  * @param getSearchesNoClicks - The getSearchesNoClicks object.
1043
- * @param getSearchesNoClicks.index - The index name to target.
1044
- * @param getSearchesNoClicks.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1045
- * @param getSearchesNoClicks.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1046
- * @param getSearchesNoClicks.limit - Number of records to return. Limit is the size of the page.
1043
+ * @param getSearchesNoClicks.index - Index name to target.
1044
+ * @param getSearchesNoClicks.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1045
+ * @param getSearchesNoClicks.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1046
+ * @param getSearchesNoClicks.limit - Number of records to return (page size).
1047
1047
  * @param getSearchesNoClicks.offset - Position of the starting record. Used for paging. 0 is the first record.
1048
- * @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.
1048
+ * @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.
1049
1049
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1050
1050
  */
1051
1051
  getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
@@ -1082,16 +1082,16 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1082
1082
  return transporter.request(request, requestOptions);
1083
1083
  },
1084
1084
  /**
1085
- * Returns top searches that didn\'t return any results. Limited to the 1000 most frequent ones.
1085
+ * Returns the most popular of the latest 1,000 searches that didn\'t return any results.
1086
1086
  *
1087
1087
  * @summary Get top searches with no results.
1088
1088
  * @param getSearchesNoResults - The getSearchesNoResults object.
1089
- * @param getSearchesNoResults.index - The index name to target.
1090
- * @param getSearchesNoResults.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1091
- * @param getSearchesNoResults.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1092
- * @param getSearchesNoResults.limit - Number of records to return. Limit is the size of the page.
1089
+ * @param getSearchesNoResults.index - Index name to target.
1090
+ * @param getSearchesNoResults.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1091
+ * @param getSearchesNoResults.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1092
+ * @param getSearchesNoResults.limit - Number of records to return (page size).
1093
1093
  * @param getSearchesNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
1094
- * @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.
1094
+ * @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.
1095
1095
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1096
1096
  */
1097
1097
  getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
@@ -1128,11 +1128,11 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1128
1128
  return transporter.request(request, requestOptions);
1129
1129
  },
1130
1130
  /**
1131
- * 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.
1131
+ * 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.
1132
1132
  *
1133
1133
  * @summary Get Analytics API status.
1134
1134
  * @param getStatus - The getStatus object.
1135
- * @param getStatus.index - The index name to target.
1135
+ * @param getStatus.index - Index name to target.
1136
1136
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1137
1137
  */
1138
1138
  getStatus({ index }, requestOptions) {
@@ -1154,16 +1154,16 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1154
1154
  return transporter.request(request, requestOptions);
1155
1155
  },
1156
1156
  /**
1157
- * Returns top countries. Limited to the 1000 most frequent ones.
1157
+ * Returns top countries. Limited to the 1,000 most frequent ones.
1158
1158
  *
1159
1159
  * @summary Get top countries.
1160
1160
  * @param getTopCountries - The getTopCountries object.
1161
- * @param getTopCountries.index - The index name to target.
1162
- * @param getTopCountries.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1163
- * @param getTopCountries.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1164
- * @param getTopCountries.limit - Number of records to return. Limit is the size of the page.
1161
+ * @param getTopCountries.index - Index name to target.
1162
+ * @param getTopCountries.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1163
+ * @param getTopCountries.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1164
+ * @param getTopCountries.limit - Number of records to return (page size).
1165
1165
  * @param getTopCountries.offset - Position of the starting record. Used for paging. 0 is the first record.
1166
- * @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.
1166
+ * @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.
1167
1167
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1168
1168
  */
1169
1169
  getTopCountries({ index, startDate, endDate, limit, offset, tags }, requestOptions) {
@@ -1200,17 +1200,17 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1200
1200
  return transporter.request(request, requestOptions);
1201
1201
  },
1202
1202
  /**
1203
- * Returns top filter attributes. Limited to the 1000 most used filters.
1203
+ * 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.
1204
1204
  *
1205
- * @summary Get top filter attributes.
1205
+ * @summary Get top filterable attributes.
1206
1206
  * @param getTopFilterAttributes - The getTopFilterAttributes object.
1207
- * @param getTopFilterAttributes.index - The index name to target.
1208
- * @param getTopFilterAttributes.search - The query term to search for. Must match the exact user input.
1209
- * @param getTopFilterAttributes.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1210
- * @param getTopFilterAttributes.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1211
- * @param getTopFilterAttributes.limit - Number of records to return. Limit is the size of the page.
1207
+ * @param getTopFilterAttributes.index - Index name to target.
1208
+ * @param getTopFilterAttributes.search - User query.
1209
+ * @param getTopFilterAttributes.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1210
+ * @param getTopFilterAttributes.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1211
+ * @param getTopFilterAttributes.limit - Number of records to return (page size).
1212
1212
  * @param getTopFilterAttributes.offset - Position of the starting record. Used for paging. 0 is the first record.
1213
- * @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.
1213
+ * @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.
1214
1214
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1215
1215
  */
1216
1216
  getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
@@ -1250,18 +1250,18 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1250
1250
  return transporter.request(request, requestOptions);
1251
1251
  },
1252
1252
  /**
1253
- * Returns top filters for the given attribute. Limited to the 1000 most used filters.
1253
+ * Returns the most popular filter values for an attribute in the 1,000 most recently used filters.
1254
1254
  *
1255
- * @summary Get top filters for the an attribute.
1255
+ * @summary Get top filter values for an attribute.
1256
1256
  * @param getTopFilterForAttribute - The getTopFilterForAttribute object.
1257
- * @param getTopFilterForAttribute.attribute - The exact name of the attribute.
1258
- * @param getTopFilterForAttribute.index - The index name to target.
1259
- * @param getTopFilterForAttribute.search - The query term to search for. Must match the exact user input.
1260
- * @param getTopFilterForAttribute.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1261
- * @param getTopFilterForAttribute.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1262
- * @param getTopFilterForAttribute.limit - Number of records to return. Limit is the size of the page.
1257
+ * @param getTopFilterForAttribute.attribute - Attribute name.
1258
+ * @param getTopFilterForAttribute.index - Index name to target.
1259
+ * @param getTopFilterForAttribute.search - User query.
1260
+ * @param getTopFilterForAttribute.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1261
+ * @param getTopFilterForAttribute.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1262
+ * @param getTopFilterForAttribute.limit - Number of records to return (page size).
1263
1263
  * @param getTopFilterForAttribute.offset - Position of the starting record. Used for paging. 0 is the first record.
1264
- * @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.
1264
+ * @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.
1265
1265
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1266
1266
  */
1267
1267
  getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
@@ -1304,17 +1304,17 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1304
1304
  return transporter.request(request, requestOptions);
1305
1305
  },
1306
1306
  /**
1307
- * Returns top filters with no results. Limited to the 1000 most used filters.
1307
+ * Returns top filters for filter-enabled searches that don\'t return results. Limited to the 1,000 most recently used filters.
1308
1308
  *
1309
1309
  * @summary Get top filters for a no result search.
1310
1310
  * @param getTopFiltersNoResults - The getTopFiltersNoResults object.
1311
- * @param getTopFiltersNoResults.index - The index name to target.
1312
- * @param getTopFiltersNoResults.search - The query term to search for. Must match the exact user input.
1313
- * @param getTopFiltersNoResults.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1314
- * @param getTopFiltersNoResults.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1315
- * @param getTopFiltersNoResults.limit - Number of records to return. Limit is the size of the page.
1311
+ * @param getTopFiltersNoResults.index - Index name to target.
1312
+ * @param getTopFiltersNoResults.search - User query.
1313
+ * @param getTopFiltersNoResults.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1314
+ * @param getTopFiltersNoResults.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1315
+ * @param getTopFiltersNoResults.limit - Number of records to return (page size).
1316
1316
  * @param getTopFiltersNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
1317
- * @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.
1317
+ * @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.
1318
1318
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1319
1319
  */
1320
1320
  getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
@@ -1354,18 +1354,18 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1354
1354
  return transporter.request(request, requestOptions);
1355
1355
  },
1356
1356
  /**
1357
- * Returns top hits. Limited to the 1000 most frequent ones.
1357
+ * Return the most popular clicked results in the last 1,000 searches.
1358
1358
  *
1359
1359
  * @summary Get top hits.
1360
1360
  * @param getTopHits - The getTopHits object.
1361
- * @param getTopHits.index - The index name to target.
1362
- * @param getTopHits.search - The query term to search for. Must match the exact user input.
1363
- * @param getTopHits.clickAnalytics - Whether to include the click-through and conversion rates for a search.
1364
- * @param getTopHits.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1365
- * @param getTopHits.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1366
- * @param getTopHits.limit - Number of records to return. Limit is the size of the page.
1361
+ * @param getTopHits.index - Index name to target.
1362
+ * @param getTopHits.search - User query.
1363
+ * @param getTopHits.clickAnalytics - Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
1364
+ * @param getTopHits.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1365
+ * @param getTopHits.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1366
+ * @param getTopHits.limit - Number of records to return (page size).
1367
1367
  * @param getTopHits.offset - Position of the starting record. Used for paging. 0 is the first record.
1368
- * @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.
1368
+ * @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.
1369
1369
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1370
1370
  */
1371
1371
  getTopHits({ index, search, clickAnalytics, startDate, endDate, limit, offset, tags, }, requestOptions) {
@@ -1408,19 +1408,19 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1408
1408
  return transporter.request(request, requestOptions);
1409
1409
  },
1410
1410
  /**
1411
- * Returns top searches. Limited to the 1000 most frequent ones. For each search, also returns the average number of hits returned.
1411
+ * Returns the most popular of the latest 1,000 searches. For each search, also returns the number of hits.
1412
1412
  *
1413
1413
  * @summary Get top searches.
1414
1414
  * @param getTopSearches - The getTopSearches object.
1415
- * @param getTopSearches.index - The index name to target.
1416
- * @param getTopSearches.clickAnalytics - Whether to include the click-through and conversion rates for a search.
1417
- * @param getTopSearches.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1418
- * @param getTopSearches.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1415
+ * @param getTopSearches.index - Index name to target.
1416
+ * @param getTopSearches.clickAnalytics - Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
1417
+ * @param getTopSearches.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1418
+ * @param getTopSearches.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1419
1419
  * @param getTopSearches.orderBy - Reorder the results.
1420
- * @param getTopSearches.direction - The sorting of the result.
1421
- * @param getTopSearches.limit - Number of records to return. Limit is the size of the page.
1420
+ * @param getTopSearches.direction - Sorting direction of the results: ascending or descending.
1421
+ * @param getTopSearches.limit - Number of records to return (page size).
1422
1422
  * @param getTopSearches.offset - Position of the starting record. Used for paging. 0 is the first record.
1423
- * @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.
1423
+ * @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.
1424
1424
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1425
1425
  */
1426
1426
  getTopSearches({ index, clickAnalytics, startDate, endDate, orderBy, direction, limit, offset, tags, }, requestOptions) {
@@ -1466,14 +1466,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1466
1466
  return transporter.request(request, requestOptions);
1467
1467
  },
1468
1468
  /**
1469
- * 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.
1469
+ * Return the count of unique users.
1470
1470
  *
1471
- * @summary Get users count.
1471
+ * @summary Get user count.
1472
1472
  * @param getUsersCount - The getUsersCount object.
1473
- * @param getUsersCount.index - The index name to target.
1474
- * @param getUsersCount.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1475
- * @param getUsersCount.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
1476
- * @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.
1473
+ * @param getUsersCount.index - Index name to target.
1474
+ * @param getUsersCount.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1475
+ * @param getUsersCount.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
1476
+ * @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.
1477
1477
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1478
1478
  */
1479
1479
  getUsersCount({ index, startDate, endDate, tags }, requestOptions) {
@@ -1508,9 +1508,9 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1508
1508
  *
1509
1509
  * @summary Send requests to the Algolia REST API.
1510
1510
  * @param post - The post object.
1511
- * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
1512
- * @param post.parameters - Query parameters to be applied to the current query.
1513
- * @param post.body - The parameters to send with the custom request.
1511
+ * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
1512
+ * @param post.parameters - Query parameters to apply to the current query.
1513
+ * @param post.body - Parameters to send with the custom request.
1514
1514
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1515
1515
  */
1516
1516
  post({ path, parameters, body }, requestOptions) {
@@ -1534,9 +1534,9 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1534
1534
  *
1535
1535
  * @summary Send requests to the Algolia REST API.
1536
1536
  * @param put - The put object.
1537
- * @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
1538
- * @param put.parameters - Query parameters to be applied to the current query.
1539
- * @param put.body - The parameters to send with the custom request.
1537
+ * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
1538
+ * @param put.parameters - Query parameters to apply to the current query.
1539
+ * @param put.body - Parameters to send with the custom request.
1540
1540
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1541
1541
  */
1542
1542
  put({ path, parameters, body }, requestOptions) {