@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,15 +1,15 @@
1
1
  import type { AverageClickEvent } from './averageClickEvent';
2
2
  export type GetAverageClickPositionResponse = {
3
3
  /**
4
- * The average of all the click count event.
4
+ * Average count of all click events.
5
5
  */
6
6
  average: number;
7
7
  /**
8
- * The number of click event.
8
+ * Number of click events.
9
9
  */
10
10
  clickCount: number;
11
11
  /**
12
- * A list of average click position with their date.
12
+ * Average click positions.
13
13
  */
14
14
  dates: AverageClickEvent[];
15
15
  };
@@ -1,7 +1,7 @@
1
1
  import type { ClickPosition } from './clickPosition';
2
2
  export type GetClickPositionsResponse = {
3
3
  /**
4
- * A list of the click positions with their click count.
4
+ * Click positions.
5
5
  */
6
6
  positions: ClickPosition[];
7
7
  };
@@ -1,19 +1,19 @@
1
1
  import type { ClickThroughRateEvent } from './clickThroughRateEvent';
2
2
  export type GetClickThroughRateResponse = {
3
3
  /**
4
- * The click-through rate.
4
+ * [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
5
5
  */
6
6
  rate: number;
7
7
  /**
8
- * The number of click event.
8
+ * Number of click events.
9
9
  */
10
10
  clickCount: number;
11
11
  /**
12
- * The number of tracked search click.
12
+ * Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
13
13
  */
14
14
  trackedSearchCount: number;
15
15
  /**
16
- * A list of click-through rate events with their date.
16
+ * Click-through rate events.
17
17
  */
18
18
  dates: ClickThroughRateEvent[];
19
19
  };
@@ -1,19 +1,19 @@
1
1
  import type { ConversionRateEvent } from './conversionRateEvent';
2
2
  export type GetConversationRateResponse = {
3
3
  /**
4
- * The click-through rate.
4
+ * [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
5
5
  */
6
6
  rate: number;
7
7
  /**
8
- * The number of tracked search click.
8
+ * Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
9
9
  */
10
10
  trackedSearchCount: number;
11
11
  /**
12
- * The number of converted clicks.
12
+ * Number of converted clicks.
13
13
  */
14
14
  conversionCount: number;
15
15
  /**
16
- * A list of conversion events with their date.
16
+ * Conversion events.
17
17
  */
18
18
  dates: ConversionRateEvent[];
19
19
  };
@@ -1,19 +1,19 @@
1
1
  import type { NoClickRateEvent } from './noClickRateEvent';
2
2
  export type GetNoClickRateResponse = {
3
3
  /**
4
- * The click-through rate.
4
+ * [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
5
5
  */
6
6
  rate: number;
7
7
  /**
8
- * The number of click event.
8
+ * Number of click events.
9
9
  */
10
10
  count: number;
11
11
  /**
12
- * The number of click event.
12
+ * Number of click events.
13
13
  */
14
14
  noClickCount: number;
15
15
  /**
16
- * A list of searches without clicks with their date, rate and counts.
16
+ * Overall count of searches without clicks plus a daily breakdown.
17
17
  */
18
18
  dates: NoClickRateEvent[];
19
19
  };
@@ -1,19 +1,19 @@
1
1
  import type { NoResultsRateEvent } from './noResultsRateEvent';
2
2
  export type GetNoResultsRateResponse = {
3
3
  /**
4
- * The click-through rate.
4
+ * [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
5
5
  */
6
6
  rate: number;
7
7
  /**
8
- * The number of occurrences.
8
+ * Number of occurrences.
9
9
  */
10
10
  count: number;
11
11
  /**
12
- * The number of occurrences.
12
+ * Number of occurrences.
13
13
  */
14
14
  noResultCount: number;
15
15
  /**
16
- * A list of searches without results with their date, rate and counts.
16
+ * Overall count of searches without results plus a daily breakdown.
17
17
  */
18
18
  dates: NoResultsRateEvent[];
19
19
  };
@@ -1,11 +1,11 @@
1
1
  import type { SearchEvent } from './searchEvent';
2
2
  export type GetSearchesCountResponse = {
3
3
  /**
4
- * The number of occurrences.
4
+ * Number of occurrences.
5
5
  */
6
6
  count: number;
7
7
  /**
8
- * A list of search events with their date and count.
8
+ * Search events with their associated dates and hit counts.
9
9
  */
10
10
  dates: SearchEvent[];
11
11
  };
@@ -1,7 +1,7 @@
1
1
  import type { SearchNoClickEvent } from './searchNoClickEvent';
