@algolia/client-analytics 5.0.0-alpha.73 → 5.0.0-alpha.75
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/client-analytics.cjs.js +114 -116
- package/dist/client-analytics.esm.browser.js +114 -114
- package/dist/client-analytics.esm.node.js +114 -114
- package/dist/client-analytics.umd.js +2 -2
- package/dist/model/averageClickEvent.d.ts +3 -3
- package/dist/model/clickPosition.d.ts +2 -2
- package/dist/model/clickThroughRateEvent.d.ts +4 -4
- package/dist/model/clientMethodProps.d.ts +91 -91
- package/dist/model/conversionRateEvent.d.ts +4 -4
- package/dist/model/getAverageClickPositionResponse.d.ts +3 -3
- package/dist/model/getClickPositionsResponse.d.ts +1 -1
- package/dist/model/getClickThroughRateResponse.d.ts +4 -4
- package/dist/model/getConversationRateResponse.d.ts +4 -4
- package/dist/model/getNoClickRateResponse.d.ts +4 -4
- package/dist/model/getNoResultsRateResponse.d.ts +4 -4
- package/dist/model/getSearchesCountResponse.d.ts +2 -2
- package/dist/model/getSearchesNoClicksResponse.d.ts +1 -1
- package/dist/model/getSearchesNoResultsResponse.d.ts +1 -1
- package/dist/model/getStatusResponse.d.ts +1 -1
- package/dist/model/getTopCountriesResponse.d.ts +1 -1
- package/dist/model/getTopFilterAttribute.d.ts +2 -2
- package/dist/model/getTopFilterAttributesResponse.d.ts +1 -1
- package/dist/model/getTopFilterForAttribute.d.ts +4 -4
- package/dist/model/getTopFilterForAttributeResponse.d.ts +1 -1
- package/dist/model/getTopFiltersNoResultsResponse.d.ts +1 -1
- package/dist/model/getTopFiltersNoResultsValue.d.ts +3 -3
- package/dist/model/getTopFiltersNoResultsValues.d.ts +2 -2
- package/dist/model/getUsersCountResponse.d.ts +2 -2
- package/dist/model/noClickRateEvent.d.ts +4 -4
- package/dist/model/noResultsRateEvent.d.ts +4 -4
- package/dist/model/orderBy.d.ts +3 -0
- package/dist/model/orderBy.d.ts.map +1 -1
- package/dist/model/searchEvent.d.ts +2 -2
- package/dist/model/searchNoClickEvent.d.ts +3 -3
- package/dist/model/searchNoResultEvent.d.ts +3 -3
- package/dist/model/topCountry.d.ts +2 -2
- package/dist/model/topHit.d.ts +2 -2
- package/dist/model/topHitWithAnalytics.d.ts +7 -7
- package/dist/model/topHitsResponse.d.ts +1 -1
- package/dist/model/topHitsResponseWithAnalytics.d.ts +1 -1
- package/dist/model/topSearch.d.ts +3 -3
- package/dist/model/topSearchWithAnalytics.d.ts +9 -9
- package/dist/model/topSearchesResponse.d.ts +1 -1
- package/dist/model/topSearchesResponseWithAnalytics.d.ts +1 -1
- package/dist/model/userWithDate.d.ts +2 -2
- package/dist/src/analyticsClient.d.ts +114 -114
- package/model/averageClickEvent.ts +3 -3
- package/model/clickPosition.ts +2 -2
- package/model/clickThroughRateEvent.ts +4 -4
- package/model/clientMethodProps.ts +91 -91
- package/model/conversionRateEvent.ts +4 -4
- package/model/getAverageClickPositionResponse.ts +3 -3
- package/model/getClickPositionsResponse.ts +1 -1
- package/model/getClickThroughRateResponse.ts +4 -4
- package/model/getConversationRateResponse.ts +4 -4
- package/model/getNoClickRateResponse.ts +4 -4
- package/model/getNoResultsRateResponse.ts +4 -4
- package/model/getSearchesCountResponse.ts +2 -2
- package/model/getSearchesNoClicksResponse.ts +1 -1
- package/model/getSearchesNoResultsResponse.ts +1 -1
- package/model/getStatusResponse.ts +1 -1
- package/model/getTopCountriesResponse.ts +1 -1
- package/model/getTopFilterAttribute.ts +2 -2
- package/model/getTopFilterAttributesResponse.ts +1 -1
- package/model/getTopFilterForAttribute.ts +4 -4
- package/model/getTopFilterForAttributeResponse.ts +1 -1
- package/model/getTopFiltersNoResultsResponse.ts +1 -1
- package/model/getTopFiltersNoResultsValue.ts +3 -3
- package/model/getTopFiltersNoResultsValues.ts +2 -2
- package/model/getUsersCountResponse.ts +2 -2
- package/model/noClickRateEvent.ts +4 -4
- package/model/noResultsRateEvent.ts +4 -4
- package/model/orderBy.ts +3 -0
- package/model/searchEvent.ts +2 -2
- package/model/searchNoClickEvent.ts +3 -3
- package/model/searchNoResultEvent.ts +3 -3
- package/model/topCountry.ts +2 -2
- package/model/topHit.ts +2 -2
- package/model/topHitWithAnalytics.ts +7 -7
- package/model/topHitsResponse.ts +1 -1
- package/model/topHitsResponseWithAnalytics.ts +1 -1
- package/model/topSearch.ts +3 -3
- package/model/topSearchWithAnalytics.ts +9 -9
- package/model/topSearchesResponse.ts +1 -1
- package/model/topSearchesResponseWithAnalytics.ts +1 -1
- package/model/userWithDate.ts +2 -2
- package/package.json +8 -7
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var clientCommon = require('@algolia/client-common');
|
|
6
4
|
var requesterNodeHttp = require('@algolia/requester-node-http');
|
|
7
5
|
|
|
8
6
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
9
|
-
const apiClientVersion = '5.0.0-alpha.
|
|
7
|
+
const apiClientVersion = '5.0.0-alpha.75';
|
|
10
8
|
const REGIONS = ['de', 'us'];
|
|
11
9
|
function getDefaultHosts(region) {
|
|
12
10
|
const url = !region
|
|
@@ -70,8 +68,8 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
70
68
|
*
|
|
71
69
|
* @summary Send requests to the Algolia REST API.
|
|
72
70
|
* @param del - The del object.
|
|
73
|
-
* @param del.path -
|
|
74
|
-
* @param del.parameters - Query parameters to
|
|
71
|
+
* @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
72
|
+
* @param del.parameters - Query parameters to apply to the current query.
|
|
75
73
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
76
74
|
*/
|
|
77
75
|
del({ path, parameters }, requestOptions) {
|
|
@@ -94,8 +92,8 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
94
92
|
*
|
|
95
93
|
* @summary Send requests to the Algolia REST API.
|
|
96
94
|
* @param get - The get object.
|
|
97
|
-
* @param get.path -
|
|
98
|
-
* @param get.parameters - Query parameters to
|
|
95
|
+
* @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
96
|
+
* @param get.parameters - Query parameters to apply to the current query.
|
|
99
97
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
100
98
|
*/
|
|
101
99
|
get({ path, parameters }, requestOptions) {
|
|
@@ -114,14 +112,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
114
112
|
return transporter.request(request, requestOptions);
|
|
115
113
|
},
|
|
116
114
|
/**
|
|
117
|
-
*
|
|
115
|
+
* 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`.
|
|
118
116
|
*
|
|
119
117
|
* @summary Get average click position.
|
|
120
118
|
* @param getAverageClickPosition - The getAverageClickPosition object.
|
|
121
|
-
* @param getAverageClickPosition.index -
|
|
122
|
-
* @param getAverageClickPosition.startDate -
|
|
123
|
-
* @param getAverageClickPosition.endDate -
|
|
124
|
-
* @param getAverageClickPosition.tags - Filter
|
|
119
|
+
* @param getAverageClickPosition.index - Index name to target.
|
|
120
|
+
* @param getAverageClickPosition.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
121
|
+
* @param getAverageClickPosition.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
122
|
+
* @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.
|
|
125
123
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
126
124
|
*/
|
|
127
125
|
getAverageClickPosition({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -152,14 +150,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
152
150
|
return transporter.request(request, requestOptions);
|
|
153
151
|
},
|
|
154
152
|
/**
|
|
155
|
-
*
|
|
153
|
+
* 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`.
|
|
156
154
|
*
|
|
157
|
-
* @summary Get
|
|
155
|
+
* @summary Get click positions.
|
|
158
156
|
* @param getClickPositions - The getClickPositions object.
|
|
159
|
-
* @param getClickPositions.index -
|
|
160
|
-
* @param getClickPositions.startDate -
|
|
161
|
-
* @param getClickPositions.endDate -
|
|
162
|
-
* @param getClickPositions.tags - Filter
|
|
157
|
+
* @param getClickPositions.index - Index name to target.
|
|
158
|
+
* @param getClickPositions.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
159
|
+
* @param getClickPositions.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
160
|
+
* @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.
|
|
163
161
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
164
162
|
*/
|
|
165
163
|
getClickPositions({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -190,14 +188,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
190
188
|
return transporter.request(request, requestOptions);
|
|
191
189
|
},
|
|
192
190
|
/**
|
|
193
|
-
* Returns a click-through rate (CTR).
|
|
191
|
+
* Returns a [click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
194
192
|
*
|
|
195
193
|
* @summary Get click-through rate (CTR).
|
|
196
194
|
* @param getClickThroughRate - The getClickThroughRate object.
|
|
197
|
-
* @param getClickThroughRate.index -
|
|
198
|
-
* @param getClickThroughRate.startDate -
|
|
199
|
-
* @param getClickThroughRate.endDate -
|
|
200
|
-
* @param getClickThroughRate.tags - Filter
|
|
195
|
+
* @param getClickThroughRate.index - Index name to target.
|
|
196
|
+
* @param getClickThroughRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
197
|
+
* @param getClickThroughRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
198
|
+
* @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.
|
|
201
199
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
202
200
|
*/
|
|
203
201
|
getClickThroughRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -228,14 +226,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
228
226
|
return transporter.request(request, requestOptions);
|
|
229
227
|
},
|
|
230
228
|
/**
|
|
231
|
-
*
|
|
229
|
+
* Return a [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
|
|
232
230
|
*
|
|
233
231
|
* @summary Get conversion rate (CR).
|
|
234
232
|
* @param getConversationRate - The getConversationRate object.
|
|
235
|
-
* @param getConversationRate.index -
|
|
236
|
-
* @param getConversationRate.startDate -
|
|
237
|
-
* @param getConversationRate.endDate -
|
|
238
|
-
* @param getConversationRate.tags - Filter
|
|
233
|
+
* @param getConversationRate.index - Index name to target.
|
|
234
|
+
* @param getConversationRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
235
|
+
* @param getConversationRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
236
|
+
* @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.
|
|
239
237
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
240
238
|
*/
|
|
241
239
|
getConversationRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -266,14 +264,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
266
264
|
return transporter.request(request, requestOptions);
|
|
267
265
|
},
|
|
268
266
|
/**
|
|
269
|
-
* Returns the rate at which searches
|
|
267
|
+
* 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.
|
|
270
268
|
*
|
|
271
269
|
* @summary Get no click rate.
|
|
272
270
|
* @param getNoClickRate - The getNoClickRate object.
|
|
273
|
-
* @param getNoClickRate.index -
|
|
274
|
-
* @param getNoClickRate.startDate -
|
|
275
|
-
* @param getNoClickRate.endDate -
|
|
276
|
-
* @param getNoClickRate.tags - Filter
|
|
271
|
+
* @param getNoClickRate.index - Index name to target.
|
|
272
|
+
* @param getNoClickRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
273
|
+
* @param getNoClickRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
274
|
+
* @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.
|
|
277
275
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
278
276
|
*/
|
|
279
277
|
getNoClickRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -304,14 +302,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
304
302
|
return transporter.request(request, requestOptions);
|
|
305
303
|
},
|
|
306
304
|
/**
|
|
307
|
-
* Returns the rate at which searches didn\'t return any results.
|
|
305
|
+
* Returns the rate at which searches didn\'t return any results.
|
|
308
306
|
*
|
|
309
307
|
* @summary Get no results rate.
|
|
310
308
|
* @param getNoResultsRate - The getNoResultsRate object.
|
|
311
|
-
* @param getNoResultsRate.index -
|
|
312
|
-
* @param getNoResultsRate.startDate -
|
|
313
|
-
* @param getNoResultsRate.endDate -
|
|
314
|
-
* @param getNoResultsRate.tags - Filter
|
|
309
|
+
* @param getNoResultsRate.index - Index name to target.
|
|
310
|
+
* @param getNoResultsRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
311
|
+
* @param getNoResultsRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
312
|
+
* @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.
|
|
315
313
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
316
314
|
*/
|
|
317
315
|
getNoResultsRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -342,14 +340,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
342
340
|
return transporter.request(request, requestOptions);
|
|
343
341
|
},
|
|
344
342
|
/**
|
|
345
|
-
* Returns the number of searches
|
|
343
|
+
* Returns the number of searches within a time range.
|
|
346
344
|
*
|
|
347
|
-
* @summary Get searches
|
|
345
|
+
* @summary Get number of searches.
|
|
348
346
|
* @param getSearchesCount - The getSearchesCount object.
|
|
349
|
-
* @param getSearchesCount.index -
|
|
350
|
-
* @param getSearchesCount.startDate -
|
|
351
|
-
* @param getSearchesCount.endDate -
|
|
352
|
-
* @param getSearchesCount.tags - Filter
|
|
347
|
+
* @param getSearchesCount.index - Index name to target.
|
|
348
|
+
* @param getSearchesCount.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
349
|
+
* @param getSearchesCount.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
350
|
+
* @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.
|
|
353
351
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
354
352
|
*/
|
|
355
353
|
getSearchesCount({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -380,16 +378,16 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
380
378
|
return transporter.request(request, requestOptions);
|
|
381
379
|
},
|
|
382
380
|
/**
|
|
383
|
-
*
|
|
381
|
+
* Return the most popular of the last 1,000 searches that didn\'t lead to any clicks.
|
|
384
382
|
*
|
|
385
383
|
* @summary Get top searches with no clicks.
|
|
386
384
|
* @param getSearchesNoClicks - The getSearchesNoClicks object.
|
|
387
|
-
* @param getSearchesNoClicks.index -
|
|
388
|
-
* @param getSearchesNoClicks.startDate -
|
|
389
|
-
* @param getSearchesNoClicks.endDate -
|
|
390
|
-
* @param getSearchesNoClicks.limit - Number of records to return
|
|
385
|
+
* @param getSearchesNoClicks.index - Index name to target.
|
|
386
|
+
* @param getSearchesNoClicks.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
387
|
+
* @param getSearchesNoClicks.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
388
|
+
* @param getSearchesNoClicks.limit - Number of records to return (page size).
|
|
391
389
|
* @param getSearchesNoClicks.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
392
|
-
* @param getSearchesNoClicks.tags - Filter
|
|
390
|
+
* @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.
|
|
393
391
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
394
392
|
*/
|
|
395
393
|
getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -426,16 +424,16 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
426
424
|
return transporter.request(request, requestOptions);
|
|
427
425
|
},
|
|
428
426
|
/**
|
|
429
|
-
* Returns
|
|
427
|
+
* Returns the most popular of the latest 1,000 searches that didn\'t return any results.
|
|
430
428
|
*
|
|
431
429
|
* @summary Get top searches with no results.
|
|
432
430
|
* @param getSearchesNoResults - The getSearchesNoResults object.
|
|
433
|
-
* @param getSearchesNoResults.index -
|
|
434
|
-
* @param getSearchesNoResults.startDate -
|
|
435
|
-
* @param getSearchesNoResults.endDate -
|
|
436
|
-
* @param getSearchesNoResults.limit - Number of records to return
|
|
431
|
+
* @param getSearchesNoResults.index - Index name to target.
|
|
432
|
+
* @param getSearchesNoResults.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
433
|
+
* @param getSearchesNoResults.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
434
|
+
* @param getSearchesNoResults.limit - Number of records to return (page size).
|
|
437
435
|
* @param getSearchesNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
438
|
-
* @param getSearchesNoResults.tags - Filter
|
|
436
|
+
* @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.
|
|
439
437
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
440
438
|
*/
|
|
441
439
|
getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -472,11 +470,11 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
472
470
|
return transporter.request(request, requestOptions);
|
|
473
471
|
},
|
|
474
472
|
/**
|
|
475
|
-
*
|
|
473
|
+
* 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.
|
|
476
474
|
*
|
|
477
475
|
* @summary Get Analytics API status.
|
|
478
476
|
* @param getStatus - The getStatus object.
|
|
479
|
-
* @param getStatus.index -
|
|
477
|
+
* @param getStatus.index - Index name to target.
|
|
480
478
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
481
479
|
*/
|
|
482
480
|
getStatus({ index }, requestOptions) {
|
|
@@ -498,16 +496,16 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
498
496
|
return transporter.request(request, requestOptions);
|
|
499
497
|
},
|
|
500
498
|
/**
|
|
501
|
-
* Returns top countries. Limited to the
|
|
499
|
+
* Returns top countries. Limited to the 1,000 most frequent ones.
|
|
502
500
|
*
|
|
503
501
|
* @summary Get top countries.
|
|
504
502
|
* @param getTopCountries - The getTopCountries object.
|
|
505
|
-
* @param getTopCountries.index -
|
|
506
|
-
* @param getTopCountries.startDate -
|
|
507
|
-
* @param getTopCountries.endDate -
|
|
508
|
-
* @param getTopCountries.limit - Number of records to return
|
|
503
|
+
* @param getTopCountries.index - Index name to target.
|
|
504
|
+
* @param getTopCountries.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
505
|
+
* @param getTopCountries.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
506
|
+
* @param getTopCountries.limit - Number of records to return (page size).
|
|
509
507
|
* @param getTopCountries.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
510
|
-
* @param getTopCountries.tags - Filter
|
|
508
|
+
* @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.
|
|
511
509
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
512
510
|
*/
|
|
513
511
|
getTopCountries({ index, startDate, endDate, limit, offset, tags }, requestOptions) {
|
|
@@ -544,17 +542,17 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
544
542
|
return transporter.request(request, requestOptions);
|
|
545
543
|
},
|
|
546
544
|
/**
|
|
547
|
-
*
|
|
545
|
+
* 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.
|
|
548
546
|
*
|
|
549
|
-
* @summary Get top
|
|
547
|
+
* @summary Get top filterable attributes.
|
|
550
548
|
* @param getTopFilterAttributes - The getTopFilterAttributes object.
|
|
551
|
-
* @param getTopFilterAttributes.index -
|
|
552
|
-
* @param getTopFilterAttributes.search -
|
|
553
|
-
* @param getTopFilterAttributes.startDate -
|
|
554
|
-
* @param getTopFilterAttributes.endDate -
|
|
555
|
-
* @param getTopFilterAttributes.limit - Number of records to return
|
|
549
|
+
* @param getTopFilterAttributes.index - Index name to target.
|
|
550
|
+
* @param getTopFilterAttributes.search - User query.
|
|
551
|
+
* @param getTopFilterAttributes.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
552
|
+
* @param getTopFilterAttributes.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
553
|
+
* @param getTopFilterAttributes.limit - Number of records to return (page size).
|
|
556
554
|
* @param getTopFilterAttributes.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
557
|
-
* @param getTopFilterAttributes.tags - Filter
|
|
555
|
+
* @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.
|
|
558
556
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
559
557
|
*/
|
|
560
558
|
getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -594,18 +592,18 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
594
592
|
return transporter.request(request, requestOptions);
|
|
595
593
|
},
|
|
596
594
|
/**
|
|
597
|
-
* Returns
|
|
595
|
+
* Returns the most popular filter values for an attribute in the 1,000 most recently used filters.
|
|
598
596
|
*
|
|
599
|
-
* @summary Get top
|
|
597
|
+
* @summary Get top filter values for an attribute.
|
|
600
598
|
* @param getTopFilterForAttribute - The getTopFilterForAttribute object.
|
|
601
|
-
* @param getTopFilterForAttribute.attribute -
|
|
602
|
-
* @param getTopFilterForAttribute.index -
|
|
603
|
-
* @param getTopFilterForAttribute.search -
|
|
604
|
-
* @param getTopFilterForAttribute.startDate -
|
|
605
|
-
* @param getTopFilterForAttribute.endDate -
|
|
606
|
-
* @param getTopFilterForAttribute.limit - Number of records to return
|
|
599
|
+
* @param getTopFilterForAttribute.attribute - Attribute name.
|
|
600
|
+
* @param getTopFilterForAttribute.index - Index name to target.
|
|
601
|
+
* @param getTopFilterForAttribute.search - User query.
|
|
602
|
+
* @param getTopFilterForAttribute.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
603
|
+
* @param getTopFilterForAttribute.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
604
|
+
* @param getTopFilterForAttribute.limit - Number of records to return (page size).
|
|
607
605
|
* @param getTopFilterForAttribute.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
608
|
-
* @param getTopFilterForAttribute.tags - Filter
|
|
606
|
+
* @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.
|
|
609
607
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
610
608
|
*/
|
|
611
609
|
getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -648,17 +646,17 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
648
646
|
return transporter.request(request, requestOptions);
|
|
649
647
|
},
|
|
650
648
|
/**
|
|
651
|
-
* Returns top filters
|
|
649
|
+
* Returns top filters for filter-enabled searches that don\'t return results. Limited to the 1,000 most recently used filters.
|
|
652
650
|
*
|
|
653
651
|
* @summary Get top filters for a no result search.
|
|
654
652
|
* @param getTopFiltersNoResults - The getTopFiltersNoResults object.
|
|
655
|
-
* @param getTopFiltersNoResults.index -
|
|
656
|
-
* @param getTopFiltersNoResults.search -
|
|
657
|
-
* @param getTopFiltersNoResults.startDate -
|
|
658
|
-
* @param getTopFiltersNoResults.endDate -
|
|
659
|
-
* @param getTopFiltersNoResults.limit - Number of records to return
|
|
653
|
+
* @param getTopFiltersNoResults.index - Index name to target.
|
|
654
|
+
* @param getTopFiltersNoResults.search - User query.
|
|
655
|
+
* @param getTopFiltersNoResults.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
656
|
+
* @param getTopFiltersNoResults.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
657
|
+
* @param getTopFiltersNoResults.limit - Number of records to return (page size).
|
|
660
658
|
* @param getTopFiltersNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
661
|
-
* @param getTopFiltersNoResults.tags - Filter
|
|
659
|
+
* @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.
|
|
662
660
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
663
661
|
*/
|
|
664
662
|
getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -698,18 +696,18 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
698
696
|
return transporter.request(request, requestOptions);
|
|
699
697
|
},
|
|
700
698
|
/**
|
|
701
|
-
*
|
|
699
|
+
* Return the most popular clicked results in the last 1,000 searches.
|
|
702
700
|
*
|
|
703
701
|
* @summary Get top hits.
|
|
704
702
|
* @param getTopHits - The getTopHits object.
|
|
705
|
-
* @param getTopHits.index -
|
|
706
|
-
* @param getTopHits.search -
|
|
707
|
-
* @param getTopHits.clickAnalytics - Whether to include
|
|
708
|
-
* @param getTopHits.startDate -
|
|
709
|
-
* @param getTopHits.endDate -
|
|
710
|
-
* @param getTopHits.limit - Number of records to return
|
|
703
|
+
* @param getTopHits.index - Index name to target.
|
|
704
|
+
* @param getTopHits.search - User query.
|
|
705
|
+
* @param getTopHits.clickAnalytics - Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
|
|
706
|
+
* @param getTopHits.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
707
|
+
* @param getTopHits.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
708
|
+
* @param getTopHits.limit - Number of records to return (page size).
|
|
711
709
|
* @param getTopHits.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
712
|
-
* @param getTopHits.tags - Filter
|
|
710
|
+
* @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.
|
|
713
711
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
714
712
|
*/
|
|
715
713
|
getTopHits({ index, search, clickAnalytics, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -752,19 +750,19 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
752
750
|
return transporter.request(request, requestOptions);
|
|
753
751
|
},
|
|
754
752
|
/**
|
|
755
|
-
* Returns
|
|
753
|
+
* Returns the most popular of the latest 1,000 searches. For each search, also returns the number of hits.
|
|
756
754
|
*
|
|
757
755
|
* @summary Get top searches.
|
|
758
756
|
* @param getTopSearches - The getTopSearches object.
|
|
759
|
-
* @param getTopSearches.index -
|
|
760
|
-
* @param getTopSearches.clickAnalytics - Whether to include
|
|
761
|
-
* @param getTopSearches.startDate -
|
|
762
|
-
* @param getTopSearches.endDate -
|
|
757
|
+
* @param getTopSearches.index - Index name to target.
|
|
758
|
+
* @param getTopSearches.clickAnalytics - Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
|
|
759
|
+
* @param getTopSearches.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
760
|
+
* @param getTopSearches.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
763
761
|
* @param getTopSearches.orderBy - Reorder the results.
|
|
764
|
-
* @param getTopSearches.direction -
|
|
765
|
-
* @param getTopSearches.limit - Number of records to return
|
|
762
|
+
* @param getTopSearches.direction - Sorting direction of the results: ascending or descending.
|
|
763
|
+
* @param getTopSearches.limit - Number of records to return (page size).
|
|
766
764
|
* @param getTopSearches.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
767
|
-
* @param getTopSearches.tags - Filter
|
|
765
|
+
* @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.
|
|
768
766
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
769
767
|
*/
|
|
770
768
|
getTopSearches({ index, clickAnalytics, startDate, endDate, orderBy, direction, limit, offset, tags, }, requestOptions) {
|
|
@@ -810,14 +808,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
810
808
|
return transporter.request(request, requestOptions);
|
|
811
809
|
},
|
|
812
810
|
/**
|
|
813
|
-
*
|
|
811
|
+
* Return the count of unique users.
|
|
814
812
|
*
|
|
815
|
-
* @summary Get
|
|
813
|
+
* @summary Get user count.
|
|
816
814
|
* @param getUsersCount - The getUsersCount object.
|
|
817
|
-
* @param getUsersCount.index -
|
|
818
|
-
* @param getUsersCount.startDate -
|
|
819
|
-
* @param getUsersCount.endDate -
|
|
820
|
-
* @param getUsersCount.tags - Filter
|
|
815
|
+
* @param getUsersCount.index - Index name to target.
|
|
816
|
+
* @param getUsersCount.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
817
|
+
* @param getUsersCount.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
818
|
+
* @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.
|
|
821
819
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
822
820
|
*/
|
|
823
821
|
getUsersCount({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -852,9 +850,9 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
852
850
|
*
|
|
853
851
|
* @summary Send requests to the Algolia REST API.
|
|
854
852
|
* @param post - The post object.
|
|
855
|
-
* @param post.path -
|
|
856
|
-
* @param post.parameters - Query parameters to
|
|
857
|
-
* @param post.body -
|
|
853
|
+
* @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
854
|
+
* @param post.parameters - Query parameters to apply to the current query.
|
|
855
|
+
* @param post.body - Parameters to send with the custom request.
|
|
858
856
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
859
857
|
*/
|
|
860
858
|
post({ path, parameters, body }, requestOptions) {
|
|
@@ -878,9 +876,9 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
878
876
|
*
|
|
879
877
|
* @summary Send requests to the Algolia REST API.
|
|
880
878
|
* @param put - The put object.
|
|
881
|
-
* @param put.path -
|
|
882
|
-
* @param put.parameters - Query parameters to
|
|
883
|
-
* @param put.body -
|
|
879
|
+
* @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
880
|
+
* @param put.parameters - Query parameters to apply to the current query.
|
|
881
|
+
* @param put.body - Parameters to send with the custom request.
|
|
884
882
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
885
883
|
*/
|
|
886
884
|
put({ path, parameters, body }, requestOptions) {
|