@algolia/client-analytics 5.0.0-alpha.11 → 5.0.0-alpha.111

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 (216) hide show
  1. package/dist/builds/browser.d.ts +39 -5
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +39 -5
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/{client-analytics.cjs.js → client-analytics.cjs} +1083 -924
  6. package/dist/client-analytics.esm.browser.js +1293 -1160
  7. package/dist/client-analytics.esm.node.js +1083 -922
  8. package/dist/client-analytics.umd.js +2 -2
  9. package/dist/model/clickPositionsInner.d.ts +14 -0
  10. package/dist/model/clickPositionsInner.d.ts.map +1 -0
  11. package/dist/model/clientMethodProps.d.ts +578 -507
  12. package/dist/model/clientMethodProps.d.ts.map +1 -1
  13. package/dist/model/currenciesValue.d.ts +14 -0
  14. package/dist/model/currenciesValue.d.ts.map +1 -0
  15. package/dist/model/dailyAddToCartRates.d.ts +19 -0
  16. package/dist/model/dailyAddToCartRates.d.ts.map +1 -0
  17. package/dist/model/dailyAverageClicks.d.ts +15 -0
  18. package/dist/model/dailyAverageClicks.d.ts.map +1 -0
  19. package/dist/model/dailyClickThroughRates.d.ts +19 -0
  20. package/dist/model/dailyClickThroughRates.d.ts.map +1 -0
  21. package/dist/model/dailyConversionRates.d.ts +19 -0
  22. package/dist/model/dailyConversionRates.d.ts.map +1 -0
  23. package/dist/model/dailyNoClickRates.d.ts +19 -0
  24. package/dist/model/dailyNoClickRates.d.ts.map +1 -0
  25. package/dist/model/dailyNoResultsRates.d.ts +19 -0
  26. package/dist/model/dailyNoResultsRates.d.ts.map +1 -0
  27. package/dist/model/dailyPurchaseRates.d.ts +19 -0
  28. package/dist/model/dailyPurchaseRates.d.ts.map +1 -0
  29. package/dist/model/dailyRevenue.d.ts +12 -0
  30. package/dist/model/dailyRevenue.d.ts.map +1 -0
  31. package/dist/model/dailySearches.d.ts +11 -0
  32. package/dist/model/dailySearches.d.ts.map +1 -0
  33. package/dist/model/dailySearchesNoClicks.d.ts +15 -0
  34. package/dist/model/dailySearchesNoClicks.d.ts.map +1 -0
  35. package/dist/model/dailySearchesNoResults.d.ts +15 -0
  36. package/dist/model/dailySearchesNoResults.d.ts.map +1 -0
  37. package/dist/model/dailyUsers.d.ts +11 -0
  38. package/dist/model/dailyUsers.d.ts.map +1 -0
  39. package/dist/model/direction.d.ts +1 -1
  40. package/dist/model/direction.d.ts.map +1 -1
  41. package/dist/model/errorBase.d.ts +6 -6
  42. package/dist/model/errorBase.d.ts.map +1 -1
  43. package/dist/model/getAddToCartRateResponse.d.ts +20 -0
  44. package/dist/model/getAddToCartRateResponse.d.ts.map +1 -0
  45. package/dist/model/getAverageClickPositionResponse.d.ts +15 -15
  46. package/dist/model/getAverageClickPositionResponse.d.ts.map +1 -1
  47. package/dist/model/getClickPositionsResponse.d.ts +7 -7
  48. package/dist/model/getClickPositionsResponse.d.ts.map +1 -1
  49. package/dist/model/getClickThroughRateResponse.d.ts +19 -19
  50. package/dist/model/getClickThroughRateResponse.d.ts.map +1 -1
  51. package/dist/model/getConversionRateResponse.d.ts +20 -0
  52. package/dist/model/getConversionRateResponse.d.ts.map +1 -0
  53. package/dist/model/getNoClickRateResponse.d.ts +19 -19
  54. package/dist/model/getNoClickRateResponse.d.ts.map +1 -1
  55. package/dist/model/getNoResultsRateResponse.d.ts +19 -19
  56. package/dist/model/getNoResultsRateResponse.d.ts.map +1 -1
  57. package/dist/model/getPurchaseRateResponse.d.ts +20 -0
  58. package/dist/model/getPurchaseRateResponse.d.ts.map +1 -0
  59. package/dist/model/getRevenue.d.ts +13 -0
  60. package/dist/model/getRevenue.d.ts.map +1 -0
  61. package/dist/model/getSearchesCountResponse.d.ts +11 -11
  62. package/dist/model/getSearchesCountResponse.d.ts.map +1 -1
  63. package/dist/model/getSearchesNoClicksResponse.d.ts +7 -7
  64. package/dist/model/getSearchesNoClicksResponse.d.ts.map +1 -1
  65. package/dist/model/getSearchesNoResultsResponse.d.ts +7 -7
  66. package/dist/model/getSearchesNoResultsResponse.d.ts.map +1 -1
  67. package/dist/model/getStatusResponse.d.ts +6 -6
  68. package/dist/model/getStatusResponse.d.ts.map +1 -1
  69. package/dist/model/getTopCountriesResponse.d.ts +7 -7
  70. package/dist/model/getTopCountriesResponse.d.ts.map +1 -1
  71. package/dist/model/getTopFilterAttribute.d.ts +10 -10
  72. package/dist/model/getTopFilterAttribute.d.ts.map +1 -1
  73. package/dist/model/getTopFilterAttributesResponse.d.ts +7 -7
  74. package/dist/model/getTopFilterAttributesResponse.d.ts.map +1 -1
  75. package/dist/model/getTopFilterForAttribute.d.ts +16 -18
  76. package/dist/model/getTopFilterForAttribute.d.ts.map +1 -1
  77. package/dist/model/getTopFilterForAttributeResponse.d.ts +7 -7
  78. package/dist/model/getTopFilterForAttributeResponse.d.ts.map +1 -1
  79. package/dist/model/getTopFiltersNoResultsResponse.d.ts +7 -7
  80. package/dist/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
  81. package/dist/model/getTopFiltersNoResultsValue.d.ts +12 -14
  82. package/dist/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
  83. package/dist/model/getTopFiltersNoResultsValues.d.ts +11 -11
  84. package/dist/model/getTopFiltersNoResultsValues.d.ts.map +1 -1
  85. package/dist/model/getTopHitsResponse.d.ts +4 -3
  86. package/dist/model/getTopHitsResponse.d.ts.map +1 -1
  87. package/dist/model/getTopSearchesResponse.d.ts +4 -3
  88. package/dist/model/getTopSearchesResponse.d.ts.map +1 -1
  89. package/dist/model/getUsersCountResponse.d.ts +11 -11
  90. package/dist/model/getUsersCountResponse.d.ts.map +1 -1
  91. package/dist/model/index.d.ts +56 -44
  92. package/dist/model/index.d.ts.map +1 -1
  93. package/dist/model/operator.d.ts +5 -0
  94. package/dist/model/operator.d.ts.map +1 -0
  95. package/dist/model/orderBy.d.ts +4 -1
  96. package/dist/model/orderBy.d.ts.map +1 -1
  97. package/dist/model/topCountry.d.ts +10 -10
  98. package/dist/model/topCountry.d.ts.map +1 -1
  99. package/dist/model/topHit.d.ts +10 -10
  100. package/dist/model/topHit.d.ts.map +1 -1
  101. package/dist/model/topHitWithAnalytics.d.ts +30 -30
  102. package/dist/model/topHitWithAnalytics.d.ts.map +1 -1
  103. package/dist/model/topHitWithRevenueAnalytics.d.ts +52 -0
  104. package/dist/model/topHitWithRevenueAnalytics.d.ts.map +1 -0
  105. package/dist/model/topHitsResponse.d.ts +7 -7
  106. package/dist/model/topHitsResponse.d.ts.map +1 -1
  107. package/dist/model/topHitsResponseWithAnalytics.d.ts +7 -7
  108. package/dist/model/topHitsResponseWithAnalytics.d.ts.map +1 -1
  109. package/dist/model/topHitsResponseWithRevenueAnalytics.d.ts +8 -0
  110. package/dist/model/topHitsResponseWithRevenueAnalytics.d.ts.map +1 -0
  111. package/dist/model/topSearch.d.ts +14 -14
  112. package/dist/model/topSearch.d.ts.map +1 -1
  113. package/dist/model/topSearchWithAnalytics.d.ts +43 -38
  114. package/dist/model/topSearchWithAnalytics.d.ts.map +1 -1
  115. package/dist/model/topSearchWithRevenueAnalytics.d.ts +65 -0
  116. package/dist/model/topSearchWithRevenueAnalytics.d.ts.map +1 -0
  117. package/dist/model/topSearchesResponse.d.ts +7 -7
  118. package/dist/model/topSearchesResponse.d.ts.map +1 -1
  119. package/dist/model/topSearchesResponseWithAnalytics.d.ts +7 -7
  120. package/dist/model/topSearchesResponseWithAnalytics.d.ts.map +1 -1
  121. package/dist/model/topSearchesResponseWithRevenueAnalytics.d.ts +8 -0
  122. package/dist/model/topSearchesResponseWithRevenueAnalytics.d.ts.map +1 -0
  123. package/dist/src/analyticsClient.d.ts +391 -318
  124. package/dist/src/analyticsClient.d.ts.map +1 -1
  125. package/index.js +1 -1
  126. package/model/clickPositionsInner.ts +16 -0
  127. package/model/clientMethodProps.ts +211 -137
  128. package/model/currenciesValue.ts +16 -0
  129. package/model/dailyAddToCartRates.ts +23 -0
  130. package/model/dailyAverageClicks.ts +18 -0
  131. package/model/dailyClickThroughRates.ts +23 -0
  132. package/model/dailyConversionRates.ts +23 -0
  133. package/model/dailyNoClickRates.ts +23 -0
  134. package/model/dailyNoResultsRates.ts +23 -0
  135. package/model/dailyPurchaseRates.ts +23 -0
  136. package/model/dailyRevenue.ts +15 -0
  137. package/model/dailySearches.ts +13 -0
  138. package/model/dailySearchesNoClicks.ts +18 -0
  139. package/model/dailySearchesNoResults.ts +18 -0
  140. package/model/dailyUsers.ts +13 -0
  141. package/model/direction.ts +1 -1
  142. package/model/errorBase.ts +1 -1
  143. package/model/getAddToCartRateResponse.ts +25 -0
  144. package/model/getAverageClickPositionResponse.ts +7 -7
  145. package/model/getClickPositionsResponse.ts +4 -4
  146. package/model/getClickThroughRateResponse.ts +8 -8
  147. package/model/getConversionRateResponse.ts +25 -0
  148. package/model/getNoClickRateResponse.ts +7 -7
  149. package/model/getNoResultsRateResponse.ts +7 -7
  150. package/model/getPurchaseRateResponse.ts +25 -0
  151. package/model/getRevenue.ts +16 -0
  152. package/model/getSearchesCountResponse.ts +5 -5
  153. package/model/getSearchesNoClicksResponse.ts +4 -4
  154. package/model/getSearchesNoResultsResponse.ts +4 -4
  155. package/model/getStatusResponse.ts +3 -3
  156. package/model/getTopCountriesResponse.ts +2 -2
  157. package/model/getTopFilterAttribute.ts +3 -3
  158. package/model/getTopFilterAttributesResponse.ts +2 -2
  159. package/model/getTopFilterForAttribute.ts +7 -8
  160. package/model/getTopFilterForAttributeResponse.ts +2 -2
  161. package/model/getTopFiltersNoResultsResponse.ts +3 -3
  162. package/model/getTopFiltersNoResultsValue.ts +6 -7
  163. package/model/getTopFiltersNoResultsValues.ts +3 -3
  164. package/model/getTopHitsResponse.ts +6 -2
  165. package/model/getTopSearchesResponse.ts +4 -2
  166. package/model/getUsersCountResponse.ts +5 -5
  167. package/model/index.ts +24 -12
  168. package/model/operator.ts +6 -0
  169. package/model/orderBy.ts +4 -1
  170. package/model/topCountry.ts +3 -3
  171. package/model/topHit.ts +3 -3
  172. package/model/topHitWithAnalytics.ts +11 -11
  173. package/model/topHitWithRevenueAnalytics.ts +65 -0
  174. package/model/topHitsResponse.ts +2 -2
  175. package/model/topHitsResponseWithAnalytics.ts +2 -2
  176. package/model/topHitsResponseWithRevenueAnalytics.ts +10 -0
  177. package/model/topSearch.ts +4 -4
  178. package/model/topSearchWithAnalytics.ts +20 -13
  179. package/model/topSearchWithRevenueAnalytics.ts +81 -0
  180. package/model/topSearchesResponse.ts +2 -2
  181. package/model/topSearchesResponseWithAnalytics.ts +2 -2
  182. package/model/topSearchesResponseWithRevenueAnalytics.ts +10 -0
  183. package/package.json +10 -9
  184. package/dist/model/averageClickEvent.d.ts +0 -15
  185. package/dist/model/averageClickEvent.d.ts.map +0 -1
  186. package/dist/model/clickPosition.d.ts +0 -11
  187. package/dist/model/clickPosition.d.ts.map +0 -1
  188. package/dist/model/clickThroughRateEvent.d.ts +0 -19
  189. package/dist/model/clickThroughRateEvent.d.ts.map +0 -1
  190. package/dist/model/conversionRateEvent.d.ts +0 -19
  191. package/dist/model/conversionRateEvent.d.ts.map +0 -1
  192. package/dist/model/getConversationRateResponse.d.ts +0 -20
  193. package/dist/model/getConversationRateResponse.d.ts.map +0 -1
  194. package/dist/model/noClickRateEvent.d.ts +0 -19
  195. package/dist/model/noClickRateEvent.d.ts.map +0 -1
  196. package/dist/model/noResultsRateEvent.d.ts +0 -19
  197. package/dist/model/noResultsRateEvent.d.ts.map +0 -1
  198. package/dist/model/searchEvent.d.ts +0 -11
  199. package/dist/model/searchEvent.d.ts.map +0 -1
  200. package/dist/model/searchNoClickEvent.d.ts +0 -15
  201. package/dist/model/searchNoClickEvent.d.ts.map +0 -1
  202. package/dist/model/searchNoResultEvent.d.ts +0 -15
  203. package/dist/model/searchNoResultEvent.d.ts.map +0 -1
  204. package/dist/model/userWithDate.d.ts +0 -11
  205. package/dist/model/userWithDate.d.ts.map +0 -1
  206. package/model/averageClickEvent.ts +0 -18
  207. package/model/clickPosition.ts +0 -13
  208. package/model/clickThroughRateEvent.ts +0 -23
  209. package/model/conversionRateEvent.ts +0 -23
  210. package/model/getConversationRateResponse.ts +0 -25
  211. package/model/noClickRateEvent.ts +0 -23
  212. package/model/noResultsRateEvent.ts +0 -23
  213. package/model/searchEvent.ts +0 -13
  214. package/model/searchNoClickEvent.ts +0 -18
  215. package/model/searchNoResultEvent.ts +0 -18
  216. package/model/userWithDate.ts +0 -13
