@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,54 +1,112 @@
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 { Direction } from './direction';
4
4
  import type { OrderBy } from './orderBy';
5
5
 
6
6
  /**
7
- * Properties for the `del` method.
7
+ * Properties for the `customDelete` method.
8
8
  */
9
- export type DelProps = {
9
+ export type CustomDeleteProps = {
10
10
  /**
11
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
11
+ * Path of the endpoint, anything after \"/1\" must be specified.
12
12
  */
13
13
  path: string;
14
14
  /**
15
- * Query parameters to be applied to the current query.
15
+ * Query parameters to apply to the current query.
16
16
  */
17
17
  parameters?: Record<string, any>;
18
18
  };
19
19
 
20
20
  /**
21
- * Properties for the `get` method.
21
+ * Properties for the `customGet` method.
22
22
  */
23
- export type GetProps = {
23
+ export type CustomGetProps = {
24
24
  /**
25
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
25
+ * Path of the endpoint, anything after \"/1\" must be specified.
26
26
  */
27
27
  path: string;
28
28
  /**
29
- * Query parameters to be applied to the current query.
29
+ * Query parameters to apply to the current query.
30
30
  */
31
31
  parameters?: Record<string, any>;
32
32
  };
33
33
 
34
+ /**
35
+ * Properties for the `customPost` method.
36
+ */
37
+ export type CustomPostProps = {
38
+ /**
39
+ * Path of the endpoint, anything after \"/1\" must be specified.
40
+ */
41
+ path: string;
42
+ /**
43
+ * Query parameters to apply to the current query.
44
+ */
45
+ parameters?: Record<string, any>;
46
+ /**
47
+ * Parameters to send with the custom request.
48
+ */
49
+ body?: Record<string, any>;
50
+ };
51
+
52
+ /**
53
+ * Properties for the `customPut` method.
54
+ */
55
+ export type CustomPutProps = {
56
+ /**
57
+ * Path of the endpoint, anything after \"/1\" must be specified.
58
+ */
59
+ path: string;
60
+ /**
61
+ * Query parameters to apply to the current query.
62
+ */
63
+ parameters?: Record<string, any>;
64
+ /**
65
+ * Parameters to send with the custom request.
66
+ */
67
+ body?: Record<string, any>;
68
+ };
69
+
70
+ /**
71
+ * Properties for the `getAddToCartRate` method.
72
+ */
73
+ export type GetAddToCartRateProps = {
74
+ /**
75
+ * Index name.
76
+ */
77
+ index: string;
78
+ /**
79
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
80
+ */
81
+ startDate?: string;
82
+ /**
83
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
84
+ */
85
+ endDate?: string;
86
+ /**
87
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
88
+ */
89
+ tags?: string;
90
+ };
91
+
34
92
  /**
35
93
  * Properties for the `getAverageClickPosition` method.
36
94
  */
37
95
  export type GetAverageClickPositionProps = {
38
96
  /**
39
- * The index name to target.
97
+ * Index name.
40
98
  */
41
99
  index: string;
42
100
  /**
43
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
101
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
44
102
  */
45
103
  startDate?: string;
46
104
  /**
47
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
105
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
48
106
  */
49
107
  endDate?: string;
50
108
  /**
51
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
109
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
52
110
  */
53
111
  tags?: string;
54
112
  };
@@ -58,19 +116,19 @@ export type GetAverageClickPositionProps = {
58
116
  */
59
117
  export type GetClickPositionsProps = {
60
118
  /**
61
- * The index name to target.
119
+ * Index name.
62
120
  */
63
121
  index: string;
64
122
  /**
65
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
123
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
66
124
  */
67
125
  startDate?: string;
68
126
  /**
69
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
127
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
70
128
  */
71
129
  endDate?: string;
72
130
  /**
73
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
131
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
74
132
  */
75
133
  tags?: string;
76
134
  };
@@ -80,41 +138,41 @@ export type GetClickPositionsProps = {
80
138
  */
81
139
  export type GetClickThroughRateProps = {
82
140
  /**
83
- * The index name to target.
141
+ * Index name.
84
142
  */
85
143
  index: string;
86
144
  /**
87
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
145
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
88
146
  */
89
147
  startDate?: string;
90
148
  /**
91
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
149
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
92
150
  */
93
151
  endDate?: string;
94
152
  /**
95
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
153
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
96
154
  */
97
155
  tags?: string;
98
156
  };
99
157
 
100
158
  /**
101
- * Properties for the `getConversationRate` method.
159
+ * Properties for the `getConversionRate` method.
102
160
  */
103
- export type GetConversationRateProps = {
161
+ export type GetConversionRateProps = {
104
162
  /**
105
- * The index name to target.
163
+ * Index name.
106
164
  */
107
165
  index: string;
108
166
  /**
109
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
167
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
110
168
  */
111
169
  startDate?: string;
112
170
  /**
113
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
171
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
114
172
  */
115
173
  endDate?: string;
116
174
  /**
117
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
175
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
118
176
  */
119
177
  tags?: string;
120
178
  };
@@ -124,19 +182,19 @@ export type GetConversationRateProps = {
124
182
  */
125
183
  export type GetNoClickRateProps = {
126
184
  /**
127
- * The index name to target.
185
+ * Index name.
128
186
  */
129
187
  index: string;
130
188
  /**
131
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
189
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
132
190
  */
133
191
  startDate?: string;
134
192
  /**
135
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
193
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
136
194
  */
137
195
  endDate?: string;
138
196
  /**
139
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
197
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
140
198
  */
141
199
  tags?: string;
142
200
  };
@@ -146,19 +204,63 @@ export type GetNoClickRateProps = {
146
204
  */
147
205
  export type GetNoResultsRateProps = {
148
206
  /**
149
- * The index name to target.
207
+ * Index name.
208
+ */
209
+ index: string;
210
+ /**
211
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
212
+ */
213
+ startDate?: string;
214
+ /**
215
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
216
+ */
217
+ endDate?: string;
218
+ /**
219
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
220
+ */
221
+ tags?: string;
222
+ };
223
+
224
+ /**
225
+ * Properties for the `getPurchaseRate` method.
226
+ */
227
+ export type GetPurchaseRateProps = {
228
+ /**
229
+ * Index name.
230
+ */
231
+ index: string;
232
+ /**
233
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
234
+ */
235
+ startDate?: string;
236
+ /**
237
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
238
+ */
239
+ endDate?: string;
240
+ /**
241
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
242
+ */
243
+ tags?: string;
244
+ };
245
+
246
+ /**
247
+ * Properties for the `getRevenue` method.
248
+ */
249
+ export type GetRevenueProps = {
250
+ /**
251
+ * Index name.
150
252
  */
151
253
  index: string;
152
254
  /**
153
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
255
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
154
256
  */
155
257
  startDate?: string;
156
258
  /**
157
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
259
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
158
260
  */
159
261
  endDate?: string;
160
262
  /**
161
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
263
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
162
264
  */
163
265
  tags?: string;
164
266
  };
@@ -168,19 +270,19 @@ export type GetNoResultsRateProps = {
168
270
  */
169
271
  export type GetSearchesCountProps = {
170
272
  /**
171
- * The index name to target.
273
+ * Index name.
172
274
  */
173
275
  index: string;
174
276
  /**
175
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
277
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
176
278
  */
177
279
  startDate?: string;
178
280
  /**
179
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
281
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
180
282
  */
181
283
  endDate?: string;
182
284
  /**
183
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
285
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
184
286
  */
185
287
  tags?: string;
186
288
  };
@@ -190,27 +292,27 @@ export type GetSearchesCountProps = {
190
292
  */
191
293
  export type GetSearchesNoClicksProps = {
192
294
  /**
193
- * The index name to target.
295
+ * Index name.
194
296
  */
195
297
  index: string;
196
298
  /**
197
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
299
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
198
300
  */
199
301
  startDate?: string;
200
302
  /**
201
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
303
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
202
304
  */
203
305
  endDate?: string;
204
306
  /**
205
- * Number of records to return. Limit is the size of the page.
307
+ * Number of items to return.
206
308
  */
207
309
  limit?: number;
208
310
  /**
209
- * Position of the starting record. Used for paging. 0 is the first record.
311
+ * Position of the first item to return.
210
312
  */
211
313
  offset?: number;
212
314
  /**
213
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
315
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
214
316
  */
215
317
  tags?: string;
216
318
  };
@@ -220,27 +322,27 @@ export type GetSearchesNoClicksProps = {
220
322
  */
221
323
  export type GetSearchesNoResultsProps = {
222
324
  /**
223
- * The index name to target.
325
+ * Index name.
224
326
  */
225
327
  index: string;
226
328
  /**
227
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
329
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
228
330
  */
229
331
  startDate?: string;
230
332
  /**
231
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
333
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
232
334
  */
233
335
  endDate?: string;
234
336
  /**
235
- * Number of records to return. Limit is the size of the page.
337
+ * Number of items to return.
236
338
  */
237
339
  limit?: number;
238
340
  /**
239
- * Position of the starting record. Used for paging. 0 is the first record.
341
+ * Position of the first item to return.
240
342
  */
241
343
  offset?: number;
242
344
  /**
243
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
345
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
244
346
  */
245
347
  tags?: string;
246
348
  };
@@ -250,7 +352,7 @@ export type GetSearchesNoResultsProps = {
250
352
  */
251
353
  export type GetStatusProps = {
252
354
  /**
253
- * The index name to target.
355
+ * Index name.
254
356
  */
255
357
  index: string;
256
358
  };
@@ -260,27 +362,27 @@ export type GetStatusProps = {
260
362
  */
261
363
  export type GetTopCountriesProps = {
262
364
  /**
263
- * The index name to target.
365
+ * Index name.
264
366
  */
265
367
  index: string;
266
368
  /**
267
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
369
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
268
370
  */
269
371
  startDate?: string;
270
372
  /**
271
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
373
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
272
374
  */
273
375
  endDate?: string;
274
376
  /**
275
- * Number of records to return. Limit is the size of the page.
377
+ * Number of items to return.
276
378
  */
277
379
  limit?: number;
278
380
  /**
279
- * Position of the starting record. Used for paging. 0 is the first record.
381
+ * Position of the first item to return.
280
382
  */
281
383
  offset?: number;
282
384
  /**
283
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
385
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
284
386
  */
285
387
  tags?: string;
286
388
  };
@@ -290,31 +392,31 @@ export type GetTopCountriesProps = {
290
392
  */
291
393
  export type GetTopFilterAttributesProps = {
292
394
  /**
293
- * The index name to target.
395
+ * Index name.
294
396
  */
295
397
  index: string;
296
398
  /**
297
- * The query term to search for. Must match the exact user input.
399
+ * Search query.
298
400
  */
299
401
  search?: string;
300
402
  /**
301
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
403
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
302
404
  */
303
405
  startDate?: string;
304
406
  /**
305
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
407
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
306
408
  */
307
409
  endDate?: string;
308
410
  /**
309
- * Number of records to return. Limit is the size of the page.
411
+ * Number of items to return.
310
412
  */
311
413
  limit?: number;
312
414
  /**
313
- * Position of the starting record. Used for paging. 0 is the first record.
415
+ * Position of the first item to return.
314
416
  */
315
417
  offset?: number;
316
418
  /**
317
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
419
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
318
420
  */
319
421
  tags?: string;
320
422
  };
@@ -324,35 +426,35 @@ export type GetTopFilterAttributesProps = {
324
426
  */
325
427
  export type GetTopFilterForAttributeProps = {
326
428
  /**
327
- * The exact name of the attribute.
429
+ * Attribute name.
328
430
  */
329
431
  attribute: string;
330
432
  /**
331
- * The index name to target.
433
+ * Index name.
332
434
  */
333
435
  index: string;
334
436
  /**
335
- * The query term to search for. Must match the exact user input.
437
+ * Search query.
336
438
  */
337
439
  search?: string;
338
440
  /**
339
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
441
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
340
442
  */
341
443
  startDate?: string;
342
444
  /**
343
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
445
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
344
446
  */
345
447
  endDate?: string;
346
448
  /**
347
- * Number of records to return. Limit is the size of the page.
449
+ * Number of items to return.
348
450
  */
349
451
  limit?: number;
350
452
  /**
351
- * Position of the starting record. Used for paging. 0 is the first record.
453
+ * Position of the first item to return.
352
454
  */
353
455
  offset?: number;
354
456
  /**
355
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
457
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
356
458
  */
357
459
  tags?: string;
358
460
  };
@@ -362,31 +464,31 @@ export type GetTopFilterForAttributeProps = {
362
464
  */
363
465
  export type GetTopFiltersNoResultsProps = {
364
466
  /**
365
- * The index name to target.
467
+ * Index name.
366
468
  */
367
469
  index: string;
368
470
  /**
369
- * The query term to search for. Must match the exact user input.
471
+ * Search query.
370
472
  */
371
473
  search?: string;
372
474
  /**
373
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
475
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
374
476
  */
375
477
  startDate?: string;
376
478
  /**
377
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
479
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
378
480
  */
379
481
  endDate?: string;
380
482
  /**
381
- * Number of records to return. Limit is the size of the page.
483
+ * Number of items to return.
382
484
  */
383
485
  limit?: number;
384
486
  /**
385
- * Position of the starting record. Used for paging. 0 is the first record.
487
+ * Position of the first item to return.
386
488
  */
387
489
  offset?: number;
388
490
  /**
389
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
491
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
390
492
  */
391
493
  tags?: string;
392
494
  };
@@ -396,35 +498,39 @@ export type GetTopFiltersNoResultsProps = {
396
498
  */
397
499
  export type GetTopHitsProps = {
398
500
  /**
399
- * The index name to target.
501
+ * Index name.
400
502
  */
401
503
  index: string;
402
504
  /**
403
- * The query term to search for. Must match the exact user input.
505
+ * Search query.
404
506
  */
405
507
  search?: string;
406
508
  /**
407
- * Whether to include the click-through and conversion rates for a search.
509
+ * Whether to include metrics related to click and conversion events in the response.
408
510
  */
409
511
  clickAnalytics?: boolean;
410
512
  /**
411
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
513
+ * Whether to include revenue-related metrics in the response. If true, metrics related to click and conversion events are also included in the response.
514
+ */
515
+ revenueAnalytics?: boolean;
516
+ /**
517
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
412
518
  */
413
519
  startDate?: string;
414
520
  /**
415
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
521
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
416
522
  */
417
523
  endDate?: string;
418
524
  /**
419
- * Number of records to return. Limit is the size of the page.
525
+ * Number of items to return.
420
526
  */
421
527
  limit?: number;
422
528
  /**
423
- * Position of the starting record. Used for paging. 0 is the first record.
529
+ * Position of the first item to return.
424
530
  */
425
531
  offset?: number;
426
532
  /**
427
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
533
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
428
534
  */
429
535
  tags?: string;
430
536
  };
@@ -434,39 +540,43 @@ export type GetTopHitsProps = {
434
540
  */
435
541
  export type GetTopSearchesProps = {
436
542
  /**
437
- * The index name to target.
543
+ * Index name.
438
544
  */
439
545
  index: string;
440
546
  /**
441
- * Whether to include the click-through and conversion rates for a search.
547
+ * Whether to include metrics related to click and conversion events in the response.
442
548
  */
443
549
  clickAnalytics?: boolean;
444
550
  /**
445
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
551
+ * Whether to include revenue-related metrics in the response. If true, metrics related to click and conversion events are also included in the response.
552
+ */
553
+ revenueAnalytics?: boolean;
554
+ /**
555
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
446
556
  */
447
557
  startDate?: string;
448
558
  /**
449
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
559
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
450
560
  */
451
561
  endDate?: string;
452
562
  /**
453
- * Reorder the results.
563
+ * Attribute by which to order the response items. If the `clickAnalytics` parameter is false, only `searchCount` is available.
454
564
  */
455
565
  orderBy?: OrderBy;
456
566
  /**
457
- * The sorting of the result.
567
+ * Sorting direction of the results: ascending or descending.
458
568
  */
459
569
  direction?: Direction;
460
570
  /**
461
- * Number of records to return. Limit is the size of the page.
571
+ * Number of items to return.
462
572
  */
463
573
  limit?: number;
464
574
  /**
465
- * Position of the starting record. Used for paging. 0 is the first record.
575
+ * Position of the first item to return.
466
576
  */
467
577
  offset?: number;
468
578
  /**
469
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
579
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
470
580
  */
471
581
  tags?: string;
472
582
  };
@@ -476,55 +586,19 @@ export type GetTopSearchesProps = {
476
586
  */
477
587
  export type GetUsersCountProps = {
478
588
  /**
479
- * The index name to target.
589
+ * Index name.
480
590
  */
481
591
  index: string;
482
592
  /**
483
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
593
+ * Start date of the period to analyze, in `YYYY-MM-DD` format.
484
594
  */
485
595
  startDate?: string;
486
596
  /**
487
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
597
+ * End date of the period to analyze, in `YYYY-MM-DD` format.
488
598
  */
489
599
  endDate?: string;
490
600
  /**
491
- * Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded.
601
+ * Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
492
602
  */
493
603
  tags?: string;
494
604
  };
495
-
496
- /**
497
- * Properties for the `post` method.
498
- */
499
- export type PostProps = {
500
- /**
501
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
502
- */
503
- path: string;
504
- /**
505
- * Query parameters to be applied to the current query.
506
- */
507
- parameters?: Record<string, any>;
508
- /**
509
- * The parameters to send with the custom request.
510
- */
511
- body?: Record<string, any>;
512
- };
513
-
514
- /**
515
- * Properties for the `put` method.
516
- */
517
- export type PutProps = {
518
- /**
519
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
520
- */
521
- path: string;
522
- /**
523
- * Query parameters to be applied to the current query.
524
- */
525
- parameters?: Record<string, any>;
526
- /**
527
- * The parameters to send with the custom request.
528
- */
529
- body?: Record<string, any>;
530
- };