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

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
@@ -0,0 +1,16 @@
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
+ * Currency code.
5
+ */
6
+ export type CurrenciesValue = {
7
+ /**
8
+ * Currency code.
9
+ */
10
+ currency?: string;
11
+
12
+ /**
13
+ * Revenue associated with this search in this currency.
14
+ */
15
+ revenue?: number;
16
+ };
@@ -0,0 +1,23 @@
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
+ export type DailyAddToCartRates = {
4
+ /**
5
+ * 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.
6
+ */
7
+ rate: number | null;
8
+
9
+ /**
10
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
11
+ */
12
+ trackedSearchCount: number;
13
+
14
+ /**
15
+ * Number of add-to-cart events from this search.
16
+ */
17
+ addToCartCount: number;
18
+
19
+ /**
20
+ * Date in the format YYYY-MM-DD.
21
+ */
22
+ date: string;
23
+ };
@@ -0,0 +1,18 @@
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
+ export type DailyAverageClicks = {
4
+ /**
5
+ * 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.
6
+ */
7
+ average: number | null;
8
+
9
+ /**
10
+ * Number of clicks associated with this search.
11
+ */
12
+ clickCount: number;
13
+
14
+ /**
15
+ * Date in the format YYYY-MM-DD.
16
+ */
17
+ date: string;
18
+ };
@@ -0,0 +1,23 @@
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
+ export type DailyClickThroughRates = {
4
+ /**
5
+ * 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.
6
+ */
7
+ rate: number | null;
8
+
9
+ /**
10
+ * Number of clicks associated with this search.
11
+ */
12
+ clickCount: number;
13
+
14
+ /**
15
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
16
+ */
17
+ trackedSearchCount: number;
18
+
19
+ /**
20
+ * Date in the format YYYY-MM-DD.
21
+ */
22
+ date: string;
23
+ };
@@ -0,0 +1,23 @@
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
+ export type DailyConversionRates = {
4
+ /**
5
+ * 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.
6
+ */
7
+ rate: number | null;
8
+
9
+ /**
10
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
11
+ */
12
+ trackedSearchCount: number;
13
+
14
+ /**
15
+ * Number of conversions from this search.
16
+ */
17
+ conversionCount: number;
18
+
19
+ /**
20
+ * Date in the format YYYY-MM-DD.
21
+ */
22
+ date: string;
23
+ };
@@ -0,0 +1,23 @@
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
+ export type DailyNoClickRates = {
4
+ /**
5
+ * No click rate, calculated as number of tracked searches without any click divided by the number of tracked searches.
6
+ */
7
+ rate: number;
8
+
9
+ /**
10
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
11
+ */
12
+ count: number;
13
+
14
+ /**
15
+ * Number of times this search was returned as a result without any click.
16
+ */
17
+ noClickCount: number;
18
+
19
+ /**
20
+ * Date in the format YYYY-MM-DD.
21
+ */
22
+ date: string;
23
+ };
@@ -0,0 +1,23 @@
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
+ export type DailyNoResultsRates = {
4
+ /**
5
+ * Date in the format YYYY-MM-DD.
6
+ */
7
+ date: string;
8
+
9
+ /**
10
+ * Number of searches without any results.
11
+ */
12
+ noResultCount: number;
13
+
14
+ /**
15
+ * Number of searches.
16
+ */
17
+ count: number;
18
+
19
+ /**
20
+ * No results rate, calculated as number of searches with zero results divided by the total number of searches.
21
+ */
22
+ rate: number;
23
+ };
@@ -0,0 +1,23 @@
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
+ export type DailyPurchaseRates = {
4
+ /**
5
+ * 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.
6
+ */
7
+ rate: number | null;
8
+
9
+ /**
10
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
11
+ */
12
+ trackedSearchCount: number;
13
+
14
+ /**
15
+ * Number of purchase events from this search.
16
+ */
17
+ purchaseCount: number;
18
+
19
+ /**
20
+ * Date in the format YYYY-MM-DD.
21
+ */
22
+ date: string;
23
+ };
@@ -0,0 +1,15 @@
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 DailyRevenue = {
6
+ /**
7
+ * Revenue associated with this search, broken-down by currencies.
8
+ */
9
+ currencies: Record<string, CurrenciesValue>;
10
+
11
+ /**
12
+ * Date in the format YYYY-MM-DD.
13
+ */
14
+ date: string;
15
+ };
@@ -0,0 +1,13 @@
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
+ export type DailySearches = {
4
+ /**
5
+ * Date in the format YYYY-MM-DD.
6
+ */
7
+ date: string;
8
+
9
+ /**
10
+ * Number of occurrences.
11
+ */
12
+ count: number;
13
+ };
@@ -0,0 +1,18 @@
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
+ export type DailySearchesNoClicks = {
4
+ /**
5
+ * Search query.
6
+ */
7
+ search: string;
8
+
9
+ /**
10
+ * Number of tracked searches.
11
+ */
12
+ count: number;
13
+
14
+ /**
15
+ * Number of results (hits).
16
+ */
17
+ nbHits: number;
18
+ };
@@ -0,0 +1,18 @@
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
+ export type DailySearchesNoResults = {
4
+ /**
5
+ * Search query.
6
+ */
7
+ search: string;
8
+
9
+ /**
10
+ * Number of occurrences.
11
+ */
12
+ count: number;
13
+
14
+ /**
15
+ * Number of searches for this term with applied filters.
16
+ */
17
+ withFilterCount: number;
18
+ };
@@ -0,0 +1,13 @@
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
+ export type DailyUsers = {
4
+ /**
5
+ * Date in the format YYYY-MM-DD.
6
+ */
7
+ date: string;
8
+
9
+ /**
10
+ * Number of unique users.
11
+ */
12
+ count: number;
13
+ };
@@ -1,3 +1,3 @@
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 Direction = 'asc' | 'desc';
@@ -1,4 +1,4 @@
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
  /**
4
4
  * Error.
@@ -0,0 +1,25 @@
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 { DailyAddToCartRates } from './dailyAddToCartRates';
4
+
5
+ export type GetAddToCartRateResponse = {
6
+ /**
7
+ * 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.
8
+ */
9
+ rate: number | null;
10
+
11
+ /**
12
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
13
+ */
14
+ trackedSearchCount: number;
15
+
16
+ /**
17
+ * Number of add-to-cart events from this search.
18
+ */
19
+ addToCartCount: number;
20
+
21
+ /**
22
+ * Daily add-to-cart rates.
23
+ */
24
+ dates: DailyAddToCartRates[];
25
+ };
@@ -1,20 +1,20 @@
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 { AverageClickEvent } from './averageClickEvent';
3
+ import type { DailyAverageClicks } from './dailyAverageClicks';
4
4
 