@@ -1,23 +1,22 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
+
3
+ import type { Operator } from './operator';
2
4
 
3
5
  export type GetTopFilterForAttribute = {
4
6
  /**
5
- * The attribute.
7
+ * Attribute name.
6
8
  */
7
9
  attribute: string;
8
10
 
9
- /**
10
- * The operator.
11
- */
12
- operator: string;
11
+ operator: Operator;
13
12
 
14
13
  /**
15
- * The value of the attribute.
14
+ * Attribute value.
16
15
  */
17
16
  value: string;
18
17
 
19
18
  /**
20
- * The number of occurrences.
19
+ * Number of occurrences.
21
20
  */
22
21
  count: number;
23
22
  };
@@ -1,10 +1,10 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
3
  import type { GetTopFilterForAttribute } from './getTopFilterForAttribute';
4
4
 
5
5
  export type GetTopFilterForAttributeResponse = {
6
6
  /**
7
- * A list of filters for the given attributes.
7
+ * Filter values for an attribute.
8
8
  */
9
9
  values: GetTopFilterForAttribute[];
10
10
  };
@@ -1,10 +1,10 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
3
  import type { GetTopFiltersNoResultsValues } from './getTopFiltersNoResultsValues';
4
4
 
5
5
  export type GetTopFiltersNoResultsResponse = {
6
6
  /**
7
- * A list of filters without results.
7
+ * Filters for searches without any results. If null, the search term specified with the `search` parameter is not a search without results, or the `search` parameter is absent from the request.
8
8
  */
9
- values: GetTopFiltersNoResultsValues[];
9
+ values: GetTopFiltersNoResultsValues[] | null;
10
10
  };