2
2
  export type GetSearchesNoClicksResponse = {
3
3
  /**
4
- * A list of searches with no clicks and their count.
4
+ * Searches with no clicks.
5
5
  */
6
6
  searches: SearchNoClickEvent[];
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import type { SearchNoResultEvent } from './searchNoResultEvent';
2
2
  export type GetSearchesNoResultsResponse = {
3
3
  /**
4
- * A list of searches with no results and their count.
4
+ * Searches with no results.
5
5
  */
6
6
  searches: SearchNoResultEvent[];
7
7
  };
@@ -1,6 +1,6 @@
1
1
  export type GetStatusResponse = {
2
2
  /**
3
- * Date of last update (ISO-8601 format).
3
+ * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
4
4
  */
5
5
  updatedAt: string;
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import type { TopCountry } from './topCountry';
2
2
  export type GetTopCountriesResponse = {
3
3
  /**
4
- * A list of countries with their count.
4
+ * Countries.
5
5
  */
6
6
  countries: TopCountry[];
7
7
  };
@@ -1,10 +1,10 @@
1
1
  export type GetTopFilterAttribute = {
2
2
  /**
3
- * The attribute.
3
+ * Attribute name.
4
4
  */
5
5
  attribute: string;
6
6
  /**
7
- * The number of occurrences.
7
+ * Number of occurrences.
8
8
  */
9
9
  count: number;
10
10
  };
@@ -1,7 +1,7 @@
1
1
  import type { GetTopFilterAttribute } from './getTopFilterAttribute';
2
2
  export type GetTopFilterAttributesResponse = {
3
3
  /**
4
- * A list of attributes with their count.
4
+ * Filterable attributes.
5
5
  */
6
6
  attributes: GetTopFilterAttribute[];
7
7
  };
@@ -1,18 +1,18 @@
1
1
  export type GetTopFilterForAttribute = {
2
2
  /**
3
- * The attribute.
3
+ * Attribute name.
4
4
  */
5
5
  attribute: string;
6
6
  /**
7
- * The operator.
7
+ * Operator.
8
8
  */
9
9
  operator: string;
10
10
  /**
11
- * The value of the attribute.
11
+ * Attribute value.
12
12
  */
13
13
  value: string;
14
14
  /**
15
- * The number of occurrences.
15
+ * Number of occurrences.
16
16
  */
17
17
  count: number;
18
18
  };
@@ -1,7 +1,7 @@
1
1
  import type { GetTopFilterForAttribute } from './getTopFilterForAttribute';
2
2
  export type GetTopFilterForAttributeResponse = {
3
3
  /**
4
- * A list of filters for the given attributes.
4
+ * Filter values for an attribute.
5
5
  */
6
6
  values: GetTopFilterForAttribute[];
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import type { GetTopFiltersNoResultsValues } from './getTopFiltersNoResultsValues';
2
2
  export type GetTopFiltersNoResultsResponse = {
3
3
  /**
4
- * A list of filters without results.
4
+ * Filters with no results.
5
5
  */
6
6
  values: GetTopFiltersNoResultsValues[];
7
7
  };
@@ -1,14 +1,14 @@
1
1
  export type GetTopFiltersNoResultsValue = {
2
2
  /**
3
- * The attribute.
3
+ * Attribute name.
4
4
  */
5
5
  attribute: string;
6
6
  /**
7
- * The operator.
7
+ * Operator.
8
8
  */
9
9
  operator: string;
10
10
  /**
11
- * The value of the attribute.
11
+ * Attribute value.
12
12
  */
13
13
  value: string;
14
14
  };
@@ -1,11 +1,11 @@
1
1
  import type { GetTopFiltersNoResultsValue } from './getTopFiltersNoResultsValue';
2
2
  export type GetTopFiltersNoResultsValues = {
3
3
  /**
4
- * The number of occurrences.
4
+ * Number of occurrences.
5
5
  */
6
6
  count: number;
7
7
  /**
8
- * A list of filters without results.
8
+ * Filters with no results.
9
9
  */
10
10
  values: GetTopFiltersNoResultsValue[];
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import type { UserWithDate } from './userWithDate';
2
2
  export type GetUsersCountResponse = {
3
3
  /**
4
- * The number of occurrences.
4
+ * Number of occurrences.
5
5
  */
6
6
  count: number;
7
7
  /**
8
- * A list of users count with their date.
8
+ * User count.
9
9
  */
10
10
  dates: UserWithDate[];
11
11
  };
@@ -1,18 +1,18 @@
1
1
  export type NoClickRateEvent = {
2
2
  /**
3
- * The click-through rate.
3
+ * [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
4
4
  */
5
5
  rate: number;
6
6
  /**
7
- * The number of click event.
7
+ * Number of tracked _and_ untracked searches (where the `clickAnalytics` parameter isn\'t `true`).
8
8
  */
9
9
  count: number;
10
10
  /**
11
- * The number of click event.
11
+ * Number of click events.
12
12
  */
13
13
  noClickCount: number;
14
14
  /**
15
- * Date of the event.
15
+ * Date of the event in the format YYYY-MM-DD.
16
16
  */
17
17
  date: string;
18
18
  };
@@ -1,18 +1,18 @@
1
1
  export type NoResultsRateEvent = {
2
2
  /**
3
- * Date of the event.
3
+ * Date of the event in the format YYYY-MM-DD.
4
4
  */
5
5
  date: string;
6
6
  /**
7
- * The number of occurrences.
7
+ * Number of occurences.
8
8
  */
9
9
  noResultCount: number;
10
10
  /**
11
- * The number of occurrences.
11
+ * Number of tracked _and_ untracked searches (where the `clickAnalytics` parameter isn\'t `true`).
12
12
  */
13
13
  count: number;
14
14
  /**
15
- * The click-through rate.
15
+ * [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
16
16
  */
17
17
  rate: number;
18
18
  };
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Method for ordering results. `clickThroughRate`, `conversionRate` and `averageClickPosition` are only available if the `clickAnalytics` parameter is `true`.
3
+ */
1
4
  export type OrderBy = 'averageClickPosition' | 'clickThroughRate' | 'conversionRate' | 'searchCount';
2
5
  //# sourceMappingURL=orderBy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"orderBy.d.ts","sourceRoot":"","sources":["../../model/orderBy.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,GACf,sBAAsB,GACtB,kBAAkB,GAClB,gBAAgB,GAChB,aAAa,CAAC"}
1
+ {"version":3,"file":"orderBy.d.ts","sourceRoot":"","sources":["../../model/orderBy.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,OAAO,GACf,sBAAsB,GACtB,kBAAkB,GAClB,gBAAgB,GAChB,aAAa,CAAC"}
@@ -1,10 +1,10 @@
1
1
  export type SearchEvent = {
2
2
  /**
3
- * Date of the event.
3
+ * Date of the event in the format YYYY-MM-DD.
4
4
  */
5
5
  date: string;
6
6
  /**
7
- * The number of occurrences.
7
+ * Number of occurrences.
8
8
  */
9
9
  count: number;
10
10
  };
@@ -1,14 +1,14 @@
1
1
  export type SearchNoClickEvent = {
2
2
  /**
3
- * The search query.
3
+ * User query.
4
4
  */
5
5
  search: string;
6
6
  /**
7
- * The number of occurrences.
7
+ * Number of occurrences.
8
8
  */
9
9
  count: number;
10
10
  /**
11
- * The number of occurrences.
11
+ * Number of occurrences.
12
12
  */
13
13
  withFilterCount: number;
14
14
  };
@@ -1,14 +1,14 @@
1
1
  export type SearchNoResultEvent = {
2
2
  /**
3
- * The search query.
3
+ * User query.
4
4
  */
5
5
  search: string;
6
6
  /**
7
- * The number of occurrences.
7
+ * Number of occurrences.
8
8
  */
9
9
  count: number;
10
10
  /**
11
- * Number of hits that the search query matched.
11
+ * Number of hits the search query matched.
12
12
  */
13
13
  nbHits: number;
14
14
  };
@@ -1,10 +1,10 @@
1
1
  export type TopCountry = {
2
2
  /**
3
- * The country.
3
+ * Country.
4
4
  */
5
5
  country: string;
6
6
  /**
7
- * The number of occurrences.
7
+ * Number of occurrences.
8
8
  */
9
9
  count: number;
10
10
  };
@@ -1,10 +1,10 @@
1
1
  export type TopHit = {
2
2
  /**
3
- * The hit.
3
+ * Hit.
4
4
  */
5
5
  hit: string;
6
6
  /**
7
- * The number of occurrences.
7
+ * Number of occurrences.
8
8
  */
9
9
  count: number;
10
10
  };
@@ -1,30 +1,30 @@
1
1
  export type TopHitWithAnalytics = {
2
2
  /**
3
- * The hit.
3
+ * Hit.
4
4
  */
5
5
  hit: string;
6
6
  /**
7
- * The number of occurrences.
7
+ * Number of occurrences.
8
8
  */
9
9
  count: number;
10
10
  /**
11
- * The click-through rate.
11
+ * [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
12
12
  */
13
13
  clickThroughRate: number;
14
14
  /**
15
- * The conversion rate.
15
+ * [Conversion rate (CR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
16
16
  */
17
17
  conversionRate: number;
18
18
  /**
19
- * The number of tracked search click.
19
+ * Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
20
20
  */
21
21
  trackedSearchCount: number;
22
22
  /**
23
- * The number of click event.
23
+ * Number of click events.
24
24
  */
25
25
  clickCount: number;
26
26
  /**
27
- * The number of converted clicks.
27
+ * Number of converted clicks.
28
28
  */
29
29
  conversionCount: number;
30
30
  };
@@ -1,7 +1,7 @@
1
1
  import type { TopHit } from './topHit';
2
2
  export type TopHitsResponse = {
3
3
  /**
4
- * A list of top hits with their count.
4
+ * Top hits.
5
5
  */
6
6
  hits: TopHit[];
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import type { TopHitWithAnalytics } from './topHitWithAnalytics';
2
2
  export type TopHitsResponseWithAnalytics = {
3
3
  /**
4
- * A list of top hits with their count and analytics.
4
+ * Top hits.
5
5
  */
6
6
  hits: TopHitWithAnalytics[];
7
7
  };
@@ -1,14 +1,14 @@
1
1
  export type TopSearch = {
2
2
  /**
3
- * The search query.
3
+ * User query.
4
4
  */
5
5
  search: string;
6
6
  /**
7
- * The number of occurrences.
7
+ * Number of tracked _and_ untracked searches (where the `clickAnalytics` parameter isn\'t `true`).
8
8
  */
9
9
  count: number;
10
10
  /**
11
- * Number of hits that the search query matched.
11
+ * Number of hits the search query matched.
12
12
  */
13
13
  nbHits: number;
14
14
  };
@@ -1,38 +1,38 @@
1
1
  export type TopSearchWithAnalytics = {
2
2
  /**
3
- * The search query.
3
+ * User query.
4
4
  */
5
5
  search: string;
6
6
  /**
7
- * The number of occurrences.
7
+ * Number of tracked _and_ untracked searches (where the `clickAnalytics` parameter isn\'t `true`).
8
8
  */
9
9
  count: number;
10
10
  /**
11
- * The click-through rate.
11
+ * [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
12
12
  */
13
13
  clickThroughRate: number;
14
14
  /**
15
- * The average position of all the click count event.
15
+ * Average [position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position) of clicked search result.
16
16
  */
17
17
  averageClickPosition: number;
18
18
  /**
19
- * The conversion rate.
19
+ * [Conversion rate (CR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
20
20
  */
21
21
  conversionRate: number;
22
22
  /**
23
- * The number of tracked search click.
23
+ * Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
24
24
  */
25
25
  trackedSearchCount: number;
26
26
  /**
27
- * The number of click event.
27
+ * Number of click events.
28
28
  */
29
29
  clickCount: number;
30
30
  /**
31
- * The number of converted clicks.
31
+ * Number of converted clicks.
32
32
  */
33
33
  conversionCount: number;
34
34
  /**
35
- * Number of hits that the search query matched.
35
+ * Number of hits the search query matched.
36
36
  */
37
37
  nbHits: number;
38
38
  };
@@ -1,7 +1,7 @@
1
1
  import type { TopSearch } from './topSearch';
2
2
  export type TopSearchesResponse = {
3
3
  /**
4
- * A list of top searches with their count.
4
+ * Top searches with their hits count.
5
5
  */
6
6
  searches: TopSearch[];
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import type { TopSearchWithAnalytics } from './topSearchWithAnalytics';
2
2
  export type TopSearchesResponseWithAnalytics = {
3
3
  /**
4
- * A list of top searches with their count and analytics.
4
+ * Top searches with their hits count and analytics.
5
5
  */
6
6
  searches: TopSearchWithAnalytics[];
7
7
  };
@@ -1,10 +1,10 @@
1
1
  export type UserWithDate = {
2
2
  /**
3
- * Date of the event.
3
+ * Date of the event in the format YYYY-MM-DD.
4
4
  */
5
5
  date: string;
6
6
  /**
7
- * The number of occurrences.
7
+ * Number of occurrences.
8
8
  */
9
9
  count: number;
10
10
  };