@algolia/client-analytics 5.0.0-alpha.10 → 5.0.0-alpha.100
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.
- package/dist/builds/browser.d.ts +5 -5
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +5 -5
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/{client-analytics.cjs.js → client-analytics.cjs} +952 -924
- package/dist/client-analytics.esm.browser.js +1163 -1159
- package/dist/client-analytics.esm.node.js +952 -922
- package/dist/client-analytics.umd.js +2 -2
- package/dist/model/averageClickEvent.d.ts +14 -14
- package/dist/model/averageClickEvent.d.ts.map +1 -1
- package/dist/model/clickPosition.d.ts +10 -10
- package/dist/model/clickPosition.d.ts.map +1 -1
- package/dist/model/clickThroughRateEvent.d.ts +18 -18
- package/dist/model/clickThroughRateEvent.d.ts.map +1 -1
- package/dist/model/clientMethodProps.d.ts +507 -507
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/conversionRateEvent.d.ts +18 -18
- package/dist/model/conversionRateEvent.d.ts.map +1 -1
- package/dist/model/direction.d.ts +1 -1
- package/dist/model/direction.d.ts.map +1 -1
- package/dist/model/errorBase.d.ts +6 -6
- package/dist/model/errorBase.d.ts.map +1 -1
- package/dist/model/getAverageClickPositionResponse.d.ts +15 -15
- package/dist/model/getAverageClickPositionResponse.d.ts.map +1 -1
- package/dist/model/getClickPositionsResponse.d.ts +7 -7
- package/dist/model/getClickPositionsResponse.d.ts.map +1 -1
- package/dist/model/getClickThroughRateResponse.d.ts +19 -19
- package/dist/model/getClickThroughRateResponse.d.ts.map +1 -1
- package/dist/model/getConversationRateResponse.d.ts +19 -19
- package/dist/model/getConversationRateResponse.d.ts.map +1 -1
- package/dist/model/getNoClickRateResponse.d.ts +19 -19
- package/dist/model/getNoClickRateResponse.d.ts.map +1 -1
- package/dist/model/getNoResultsRateResponse.d.ts +19 -19
- package/dist/model/getNoResultsRateResponse.d.ts.map +1 -1
- package/dist/model/getSearchesCountResponse.d.ts +11 -11
- package/dist/model/getSearchesCountResponse.d.ts.map +1 -1
- package/dist/model/getSearchesNoClicksResponse.d.ts +7 -7
- package/dist/model/getSearchesNoClicksResponse.d.ts.map +1 -1
- package/dist/model/getSearchesNoResultsResponse.d.ts +7 -7
- package/dist/model/getSearchesNoResultsResponse.d.ts.map +1 -1
- package/dist/model/getStatusResponse.d.ts +6 -6
- package/dist/model/getStatusResponse.d.ts.map +1 -1
- package/dist/model/getTopCountriesResponse.d.ts +7 -7
- package/dist/model/getTopCountriesResponse.d.ts.map +1 -1
- package/dist/model/getTopFilterAttribute.d.ts +10 -10
- package/dist/model/getTopFilterAttribute.d.ts.map +1 -1
- package/dist/model/getTopFilterAttributesResponse.d.ts +7 -7
- package/dist/model/getTopFilterAttributesResponse.d.ts.map +1 -1
- package/dist/model/getTopFilterForAttribute.d.ts +18 -18
- package/dist/model/getTopFilterForAttribute.d.ts.map +1 -1
- package/dist/model/getTopFilterForAttributeResponse.d.ts +7 -7
- package/dist/model/getTopFilterForAttributeResponse.d.ts.map +1 -1
- package/dist/model/getTopFiltersNoResultsResponse.d.ts +7 -7
- package/dist/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
- package/dist/model/getTopFiltersNoResultsValue.d.ts +14 -14
- package/dist/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
- package/dist/model/getTopFiltersNoResultsValues.d.ts +11 -11
- package/dist/model/getTopFiltersNoResultsValues.d.ts.map +1 -1
- package/dist/model/getTopHitsResponse.d.ts +3 -3
- package/dist/model/getTopHitsResponse.d.ts.map +1 -1
- package/dist/model/getTopSearchesResponse.d.ts +3 -3
- package/dist/model/getTopSearchesResponse.d.ts.map +1 -1
- package/dist/model/getUsersCountResponse.d.ts +11 -11
- package/dist/model/getUsersCountResponse.d.ts.map +1 -1
- package/dist/model/index.d.ts +44 -44
- package/dist/model/noClickRateEvent.d.ts +18 -18
- package/dist/model/noClickRateEvent.d.ts.map +1 -1
- package/dist/model/noResultsRateEvent.d.ts +18 -18
- package/dist/model/noResultsRateEvent.d.ts.map +1 -1
- package/dist/model/orderBy.d.ts +4 -1
- package/dist/model/orderBy.d.ts.map +1 -1
- package/dist/model/searchEvent.d.ts +10 -10
- package/dist/model/searchEvent.d.ts.map +1 -1
- package/dist/model/searchNoClickEvent.d.ts +14 -14
- package/dist/model/searchNoClickEvent.d.ts.map +1 -1
- package/dist/model/searchNoResultEvent.d.ts +14 -14
- package/dist/model/searchNoResultEvent.d.ts.map +1 -1
- package/dist/model/topCountry.d.ts +10 -10
- package/dist/model/topCountry.d.ts.map +1 -1
- package/dist/model/topHit.d.ts +10 -10
- package/dist/model/topHit.d.ts.map +1 -1
- package/dist/model/topHitWithAnalytics.d.ts +30 -30
- package/dist/model/topHitWithAnalytics.d.ts.map +1 -1
- package/dist/model/topHitsResponse.d.ts +7 -7
- package/dist/model/topHitsResponse.d.ts.map +1 -1
- package/dist/model/topHitsResponseWithAnalytics.d.ts +7 -7
- package/dist/model/topHitsResponseWithAnalytics.d.ts.map +1 -1
- package/dist/model/topSearch.d.ts +14 -14
- package/dist/model/topSearch.d.ts.map +1 -1
- package/dist/model/topSearchWithAnalytics.d.ts +38 -38
- package/dist/model/topSearchWithAnalytics.d.ts.map +1 -1
- package/dist/model/topSearchesResponse.d.ts +7 -7
- package/dist/model/topSearchesResponse.d.ts.map +1 -1
- package/dist/model/topSearchesResponseWithAnalytics.d.ts +7 -7
- package/dist/model/topSearchesResponseWithAnalytics.d.ts.map +1 -1
- package/dist/model/userWithDate.d.ts +10 -10
- package/dist/model/userWithDate.d.ts.map +1 -1
- package/dist/src/analyticsClient.d.ts +348 -318
- package/dist/src/analyticsClient.d.ts.map +1 -1
- package/index.js +1 -1
- package/model/averageClickEvent.ts +4 -4
- package/model/clickPosition.ts +3 -3
- package/model/clickThroughRateEvent.ts +5 -5
- package/model/clientMethodProps.ts +126 -126
- package/model/conversionRateEvent.ts +5 -5
- package/model/direction.ts +1 -1
- package/model/errorBase.ts +1 -1
- package/model/getAverageClickPositionResponse.ts +4 -4
- package/model/getClickPositionsResponse.ts +2 -2
- package/model/getClickThroughRateResponse.ts +5 -5
- package/model/getConversationRateResponse.ts +5 -5
- package/model/getNoClickRateResponse.ts +5 -5
- package/model/getNoResultsRateResponse.ts +5 -5
- package/model/getSearchesCountResponse.ts +3 -3
- package/model/getSearchesNoClicksResponse.ts +2 -2
- package/model/getSearchesNoResultsResponse.ts +2 -2
- package/model/getStatusResponse.ts +2 -2
- package/model/getTopCountriesResponse.ts +2 -2
- package/model/getTopFilterAttribute.ts +3 -3
- package/model/getTopFilterAttributesResponse.ts +2 -2
- package/model/getTopFilterForAttribute.ts +5 -5
- package/model/getTopFilterForAttributeResponse.ts +2 -2
- package/model/getTopFiltersNoResultsResponse.ts +2 -2
- package/model/getTopFiltersNoResultsValue.ts +4 -4
- package/model/getTopFiltersNoResultsValues.ts +3 -3
- package/model/getTopHitsResponse.ts +1 -1
- package/model/getTopSearchesResponse.ts +1 -1
- package/model/getUsersCountResponse.ts +3 -3
- package/model/index.ts +1 -1
- package/model/noClickRateEvent.ts +5 -5
- package/model/noResultsRateEvent.ts +5 -5
- package/model/orderBy.ts +4 -1
- package/model/searchEvent.ts +3 -3
- package/model/searchNoClickEvent.ts +4 -4
- package/model/searchNoResultEvent.ts +4 -4
- package/model/topCountry.ts +3 -3
- package/model/topHit.ts +3 -3
- package/model/topHitWithAnalytics.ts +8 -8
- package/model/topHitsResponse.ts +2 -2
- package/model/topHitsResponseWithAnalytics.ts +2 -2
- package/model/topSearch.ts +4 -4
- package/model/topSearchWithAnalytics.ts +10 -10
- package/model/topSearchesResponse.ts +2 -2
- package/model/topSearchesResponseWithAnalytics.ts +2 -2
- package/model/userWithDate.ts +3 -3
- package/package.json +30 -13
|
@@ -1,319 +1,349 @@
|
|
|
1
|
-
import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
|
|
2
|
-
import type {
|
|
3
|
-
import type { GetAverageClickPositionResponse } from '../model/getAverageClickPositionResponse';
|
|
4
|
-
import type { GetClickPositionsResponse } from '../model/getClickPositionsResponse';
|
|
5
|
-
import type { GetClickThroughRateResponse } from '../model/getClickThroughRateResponse';
|
|
6
|
-
import type { GetConversationRateResponse } from '../model/getConversationRateResponse';
|
|
7
|
-
import type { GetNoClickRateResponse } from '../model/getNoClickRateResponse';
|
|
8
|
-
import type { GetNoResultsRateResponse } from '../model/getNoResultsRateResponse';
|
|
9
|
-
import type { GetSearchesCountResponse } from '../model/getSearchesCountResponse';
|
|
10
|
-
import type { GetSearchesNoClicksResponse } from '../model/getSearchesNoClicksResponse';
|
|
11
|
-
import type { GetSearchesNoResultsResponse } from '../model/getSearchesNoResultsResponse';
|
|
12
|
-
import type { GetStatusResponse } from '../model/getStatusResponse';
|
|
13
|
-
import type { GetTopCountriesResponse } from '../model/getTopCountriesResponse';
|
|
14
|
-
import type { GetTopFilterAttributesResponse } from '../model/getTopFilterAttributesResponse';
|
|
15
|
-
import type { GetTopFilterForAttributeResponse } from '../model/getTopFilterForAttributeResponse';
|
|
16
|
-
import type { GetTopFiltersNoResultsResponse } from '../model/getTopFiltersNoResultsResponse';
|
|
17
|
-
import type { GetTopHitsResponse } from '../model/getTopHitsResponse';
|
|
18
|
-
import type { GetTopSearchesResponse } from '../model/getTopSearchesResponse';
|
|
19
|
-
import type { GetUsersCountResponse } from '../model/getUsersCountResponse';
|
|
20
|
-
export declare const apiClientVersion = "5.0.0-alpha.
|
|
21
|
-
export declare const REGIONS: readonly ["de", "us"];
|
|
22
|
-
export
|
|
23
|
-
export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
|
|
24
|
-
region?: Region;
|
|
25
|
-
}): {
|
|
26
|
-
transporter: import("@algolia/client-common").Transporter;
|
|
27
|
-
/**
|
|
28
|
-
* The `appId` currently in use.
|
|
29
|
-
*/
|
|
30
|
-
appId: string;
|
|
31
|
-
/**
|
|
32
|
-
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
33
|
-
*/
|
|
34
|
-
clearCache(): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
37
|
-
*/
|
|
38
|
-
readonly _ua: string;
|
|
39
|
-
/**
|
|
40
|
-
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
41
|
-
*
|
|
42
|
-
* @param segment - The algolia agent (user-agent) segment to add.
|
|
43
|
-
* @param version - The version of the agent.
|
|
44
|
-
*/
|
|
45
|
-
addAlgoliaAgent(segment: string, version?: string): void;
|
|
46
|
-
/**
|
|
47
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
48
|
-
*
|
|
49
|
-
* @
|
|
50
|
-
* @param
|
|
51
|
-
* @param
|
|
52
|
-
* @param
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* @
|
|
60
|
-
* @param
|
|
61
|
-
* @param
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* @
|
|
70
|
-
* @param
|
|
71
|
-
* @param
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
*
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* @
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* @
|
|
94
|
-
* @param
|
|
95
|
-
* @param
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
*
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* @
|
|
106
|
-
* @param
|
|
107
|
-
* @param
|
|
108
|
-
* @param
|
|
109
|
-
* @param
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* @param
|
|
119
|
-
* @param
|
|
120
|
-
* @param
|
|
121
|
-
* @param
|
|
122
|
-
* @param
|
|
123
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
124
|
-
*/
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* @param
|
|
133
|
-
* @param
|
|
134
|
-
* @param
|
|
135
|
-
* @param
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
* @param
|
|
147
|
-
* @param
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
*
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* @param
|
|
161
|
-
* @param
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
*
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
* @param
|
|
175
|
-
* @param
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
*
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
* @
|
|
191
|
-
* @param
|
|
192
|
-
* @param
|
|
193
|
-
* @param
|
|
194
|
-
* @param
|
|
195
|
-
* @param
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
* @
|
|
205
|
-
* @param
|
|
206
|
-
* @param
|
|
207
|
-
* @param
|
|
208
|
-
* @param
|
|
209
|
-
* @param
|
|
210
|
-
* @param
|
|
211
|
-
* @param
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
* @param
|
|
221
|
-
* @param
|
|
222
|
-
* @param
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
* @
|
|
236
|
-
* @param
|
|
237
|
-
* @param
|
|
238
|
-
* @param
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
* @
|
|
251
|
-
* @param
|
|
252
|
-
* @param
|
|
253
|
-
* @param
|
|
254
|
-
* @param
|
|
255
|
-
* @param
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
* @
|
|
267
|
-
* @param
|
|
268
|
-
* @param
|
|
269
|
-
* @param
|
|
270
|
-
* @param
|
|
271
|
-
* @param
|
|
272
|
-
* @param
|
|
273
|
-
* @param
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
*
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
* @
|
|
284
|
-
* @param
|
|
285
|
-
* @param
|
|
286
|
-
* @param
|
|
287
|
-
* @param
|
|
288
|
-
* @param
|
|
289
|
-
* @param
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
*
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
* @param
|
|
300
|
-
* @param
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
* @
|
|
307
|
-
* @param
|
|
308
|
-
* @param
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
1
|
+
import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
|
|
2
|
+
import type { CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, GetAverageClickPositionProps, GetClickPositionsProps, GetClickThroughRateProps, GetConversationRateProps, GetNoClickRateProps, GetNoResultsRateProps, GetSearchesCountProps, GetSearchesNoClicksProps, GetSearchesNoResultsProps, GetStatusProps, GetTopCountriesProps, GetTopFilterAttributesProps, GetTopFilterForAttributeProps, GetTopFiltersNoResultsProps, GetTopHitsProps, GetTopSearchesProps, GetUsersCountProps } from '../model/clientMethodProps';
|
|
3
|
+
import type { GetAverageClickPositionResponse } from '../model/getAverageClickPositionResponse';
|
|
4
|
+
import type { GetClickPositionsResponse } from '../model/getClickPositionsResponse';
|
|
5
|
+
import type { GetClickThroughRateResponse } from '../model/getClickThroughRateResponse';
|
|
6
|
+
import type { GetConversationRateResponse } from '../model/getConversationRateResponse';
|
|
7
|
+
import type { GetNoClickRateResponse } from '../model/getNoClickRateResponse';
|
|
8
|
+
import type { GetNoResultsRateResponse } from '../model/getNoResultsRateResponse';
|
|
9
|
+
import type { GetSearchesCountResponse } from '../model/getSearchesCountResponse';
|
|
10
|
+
import type { GetSearchesNoClicksResponse } from '../model/getSearchesNoClicksResponse';
|
|
11
|
+
import type { GetSearchesNoResultsResponse } from '../model/getSearchesNoResultsResponse';
|
|
12
|
+
import type { GetStatusResponse } from '../model/getStatusResponse';
|
|
13
|
+
import type { GetTopCountriesResponse } from '../model/getTopCountriesResponse';
|
|
14
|
+
import type { GetTopFilterAttributesResponse } from '../model/getTopFilterAttributesResponse';
|
|
15
|
+
import type { GetTopFilterForAttributeResponse } from '../model/getTopFilterForAttributeResponse';
|
|
16
|
+
import type { GetTopFiltersNoResultsResponse } from '../model/getTopFiltersNoResultsResponse';
|
|
17
|
+
import type { GetTopHitsResponse } from '../model/getTopHitsResponse';
|
|
18
|
+
import type { GetTopSearchesResponse } from '../model/getTopSearchesResponse';
|
|
19
|
+
import type { GetUsersCountResponse } from '../model/getUsersCountResponse';
|
|
20
|
+
export declare const apiClientVersion = "5.0.0-alpha.100";
|
|
21
|
+
export declare const REGIONS: readonly ["de", "us"];
|
|
22
|
+
export type Region = (typeof REGIONS)[number];
|
|
23
|
+
export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
|
|
24
|
+
region?: Region;
|
|
25
|
+
}): {
|
|
26
|
+
transporter: import("@algolia/client-common").Transporter;
|
|
27
|
+
/**
|
|
28
|
+
* The `appId` currently in use.
|
|
29
|
+
*/
|
|
30
|
+
appId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
33
|
+
*/
|
|
34
|
+
clearCache(): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
37
|
+
*/
|
|
38
|
+
readonly _ua: string;
|
|
39
|
+
/**
|
|
40
|
+
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
41
|
+
*
|
|
42
|
+
* @param segment - The algolia agent (user-agent) segment to add.
|
|
43
|
+
* @param version - The version of the agent.
|
|
44
|
+
*/
|
|
45
|
+
addAlgoliaAgent(segment: string, version?: string): void;
|
|
46
|
+
/**
|
|
47
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
48
|
+
*
|
|
49
|
+
* @param customDelete - The customDelete object.
|
|
50
|
+
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
51
|
+
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
52
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
53
|
+
*/
|
|
54
|
+
customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
55
|
+
/**
|
|
56
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
57
|
+
*
|
|
58
|
+
* @param customGet - The customGet object.
|
|
59
|
+
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
60
|
+
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
61
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
62
|
+
*/
|
|
63
|
+
customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
64
|
+
/**
|
|
65
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
66
|
+
*
|
|
67
|
+
* @param customPost - The customPost object.
|
|
68
|
+
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
69
|
+
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
70
|
+
* @param customPost.body - Parameters to send with the custom request.
|
|
71
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
72
|
+
*/
|
|
73
|
+
customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
74
|
+
/**
|
|
75
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
76
|
+
*
|
|
77
|
+
* @param customPut - The customPut object.
|
|
78
|
+
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
79
|
+
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
80
|
+
* @param customPut.body - Parameters to send with the custom request.
|
|
81
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
82
|
+
*/
|
|
83
|
+
customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
84
|
+
/**
|
|
85
|
+
* Return the average click position for the complete time range and for individual days. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn\'t receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
|
|
86
|
+
*
|
|
87
|
+
* Required API Key ACLs:
|
|
88
|
+
* - analytics.
|
|
89
|
+
*
|
|
90
|
+
* @param getAverageClickPosition - The getAverageClickPosition object.
|
|
91
|
+
* @param getAverageClickPosition.index - Index name to target.
|
|
92
|
+
* @param getAverageClickPosition.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
93
|
+
* @param getAverageClickPosition.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
94
|
+
* @param getAverageClickPosition.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
95
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
96
|
+
*/
|
|
97
|
+
getAverageClickPosition({ index, startDate, endDate, tags }: GetAverageClickPositionProps, requestOptions?: RequestOptions): Promise<GetAverageClickPositionResponse>;
|
|
98
|
+
/**
|
|
99
|
+
* Show the number of clicks events and their associated position in the search results. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn\'t receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
|
|
100
|
+
*
|
|
101
|
+
* Required API Key ACLs:
|
|
102
|
+
* - analytics.
|
|
103
|
+
*
|
|
104
|
+
* @param getClickPositions - The getClickPositions object.
|
|
105
|
+
* @param getClickPositions.index - Index name to target.
|
|
106
|
+
* @param getClickPositions.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
107
|
+
* @param getClickPositions.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
108
|
+
* @param getClickPositions.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
109
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
110
|
+
*/
|
|
111
|
+
getClickPositions({ index, startDate, endDate, tags }: GetClickPositionsProps, requestOptions?: RequestOptions): Promise<GetClickPositionsResponse>;
|
|
112
|
+
/**
|
|
113
|
+
* Returns a [click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
114
|
+
*
|
|
115
|
+
* Required API Key ACLs:
|
|
116
|
+
* - analytics.
|
|
117
|
+
*
|
|
118
|
+
* @param getClickThroughRate - The getClickThroughRate object.
|
|
119
|
+
* @param getClickThroughRate.index - Index name to target.
|
|
120
|
+
* @param getClickThroughRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
121
|
+
* @param getClickThroughRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
122
|
+
* @param getClickThroughRate.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
123
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
124
|
+
*/
|
|
125
|
+
getClickThroughRate({ index, startDate, endDate, tags }: GetClickThroughRateProps, requestOptions?: RequestOptions): Promise<GetClickThroughRateResponse>;
|
|
126
|
+
/**
|
|
127
|
+
* Return a [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
|
|
128
|
+
*
|
|
129
|
+
* Required API Key ACLs:
|
|
130
|
+
* - analytics.
|
|
131
|
+
*
|
|
132
|
+
* @param getConversationRate - The getConversationRate object.
|
|
133
|
+
* @param getConversationRate.index - Index name to target.
|
|
134
|
+
* @param getConversationRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
135
|
+
* @param getConversationRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
136
|
+
* @param getConversationRate.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
137
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
138
|
+
*/
|
|
139
|
+
getConversationRate({ index, startDate, endDate, tags }: GetConversationRateProps, requestOptions?: RequestOptions): Promise<GetConversationRateResponse>;
|
|
140
|
+
/**
|
|
141
|
+
* Returns the rate at which searches don\'t lead to any clicks. The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of searches and searches without clicks.
|
|
142
|
+
*
|
|
143
|
+
* Required API Key ACLs:
|
|
144
|
+
* - analytics.
|
|
145
|
+
*
|
|
146
|
+
* @param getNoClickRate - The getNoClickRate object.
|
|
147
|
+
* @param getNoClickRate.index - Index name to target.
|
|
148
|
+
* @param getNoClickRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
149
|
+
* @param getNoClickRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
150
|
+
* @param getNoClickRate.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
151
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
152
|
+
*/
|
|
153
|
+
getNoClickRate({ index, startDate, endDate, tags }: GetNoClickRateProps, requestOptions?: RequestOptions): Promise<GetNoClickRateResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* Returns the rate at which searches didn\'t return any results.
|
|
156
|
+
*
|
|
157
|
+
* Required API Key ACLs:
|
|
158
|
+
* - analytics.
|
|
159
|
+
*
|
|
160
|
+
* @param getNoResultsRate - The getNoResultsRate object.
|
|
161
|
+
* @param getNoResultsRate.index - Index name to target.
|
|
162
|
+
* @param getNoResultsRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
163
|
+
* @param getNoResultsRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
164
|
+
* @param getNoResultsRate.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
165
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
166
|
+
*/
|
|
167
|
+
getNoResultsRate({ index, startDate, endDate, tags }: GetNoResultsRateProps, requestOptions?: RequestOptions): Promise<GetNoResultsRateResponse>;
|
|
168
|
+
/**
|
|
169
|
+
* Returns the number of searches within a time range.
|
|
170
|
+
*
|
|
171
|
+
* Required API Key ACLs:
|
|
172
|
+
* - analytics.
|
|
173
|
+
*
|
|
174
|
+
* @param getSearchesCount - The getSearchesCount object.
|
|
175
|
+
* @param getSearchesCount.index - Index name to target.
|
|
176
|
+
* @param getSearchesCount.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
177
|
+
* @param getSearchesCount.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
178
|
+
* @param getSearchesCount.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
179
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
180
|
+
*/
|
|
181
|
+
getSearchesCount({ index, startDate, endDate, tags }: GetSearchesCountProps, requestOptions?: RequestOptions): Promise<GetSearchesCountResponse>;
|
|
182
|
+
/**
|
|
183
|
+
* Return the most popular of the last 1,000 searches that didn\'t lead to any clicks.
|
|
184
|
+
*
|
|
185
|
+
* Required API Key ACLs:
|
|
186
|
+
* - analytics.
|
|
187
|
+
*
|
|
188
|
+
* @param getSearchesNoClicks - The getSearchesNoClicks object.
|
|
189
|
+
* @param getSearchesNoClicks.index - Index name to target.
|
|
190
|
+
* @param getSearchesNoClicks.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
191
|
+
* @param getSearchesNoClicks.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
192
|
+
* @param getSearchesNoClicks.limit - Number of records to return (page size).
|
|
193
|
+
* @param getSearchesNoClicks.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
194
|
+
* @param getSearchesNoClicks.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
195
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
196
|
+
*/
|
|
197
|
+
getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }: GetSearchesNoClicksProps, requestOptions?: RequestOptions): Promise<GetSearchesNoClicksResponse>;
|
|
198
|
+
/**
|
|
199
|
+
* Returns the most popular of the latest 1,000 searches that didn\'t return any results.
|
|
200
|
+
*
|
|
201
|
+
* Required API Key ACLs:
|
|
202
|
+
* - analytics.
|
|
203
|
+
*
|
|
204
|
+
* @param getSearchesNoResults - The getSearchesNoResults object.
|
|
205
|
+
* @param getSearchesNoResults.index - Index name to target.
|
|
206
|
+
* @param getSearchesNoResults.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
207
|
+
* @param getSearchesNoResults.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
208
|
+
* @param getSearchesNoResults.limit - Number of records to return (page size).
|
|
209
|
+
* @param getSearchesNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
210
|
+
* @param getSearchesNoResults.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
211
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
212
|
+
*/
|
|
213
|
+
getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }: GetSearchesNoResultsProps, requestOptions?: RequestOptions): Promise<GetSearchesNoResultsResponse>;
|
|
214
|
+
/**
|
|
215
|
+
* Return the latest update time of the Analytics API for an index. If the index has been recently created or no search has been performed yet, `updatedAt` will be `null`. > **Note**: The Analytics API is updated every 5 minutes.
|
|
216
|
+
*
|
|
217
|
+
* Required API Key ACLs:
|
|
218
|
+
* - analytics.
|
|
219
|
+
*
|
|
220
|
+
* @param getStatus - The getStatus object.
|
|
221
|
+
* @param getStatus.index - Index name to target.
|
|
222
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
223
|
+
*/
|
|
224
|
+
getStatus({ index }: GetStatusProps, requestOptions?: RequestOptions): Promise<GetStatusResponse>;
|
|
225
|
+
/**
|
|
226
|
+
* Returns top countries. Limited to the 1,000 most frequent ones.
|
|
227
|
+
*
|
|
228
|
+
* Required API Key ACLs:
|
|
229
|
+
* - analytics.
|
|
230
|
+
*
|
|
231
|
+
* @param getTopCountries - The getTopCountries object.
|
|
232
|
+
* @param getTopCountries.index - Index name to target.
|
|
233
|
+
* @param getTopCountries.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
234
|
+
* @param getTopCountries.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
235
|
+
* @param getTopCountries.limit - Number of records to return (page size).
|
|
236
|
+
* @param getTopCountries.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
237
|
+
* @param getTopCountries.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
238
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
239
|
+
*/
|
|
240
|
+
getTopCountries({ index, startDate, endDate, limit, offset, tags }: GetTopCountriesProps, requestOptions?: RequestOptions): Promise<GetTopCountriesResponse>;
|
|
241
|
+
/**
|
|
242
|
+
* Return the most popular [filterable attributes](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) in the 1,000 most recently used filters.
|
|
243
|
+
*
|
|
244
|
+
* Required API Key ACLs:
|
|
245
|
+
* - analytics.
|
|
246
|
+
*
|
|
247
|
+
* @param getTopFilterAttributes - The getTopFilterAttributes object.
|
|
248
|
+
* @param getTopFilterAttributes.index - Index name to target.
|
|
249
|
+
* @param getTopFilterAttributes.search - User query.
|
|
250
|
+
* @param getTopFilterAttributes.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
251
|
+
* @param getTopFilterAttributes.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
252
|
+
* @param getTopFilterAttributes.limit - Number of records to return (page size).
|
|
253
|
+
* @param getTopFilterAttributes.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
254
|
+
* @param getTopFilterAttributes.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
255
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
256
|
+
*/
|
|
257
|
+
getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }: GetTopFilterAttributesProps, requestOptions?: RequestOptions): Promise<GetTopFilterAttributesResponse>;
|
|
258
|
+
/**
|
|
259
|
+
* Returns the most popular filter values for an attribute in the 1,000 most recently used filters.
|
|
260
|
+
*
|
|
261
|
+
* Required API Key ACLs:
|
|
262
|
+
* - analytics.
|
|
263
|
+
*
|
|
264
|
+
* @param getTopFilterForAttribute - The getTopFilterForAttribute object.
|
|
265
|
+
* @param getTopFilterForAttribute.attribute - Attribute name.
|
|
266
|
+
* @param getTopFilterForAttribute.index - Index name to target.
|
|
267
|
+
* @param getTopFilterForAttribute.search - User query.
|
|
268
|
+
* @param getTopFilterForAttribute.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
269
|
+
* @param getTopFilterForAttribute.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
270
|
+
* @param getTopFilterForAttribute.limit - Number of records to return (page size).
|
|
271
|
+
* @param getTopFilterForAttribute.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
272
|
+
* @param getTopFilterForAttribute.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
273
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
274
|
+
*/
|
|
275
|
+
getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }: GetTopFilterForAttributeProps, requestOptions?: RequestOptions): Promise<GetTopFilterForAttributeResponse>;
|
|
276
|
+
/**
|
|
277
|
+
* Returns top filters for filter-enabled searches that don\'t return results. Limited to the 1,000 most recently used filters.
|
|
278
|
+
*
|
|
279
|
+
* Required API Key ACLs:
|
|
280
|
+
* - analytics.
|
|
281
|
+
*
|
|
282
|
+
* @param getTopFiltersNoResults - The getTopFiltersNoResults object.
|
|
283
|
+
* @param getTopFiltersNoResults.index - Index name to target.
|
|
284
|
+
* @param getTopFiltersNoResults.search - User query.
|
|
285
|
+
* @param getTopFiltersNoResults.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
286
|
+
* @param getTopFiltersNoResults.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
287
|
+
* @param getTopFiltersNoResults.limit - Number of records to return (page size).
|
|
288
|
+
* @param getTopFiltersNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
289
|
+
* @param getTopFiltersNoResults.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
290
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
291
|
+
*/
|
|
292
|
+
getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }: GetTopFiltersNoResultsProps, requestOptions?: RequestOptions): Promise<GetTopFiltersNoResultsResponse>;
|
|
293
|
+
/**
|
|
294
|
+
* Return the most popular clicked results in the last 1,000 searches.
|
|
295
|
+
*
|
|
296
|
+
* Required API Key ACLs:
|
|
297
|
+
* - analytics.
|
|
298
|
+
*
|
|
299
|
+
* @param getTopHits - The getTopHits object.
|
|
300
|
+
* @param getTopHits.index - Index name to target.
|
|
301
|
+
* @param getTopHits.search - User query.
|
|
302
|
+
* @param getTopHits.clickAnalytics - Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
|
|
303
|
+
* @param getTopHits.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
304
|
+
* @param getTopHits.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
305
|
+
* @param getTopHits.limit - Number of records to return (page size).
|
|
306
|
+
* @param getTopHits.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
307
|
+
* @param getTopHits.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
308
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
309
|
+
*/
|
|
310
|
+
getTopHits({ index, search, clickAnalytics, startDate, endDate, limit, offset, tags, }: GetTopHitsProps, requestOptions?: RequestOptions): Promise<GetTopHitsResponse>;
|
|
311
|
+
/**
|
|
312
|
+
* Returns the most popular of the latest 1,000 searches. For each search, also returns the number of hits.
|
|
313
|
+
*
|
|
314
|
+
* Required API Key ACLs:
|
|
315
|
+
* - analytics.
|
|
316
|
+
*
|
|
317
|
+
* @param getTopSearches - The getTopSearches object.
|
|
318
|
+
* @param getTopSearches.index - Index name to target.
|
|
319
|
+
* @param getTopSearches.clickAnalytics - Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
|
|
320
|
+
* @param getTopSearches.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
321
|
+
* @param getTopSearches.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
322
|
+
* @param getTopSearches.orderBy - Reorder the results.
|
|
323
|
+
* @param getTopSearches.direction - Sorting direction of the results: ascending or descending.
|
|
324
|
+
* @param getTopSearches.limit - Number of records to return (page size).
|
|
325
|
+
* @param getTopSearches.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
326
|
+
* @param getTopSearches.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
327
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
328
|
+
*/
|
|
329
|
+
getTopSearches({ index, clickAnalytics, startDate, endDate, orderBy, direction, limit, offset, tags, }: GetTopSearchesProps, requestOptions?: RequestOptions): Promise<GetTopSearchesResponse>;
|
|
330
|
+
/**
|
|
331
|
+
* Return the count of unique users.
|
|
332
|
+
*
|
|
333
|
+
* Required API Key ACLs:
|
|
334
|
+
* - analytics.
|
|
335
|
+
*
|
|
336
|
+
* @param getUsersCount - The getUsersCount object.
|
|
337
|
+
* @param getUsersCount.index - Index name to target.
|
|
338
|
+
* @param getUsersCount.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
339
|
+
* @param getUsersCount.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
340
|
+
* @param getUsersCount.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/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 must be URL-encoded.
|
|
341
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
342
|
+
*/
|
|
343
|
+
getUsersCount({ index, startDate, endDate, tags }: GetUsersCountProps, requestOptions?: RequestOptions): Promise<GetUsersCountResponse>;
|
|
344
|
+
};
|
|
345
|
+
/**
|
|
346
|
+
* The client type.
|
|
347
|
+
*/
|
|
348
|
+
export type AnalyticsClient = ReturnType<typeof createAnalyticsClient>;
|
|
319
349
|
//# sourceMappingURL=analyticsClient.d.ts.map
|