@@ -1,18 +1,17 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
+
3
+ import type { Operator } from './operator';
2
4
 
3
5
  export type GetTopFiltersNoResultsValue = {
4
6
  /**
5
- * The attribute.
7
+ * Attribute name.
6
8
  */
7
9
  attribute: string;
8
10
 
9
- /**
10
- * The operator.
11
- */
12
- operator: string;
11
+ operator: Operator;
13
12
 
14
13
  /**
15
- * The value of the attribute.
14
+ * Attribute value.
16
15
  */
17
16
  value: string;
18
17
  };
@@ -1,15 +1,15 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
3
  import type { GetTopFiltersNoResultsValue } from './getTopFiltersNoResultsValue';
4
4
 
5
5
  export type GetTopFiltersNoResultsValues = {
6
6
  /**
7
- * The number of occurrences.
7
+ * Number of occurrences.
8
8
  */
9
9
  count: number;
10
10
 
11
11
  /**
12
- * A list of filters without results.
12
+ * Filters with no results.
13
13
  */
14
14
  values: GetTopFiltersNoResultsValue[];
15
15
  };
@@ -1,6 +1,10 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
3
  import type { TopHitsResponse } from './topHitsResponse';
4
4
  import type { TopHitsResponseWithAnalytics } from './topHitsResponseWithAnalytics';