5
5
  export type GetAverageClickPositionResponse = {
6
6
  /**
7
- * The average of all the click count event.
7
+ * 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.
8
8
  */
9
- average: number;
9
+ average: number | null;
10
10
 
11
11
  /**
12
- * The number of click event.
12
+ * Number of clicks associated with this search.
13
13
  */
14
14
  clickCount: number;
15
15
 
16
16
  /**
17
- * A list of average click position with their date.
17
+ * Daily average click positions.
18
18
  */
19
- dates: AverageClickEvent[];
19
+ dates: DailyAverageClicks[];
20
20
  };
@@ -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
- import type { ClickPosition } from './clickPosition';
3
+ import type { ClickPositionsInner } from './clickPositionsInner';
4
4
 
5
5
  export type GetClickPositionsResponse = {
6
6
  /**
7
- * A list of the click positions with their click count.
7
+ * List of positions in the search results and clicks associated with this search.
8
8
  */
9
- positions: ClickPosition[];
9
+ positions: ClickPositionsInner[];
10
10
  };
@@ -1,25 +1,25 @@
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 { ClickThroughRateEvent } from './clickThroughRateEvent';
3
+ import type { DailyClickThroughRates } from './dailyClickThroughRates';
4
4
 
5
5
  export type GetClickThroughRateResponse = {
6
6
  /**
7
- * The click-through rate.
7
+ * 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.
8
8
  */
9
- rate: number;
9
+ rate: number | null;
10
10
 
11
11
  /**
12
- * The number of click event.
12
+ * Number of clicks associated with this search.
13
13
  */
14
14
  clickCount: number;
15
15
 
16
16
  /**
17
- * The number of tracked search click.
17
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
18
18
  */
19
19
  trackedSearchCount: number;
20
20
 
21
21
  /**
22
- * A list of click-through rate events with their date.
22
+ * Daily click-through rates.
23
23
  */
24
- dates: ClickThroughRateEvent[];
24
+ dates: DailyClickThroughRates[];
25
25
  };
@@ -0,0 +1,25 @@
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 { DailyConversionRates } from './dailyConversionRates';
4
+
5
+ export type GetConversionRateResponse = {
6
+ /**
7
+ * 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.
8
+ */
9
+ rate: number | null;
10
+
11
+ /**
12
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
13
+ */
14
+ trackedSearchCount: number;
15
+
16
+ /**
17
+ * Number of conversions from this search.
18
+ */
19
+ conversionCount: number;
20
+
21
+ /**
22
+ * Daily conversion rates.
23
+ */
24
+ dates: DailyConversionRates[];
25
+ };
@@ -1,25 +1,25 @@
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 { NoClickRateEvent } from './noClickRateEvent';
3
+ import type { DailyNoClickRates } from './dailyNoClickRates';
4
4
 
5
5
  export type GetNoClickRateResponse = {
6
6
  /**
7
- * The click-through rate.
7
+ * No click rate, calculated as number of tracked searches without any click divided by the number of tracked searches.
8
8
  */
9
9
  rate: number;
10
10
 
11
11
  /**
12
- * The number of click event.
12
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
13
13
  */
14
14
  count: number;
15
15
 
16
16
  /**
17
- * The number of click event.
17
+ * Number of times this search was returned as a result without any click.
18
18
  */
19
19
  noClickCount: number;
20
20
 
21
21
  /**
22
- * A list of searches without clicks with their date, rate and counts.
22
+ * Daily no click rates.
23
23
  */
24
- dates: NoClickRateEvent[];
24
+ dates: DailyNoClickRates[];
25
25
  };
