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