5
+ import type { TopHitsResponseWithRevenueAnalytics } from './topHitsResponseWithRevenueAnalytics';
5
6
 
6
- export type GetTopHitsResponse = TopHitsResponse | TopHitsResponseWithAnalytics;
7
+ export type GetTopHitsResponse =
8
+ | TopHitsResponse
9
+ | TopHitsResponseWithAnalytics
10
+ | TopHitsResponseWithRevenueAnalytics;
@@ -1,8 +1,10 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
3
  import type { TopSearchesResponse } from './topSearchesResponse';
4
4
  import type { TopSearchesResponseWithAnalytics } from './topSearchesResponseWithAnalytics';
5
+ import type { TopSearchesResponseWithRevenueAnalytics } from './topSearchesResponseWithRevenueAnalytics';
5
6
 
6
7
  export type GetTopSearchesResponse =
7
8
  | TopSearchesResponse
8
- | TopSearchesResponseWithAnalytics;
9
+ | TopSearchesResponseWithAnalytics
10
+ | TopSearchesResponseWithRevenueAnalytics;
@@ -1,15 +1,15 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
- import type { UserWithDate } from './userWithDate';
3
+ import type { DailyUsers } from './dailyUsers';
4
4
 
5
5
  export type GetUsersCountResponse = {
6
6
  /**
7
- * The number of occurrences.
7
+ * Number of unique users.
8
8
  */
9
9
  count: number;
10
10
 
11
11
  /**
12
- * A list of users count with their date.
12
+ * Daily number of unique users.
13
13
  */
14
- dates: UserWithDate[];
14
+ dates: DailyUsers[];
15
15
  };