@@ -1,25 +1,25 @@
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 { NoResultsRateEvent } from './noResultsRateEvent';
3
+ import type { DailyNoResultsRates } from './dailyNoResultsRates';
4
4
 
5
5
  export type GetNoResultsRateResponse = {
6
6
  /**
7
- * The click-through rate.
7
+ * No results rate, calculated as number of searches with zero results divided by the total number of searches.
8
8
  */
9
9
  rate: number;
10
10
 
11
11
  /**
12
- * The number of occurrences.
12
+ * Number of searches.
13
13
  */
14
14
  count: number;
15
15
 
16
16
  /**
17
- * The number of occurrences.
17
+ * Number of searches without any results.
18
18
  */
19
19
  noResultCount: number;
20
20
 
21
21
  /**
22
- * A list of searches without results with their date, rate and counts.
22
+ * Daily no results rates.
23
23
  */
24
- dates: NoResultsRateEvent[];
24
+ dates: DailyNoResultsRates[];
25
25
  };
@@ -0,0 +1,25 @@
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 { DailyPurchaseRates } from './dailyPurchaseRates';
4
+
5
+ export type GetPurchaseRateResponse = {
6
+ /**
7
+ * 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.
8
+ */
9
+ rate: number | null;
10
+
11
+ /**
12
+ * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
13
+ */
14
+ trackedSearchCount: number;
15
+
16
+ /**
17
+ * Number of purchase events from this search.
18
+ */
19
+ purchaseCount: number;
20
+
21
+ /**
22
+ * Daily purchase rates.
23
+ */
24
+ dates: DailyPurchaseRates[];
25
+ };
@@ -0,0 +1,16 @@
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
+ import type { DailyRevenue } from './dailyRevenue';
5
+
6
+ export type GetRevenue = {
7
+ /**
8
+ * Revenue associated with this search, broken-down by currencies.
9
+ */
10
+ currencies: Record<string, CurrenciesValue>;
11
+
12
+ /**
13
+ * Daily revenue.
14
+ */
15
+ dates: DailyRevenue[];
16
+ };
@@ -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 { SearchEvent } from './searchEvent';
3
+ import type { DailySearches } from './dailySearches';
4
4
 
5
5
  export type GetSearchesCountResponse = {
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 search events with their date and count.
12
+ * Daily number of searches.
13
13
  */
14
- dates: SearchEvent[];
14
+ dates: DailySearches[];
15
15
  };
@@ -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
- import type { SearchNoClickEvent } from './searchNoClickEvent';
3
+ import type { DailySearchesNoClicks } from './dailySearchesNoClicks';
4
4
 
5
5
  export type GetSearchesNoClicksResponse = {
6
6
  /**
7
- * A list of searches with no clicks and their count.
7
+ * Searches without any clicks.
8
8
  */
9
- searches: SearchNoClickEvent[];
9
+ searches: DailySearchesNoClicks[];
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
- import type { SearchNoResultEvent } from './searchNoResultEvent';
3
+ import type { DailySearchesNoResults } from './dailySearchesNoResults';
4
4
 
5
5
  export type GetSearchesNoResultsResponse = {
6
6
  /**
7
- * A list of searches with no results and their count.
7
+ * Searches without results.
8
8
  */
9
- searches: SearchNoResultEvent[];
9
+ searches: DailySearchesNoResults[];
10
10
  };
@@ -1,8 +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
3
  export type GetStatusResponse = {
4
4
  /**
5
- * Date of last update (ISO-8601 format).
5
+ * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format. If null, no update was performed yet.
6
6
  */
7
- updatedAt: string;
7
+ updatedAt: string | null;
8
8
  };
@@ -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 { TopCountry } from './topCountry';
4
4
 
5
5
  export type GetTopCountriesResponse = {
6
6
  /**
7
- * A list of countries with their count.
7
+ * Countries and number of searches.
8
8
  */
9
9
  countries: TopCountry[];
10
10
  };
@@ -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 GetTopFilterAttribute = {
4
4
  /**
5
- * The attribute.
5
+ * Attribute name.
6
6
  */
7
7
  attribute: string;
8
8
 
9
9
  /**
10
- * The number of occurrences.
10
+ * Number of occurrences.
11
11
  */
12
12
  count: number;
13
13
  };
@@ -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 { GetTopFilterAttribute } from './getTopFilterAttribute';
4
4
 
5
5
  export type GetTopFilterAttributesResponse = {
6
6
  /**
7
- * A list of attributes with their count.
7
+ * Most frequent filters.
8
8
  */
9
9
  attributes: GetTopFilterAttribute[];
10
10
  };