package/model/index.ts CHANGED
@@ -1,17 +1,30 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
- export * from './averageClickEvent';
4
- export * from './clickPosition';
5
- export * from './clickThroughRateEvent';
6
- export * from './conversionRateEvent';
3
+ export * from './clickPositionsInner';
4
+ export * from './currenciesValue';
5
+ export * from './dailyAddToCartRates';
6
+ export * from './dailyAverageClicks';
7
+ export * from './dailyClickThroughRates';
8
+ export * from './dailyConversionRates';
9
+ export * from './dailyNoClickRates';
10
+ export * from './dailyNoResultsRates';
11
+ export * from './dailyPurchaseRates';
12
+ export * from './dailyRevenue';
13
+ export * from './dailySearches';
14
+ export * from './dailySearchesNoClicks';
15
+ export * from './dailySearchesNoResults';
16
+ export * from './dailyUsers';
7
17
  export * from './direction';
8
18
  export * from './errorBase';
19
+ export * from './getAddToCartRateResponse';
9
20
  export * from './getAverageClickPositionResponse';
10
21
  export * from './getClickPositionsResponse';
11
22
  export * from './getClickThroughRateResponse';
12
- export * from './getConversationRateResponse';
23
+ export * from './getConversionRateResponse';
13
24
  export * from './getNoClickRateResponse';
14
25
  export * from './getNoResultsRateResponse';
26
+ export * from './getPurchaseRateResponse';
27
+ export * from './getRevenue';
15
28
  export * from './getSearchesCountResponse';
16
29
  export * from './getSearchesNoClicksResponse';
17
30
  export * from './getSearchesNoResultsResponse';
@@ -27,20 +40,19 @@ export * from './getTopFiltersNoResultsValues';
27
40
  export * from './getTopHitsResponse';
28
41
  export * from './getTopSearchesResponse';
29
42
  export * from './getUsersCountResponse';
30
- export * from './noClickRateEvent';
31
- export * from './noResultsRateEvent';
43
+ export * from './operator';
32
44
  export * from './orderBy';
33
- export * from './searchEvent';
34
- export * from './searchNoClickEvent';
35
- export * from './searchNoResultEvent';
36
45
  export * from './topCountry';
37
46
  export * from './topHit';
38
47
  export * from './topHitWithAnalytics';
48
+ export * from './topHitWithRevenueAnalytics';
39
49
  export * from './topHitsResponse';
40
50
  export * from './topHitsResponseWithAnalytics';
51
+ export * from './topHitsResponseWithRevenueAnalytics';
41
52
  export * from './topSearch';
42
53
  export * from './topSearchWithAnalytics';
54
+ export * from './topSearchWithRevenueAnalytics';
43
55
  export * from './topSearchesResponse';
44
56
  export * from './topSearchesResponseWithAnalytics';
45
- export * from './userWithDate';
57
+ export * from './topSearchesResponseWithRevenueAnalytics';
46
58
  export * from './clientMethodProps';
@@ -0,0 +1,6 @@
1
+ // 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.
2
+
3
+ /**
4
+ * Character that characterizes how the filter is applied. For example, for a facet filter `facet:value`, `:` is the operator. For a numeric filter `count>50`, `>` is the operator.
5
+ */
6
+ export type Operator = ':' | '!=' | '<' | '<=' | '=' | '>' | '>=';
package/model/orderBy.ts CHANGED
@@ -1,5 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
+ /**
4
+ * Attribute by which to order the response items. If the `clickAnalytics` parameter is false, only `searchCount` is available.
5
+ */
3
6
  export type OrderBy =
4
7
  | 'averageClickPosition'
5
8
  | 'clickThroughRate'
@@ -1,13 +1,13 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
3
  export type TopCountry = {
4
4
  /**
5
- * The country.
5
+ * Country code.
6
6
  */
7
7
  country: string;
8
8
 
9
9
  /**
10
- * The number of occurrences.
10
+ * Number of occurrences.
11
11
  */
12
12
  count: number;
13
13
  };
package/model/topHit.ts CHANGED
@@ -1,13 +1,13 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
3
  export type TopHit = {
4
4
  /**
5
- * The hit.
5
+ * Object ID of a record that\'s returned as a search result.
6
6
  */
7
7
  hit: string;
8
8
 
9
9
  /**
10
- * The number of occurrences.
10
+ * Number of occurrences.
11
11
  */
12
12
  count: number;
13
13
  };
@@ -1,38 +1,38 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
3
  export type TopHitWithAnalytics = {
4
4
  /**
5
- * The hit.
5
+ * Object ID of a record that\'s returned as a search result.
6
6
  */
7
7
  hit: string;
8
8
 
9
9
  /**
10
- * The number of occurrences.
10
+ * Number of occurrences.
11
11
  */
12
12
  count: number;
13
13
 
14
14
  /**
15
- * The click-through rate.
15
+ * Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
16
16
  */
17
- clickThroughRate: number;
17
+ clickThroughRate: number | null;
18
18
 
19
19
  /**
20
- * The conversion rate.
20
+ * Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
21
21
  */
22
- conversionRate: number;
22
+ conversionRate: number | null;
23
23
 
24
24
  /**
25
- * The number of tracked search click.
25
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
26
26
  */
27
- trackedSearchCount: number;
27
+ trackedHitCount: number;
28
28
 
29
29
  /**
30
- * The number of click event.
30
+ * Number of clicks associated with this search.
31
31
  */
32
32
  clickCount: number;
33
33
 
34
34
  /**
35
- * The number of converted clicks.
35
+ * Number of conversions from this search.
36
36
  */
37
37
  conversionCount: number;
38
38
  };
@@ -0,0 +1,65 @@
1
+ // 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.
2
+
3
+ import type { CurrenciesValue } from './currenciesValue';
4
+
5
+ export type TopHitWithRevenueAnalytics = {
6
+ /**
7
+ * Object ID of a record that\'s returned as a search result.
8
+ */
9
+ hit: string;
10
+
11
+ /**
12
+ * Number of occurrences.
13
+ */
14
+ count: number;
15
+
16
+ /**
17
+ * Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
18
+ */
19
+ clickThroughRate: number | null;
20
+
21
+ /**
22
+ * Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
23
+ */
24
+ conversionRate: number | null;
25
+
26
+ /**
27
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
28
+ */
29
+ trackedHitCount: number;
30
+
31
+ /**
32
+ * Number of clicks associated with this search.
33
+ */
34
+ clickCount: number;
35
+
36
+ /**
37
+ * Number of conversions from this search.
38
+ */
39
+ conversionCount: number;
40
+
41
+ /**
42
+ * Add-to-cart rate, calculated as number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
43
+ */
44
+ addToCartRate: number | null;
45
+
46
+ /**
47
+ * Number of add-to-cart events from this search.
48
+ */
49
+ addToCartCount: number;
50
+
51
+ /**
52
+ * Purchase rate, calculated as number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
53
+ */
54
+ purchaseRate: number | null;
55
+
56
+ /**
57
+ * Number of purchase events from this search.
58
+ */
59
+ purchaseCount: number;
60
+
61
+ /**
62
+ * Revenue associated with this search, broken-down by currencies.
63
+ */
64
+ currencies: Record<string, CurrenciesValue>;
65
+ };
@@ -1,10 +1,10 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
3
  import type { TopHit } from './topHit';
4
4
 
5
5
  export type TopHitsResponse = {
6
6
  /**
7
- * A list of top hits with their count.
7
+ * Most frequent search results.
8
8
  */
9
9
  hits: TopHit[];
10
10
  };
@@ -1,10 +1,10 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
3
  import type { TopHitWithAnalytics } from './topHitWithAnalytics';
4
4
 
5
5
  export type TopHitsResponseWithAnalytics = {
6
6
  /**
7
- * A list of top hits with their count and analytics.
7
+ * Most frequent search results with click and conversion metrics.
8
8
  */
9
9
  hits: TopHitWithAnalytics[];
10
10
  };
@@ -0,0 +1,10 @@
1
+ // 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.
2
+
3
+ import type { TopHitWithRevenueAnalytics } from './topHitWithRevenueAnalytics';
4
+
5
+ export type TopHitsResponseWithRevenueAnalytics = {
6
+ /**
7
+ * Most frequent search results with click, conversion, and revenue metrics.
8
+ */
9
+ hits: TopHitWithRevenueAnalytics[];
10
+ };
@@ -1,18 +1,18 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
3
  export type TopSearch = {
4
4
  /**
5
- * The search query.
5
+ * Search query.
6
6
  */
7
7
  search: string;
8
8
 
9
9
  /**
10
- * The number of occurrences.
10
+ * Number of searches.
11
11
  */
12
12
  count: number;
13
13
 
14
14
  /**
15
- * Number of hits that the search query matched.
15
+ * Number of results (hits).
16
16
  */
17
17
  nbHits: number;
18
18
  };
@@ -1,48 +1,55 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
+
3
+ import type { ClickPositionsInner } from './clickPositionsInner';
2
4
 
3
5
  export type TopSearchWithAnalytics = {
4
6
  /**
5
- * The search query.
7
+ * Search query.
6
8
  */
7
9
  search: string;
8
10
 
9
11
  /**
10
- * The number of occurrences.
12
+ * Number of searches.
11
13
  */
12
14
  count: number;
13
15
 
14
16
  /**
15
- * The click-through rate.
17
+ * Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
18
+ */
19
+ clickThroughRate: number | null;
20
+
21
+ /**
22
+ * Average position of a clicked search result in the list of search results. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
16
23
  */
17
- clickThroughRate: number;
24
+ averageClickPosition: number | null;
18
25
 
19
26
  /**
20
- * The average position of all the click count event.
27
+ * List of positions in the search results and clicks associated with this search.
21
28
  */
22
- averageClickPosition: number;
29
+ clickPositions: ClickPositionsInner[];
23
30
 
24
31
  /**
25
- * The conversion rate.
32
+ * Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
26
33
  */
27
- conversionRate: number;
34
+ conversionRate: number | null;
28
35
 
29
36
  /**
30
- * The number of tracked search click.
37
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
31
38
  */
32
39
  trackedSearchCount: number;
33
40
 
34
41
  /**
35
- * The number of click event.
42
+ * Number of clicks associated with this search.
36
43
  */
37
44
  clickCount: number;
38
45
 
39
46
  /**
40
- * The number of converted clicks.
47
+ * Number of conversions from this search.
41
48
  */
42
49
  conversionCount: number;
43
50
 
44
51
  /**
45
- * Number of hits that the search query matched.
52
+ * Number of results (hits).
46
53
  */
47
54
  nbHits: number;
48
55
  };
@@ -0,0 +1,81 @@
1
+ // 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.
2
+
3
+ import type { ClickPositionsInner } from './clickPositionsInner';
4
+ import type { CurrenciesValue } from './currenciesValue';
5
+
6
+ export type TopSearchWithRevenueAnalytics = {
7
+ /**
8
+ * Search query.
9
+ */
10
+ search: string;
11
+
12
+ /**
13
+ * Number of searches.
14
+ */
15
+ count: number;
16
+
17
+ /**
18
+ * Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
19
+ */
20
+ clickThroughRate: number | null;
21
+
22
+ /**
23
+ * Average position of a clicked search result in the list of search results. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
24
+ */
25
+ averageClickPosition: number | null;
26
+
27
+ /**
28
+ * List of positions in the search results and clicks associated with this search.
29
+ */
30
+ clickPositions: ClickPositionsInner[];
31
+
32
+ /**
33
+ * Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
34
+ */
35
+ conversionRate: number | null;
36
+
37
+ /**
38
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
39
+ */
40
+ trackedSearchCount: number;
41
+
42
+ /**
43
+ * Number of clicks associated with this search.
44
+ */
45
+ clickCount: number;
46
+
47
+ /**
48
+ * Number of conversions from this search.
49
+ */
50
+ conversionCount: number;
51
+
52
+ /**
53
+ * Number of results (hits).
54
+ */
55
+ nbHits: number;
56
+
57
+ /**
58
+ * Revenue associated with this search, broken-down by currencies.
59
+ */
60
+ currencies: Record<string, CurrenciesValue>;
61
+
62
+ /**
63
+ * Add-to-cart rate, calculated as number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
64
+ */
65
+ addToCartRate: number | null;
66
+
67
+ /**
68
+ * Number of add-to-cart events from this search.
69
+ */
70
+ addToCartCount: number;
71
+
72
+ /**
73
+ * Purchase rate, calculated as number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
74
+ */
75
+ purchaseRate: number | null;
76
+
77
+ /**
78
+ * Number of purchase events from this search.
79
+ */
80
+ purchaseCount: number;
81
+ };
@@ -1,10 +1,10 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
3
  import type { TopSearch } from './topSearch';
4
4
 
5
5
  export type TopSearchesResponse = {
6
6
  /**
7
- * A list of top searches with their count.
7
+ * Most popular searches and their number of search results (hits).
8
8
  */
9
9
  searches: TopSearch[];
10
10
  };
@@ -1,10 +1,10 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // 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.
2
2
 
3
3
  import type { TopSearchWithAnalytics } from './topSearchWithAnalytics';
4
4
 
5
5
  export type TopSearchesResponseWithAnalytics = {
6
6
  /**
7
- * A list of top searches with their count and analytics.
7
+ * Most popular searches and their associated click and conversion metrics.
8
8
  */
9
9
  searches: TopSearchWithAnalytics[];
10
10
  };
@@ -0,0 +1,10 @@
1
+ // 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.
2
+
3
+ import type { TopSearchWithRevenueAnalytics } from './topSearchWithRevenueAnalytics';
4
+
5
+ export type TopSearchesResponseWithRevenueAnalytics = {
6
+ /**
7
+ * Most popular searches, including their click and revenue metrics.
8
+ */
9
+ searches: TopSearchWithRevenueAnalytics[];
10
+ };