algoliasearch 5.0.0-alpha.108 → 5.0.0-alpha.109
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/algoliasearch/builds/browser.d.ts +1 -1
- package/dist/algoliasearch/builds/node.d.ts +1 -1
- package/dist/algoliasearch.cjs +196 -68
- package/dist/algoliasearch.esm.browser.js +197 -69
- package/dist/algoliasearch.esm.node.js +196 -68
- package/dist/algoliasearch.umd.js +2 -2
- package/dist/client-abtesting/model/{currenciesValue.d.ts → currency.d.ts} +2 -2
- package/dist/client-abtesting/model/currency.d.ts.map +1 -0
- package/dist/client-abtesting/model/index.d.ts +1 -1
- package/dist/client-abtesting/model/index.d.ts.map +1 -1
- package/dist/client-abtesting/model/variant.d.ts +4 -4
- package/dist/client-abtesting/model/variant.d.ts.map +1 -1
- package/dist/client-abtesting/src/abtestingClient.d.ts +1 -1
- package/dist/client-analytics/model/clickPositionsInner.d.ts +14 -0
- package/dist/client-analytics/model/clickPositionsInner.d.ts.map +1 -0
- package/dist/client-analytics/model/clientMethodProps.d.ts +96 -25
- package/dist/client-analytics/model/clientMethodProps.d.ts.map +1 -1
- package/dist/client-analytics/model/currenciesValue.d.ts +14 -0
- package/dist/client-analytics/model/currenciesValue.d.ts.map +1 -0
- package/dist/client-analytics/model/dailyAddToCartRates.d.ts +19 -0
- package/dist/client-analytics/model/dailyAddToCartRates.d.ts.map +1 -0
- package/dist/client-analytics/model/dailyAverageClicks.d.ts +15 -0
- package/dist/client-analytics/model/dailyAverageClicks.d.ts.map +1 -0
- package/dist/client-analytics/model/dailyClickThroughRates.d.ts +19 -0
- package/dist/client-analytics/model/dailyClickThroughRates.d.ts.map +1 -0
- package/dist/client-analytics/model/dailyConversionRates.d.ts +19 -0
- package/dist/client-analytics/model/dailyConversionRates.d.ts.map +1 -0
- package/dist/client-analytics/model/dailyNoClickRates.d.ts +19 -0
- package/dist/client-analytics/model/dailyNoClickRates.d.ts.map +1 -0
- package/dist/client-analytics/model/dailyNoResultsRates.d.ts +19 -0
- package/dist/client-analytics/model/dailyNoResultsRates.d.ts.map +1 -0
- package/dist/client-analytics/model/dailyPurchaseRates.d.ts +19 -0
- package/dist/client-analytics/model/dailyPurchaseRates.d.ts.map +1 -0
- package/dist/client-analytics/model/dailyRevenue.d.ts +12 -0
- package/dist/client-analytics/model/dailyRevenue.d.ts.map +1 -0
- package/dist/client-analytics/model/dailySearches.d.ts +11 -0
- package/dist/client-analytics/model/dailySearches.d.ts.map +1 -0
- package/dist/client-analytics/model/dailySearchesNoClicks.d.ts +15 -0
- package/dist/client-analytics/model/dailySearchesNoClicks.d.ts.map +1 -0
- package/dist/client-analytics/model/dailySearchesNoResults.d.ts +15 -0
- package/dist/client-analytics/model/dailySearchesNoResults.d.ts.map +1 -0
- package/dist/client-analytics/model/dailyUsers.d.ts +11 -0
- package/dist/client-analytics/model/dailyUsers.d.ts.map +1 -0
- package/dist/client-analytics/model/getAddToCartRateResponse.d.ts +20 -0
- package/dist/client-analytics/model/getAddToCartRateResponse.d.ts.map +1 -0
- package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts +6 -6
- package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getClickPositionsResponse.d.ts +3 -3
- package/dist/client-analytics/model/getClickPositionsResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getClickThroughRateResponse.d.ts +8 -8
- package/dist/client-analytics/model/getClickThroughRateResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getConversionRateResponse.d.ts +20 -0
- package/dist/client-analytics/model/getConversionRateResponse.d.ts.map +1 -0
- package/dist/client-analytics/model/getNoClickRateResponse.d.ts +6 -6
- package/dist/client-analytics/model/getNoClickRateResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getNoResultsRateResponse.d.ts +6 -6
- package/dist/client-analytics/model/getNoResultsRateResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getPurchaseRateResponse.d.ts +20 -0
- package/dist/client-analytics/model/getPurchaseRateResponse.d.ts.map +1 -0
- package/dist/client-analytics/model/getRevenue.d.ts +13 -0
- package/dist/client-analytics/model/getRevenue.d.ts.map +1 -0
- package/dist/client-analytics/model/getSearchesCountResponse.d.ts +3 -3
- package/dist/client-analytics/model/getSearchesCountResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts +3 -3
- package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts +3 -3
- package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getStatusResponse.d.ts +2 -2
- package/dist/client-analytics/model/getStatusResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopCountriesResponse.d.ts +1 -1
- package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts +1 -1
- package/dist/client-analytics/model/getTopFilterForAttribute.d.ts +2 -4
- package/dist/client-analytics/model/getTopFilterForAttribute.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts +2 -2
- package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts +2 -4
- package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopHitsResponse.d.ts +2 -1
- package/dist/client-analytics/model/getTopHitsResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopSearchesResponse.d.ts +2 -1
- package/dist/client-analytics/model/getTopSearchesResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getUsersCountResponse.d.ts +4 -4
- package/dist/client-analytics/model/getUsersCountResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/index.d.ts +23 -11
- package/dist/client-analytics/model/index.d.ts.map +1 -1
- package/dist/client-analytics/model/operator.d.ts +5 -0
- package/dist/client-analytics/model/operator.d.ts.map +1 -0
- package/dist/client-analytics/model/orderBy.d.ts +1 -1
- package/dist/client-analytics/model/topCountry.d.ts +1 -1
- package/dist/client-analytics/model/topHit.d.ts +1 -1
- package/dist/client-analytics/model/topHitWithAnalytics.d.ts +9 -9
- package/dist/client-analytics/model/topHitWithAnalytics.d.ts.map +1 -1
- package/dist/client-analytics/model/topHitWithRevenueAnalytics.d.ts +52 -0
- package/dist/client-analytics/model/topHitWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/client-analytics/model/topHitsResponse.d.ts +1 -1
- package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts +1 -1
- package/dist/client-analytics/model/topHitsResponseWithRevenueAnalytics.d.ts +8 -0
- package/dist/client-analytics/model/topHitsResponseWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/client-analytics/model/topSearch.d.ts +2 -2
- package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +17 -12
- package/dist/client-analytics/model/topSearchWithAnalytics.d.ts.map +1 -1
- package/dist/client-analytics/model/topSearchWithRevenueAnalytics.d.ts +65 -0
- package/dist/client-analytics/model/topSearchWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/client-analytics/model/topSearchesResponse.d.ts +1 -1
- package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts +1 -1
- package/dist/client-analytics/model/topSearchesResponseWithRevenueAnalytics.d.ts +8 -0
- package/dist/client-analytics/model/topSearchesResponseWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/client-analytics/src/analyticsClient.d.ts +97 -50
- package/dist/client-analytics/src/analyticsClient.d.ts.map +1 -1
- package/dist/client-personalization/src/personalizationClient.d.ts +1 -1
- package/dist/client-search/src/searchClient.d.ts +1 -1
- package/dist/lite/lite.cjs +2 -2
- package/dist/lite/lite.esm.browser.js +3 -3
- package/dist/lite/lite.esm.node.js +2 -2
- package/dist/lite/lite.umd.js +2 -2
- package/dist/lite/src/liteClient.d.ts +1 -1
- package/lite/src/liteClient.ts +2 -2
- package/package.json +12 -12
- package/dist/client-abtesting/model/currenciesValue.d.ts.map +0 -1
- package/dist/client-analytics/model/averageClickEvent.d.ts +0 -15
- package/dist/client-analytics/model/averageClickEvent.d.ts.map +0 -1
- package/dist/client-analytics/model/clickPosition.d.ts +0 -11
- package/dist/client-analytics/model/clickPosition.d.ts.map +0 -1
- package/dist/client-analytics/model/clickThroughRateEvent.d.ts +0 -19
- package/dist/client-analytics/model/clickThroughRateEvent.d.ts.map +0 -1
- package/dist/client-analytics/model/conversionRateEvent.d.ts +0 -19
- package/dist/client-analytics/model/conversionRateEvent.d.ts.map +0 -1
- package/dist/client-analytics/model/getConversationRateResponse.d.ts +0 -20
- package/dist/client-analytics/model/getConversationRateResponse.d.ts.map +0 -1
- package/dist/client-analytics/model/noClickRateEvent.d.ts +0 -19
- package/dist/client-analytics/model/noClickRateEvent.d.ts.map +0 -1
- package/dist/client-analytics/model/noResultsRateEvent.d.ts +0 -19
- package/dist/client-analytics/model/noResultsRateEvent.d.ts.map +0 -1
- package/dist/client-analytics/model/searchEvent.d.ts +0 -11
- package/dist/client-analytics/model/searchEvent.d.ts.map +0 -1
- package/dist/client-analytics/model/searchNoClickEvent.d.ts +0 -15
- package/dist/client-analytics/model/searchNoClickEvent.d.ts.map +0 -1
- package/dist/client-analytics/model/searchNoResultEvent.d.ts +0 -15
- package/dist/client-analytics/model/searchNoResultEvent.d.ts.map +0 -1
- package/dist/client-analytics/model/userWithDate.d.ts +0 -11
- package/dist/client-analytics/model/userWithDate.d.ts.map +0 -1
|
@@ -3,7 +3,7 @@ import { createAuth, createTransporter, getAlgoliaAgent, createIterablePromise,
|
|
|
3
3
|
import { createHttpRequester } from '@algolia/requester-node-http';
|
|
4
4
|
|
|
5
5
|
// 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.
|
|
6
|
-
const apiClientVersion$4 = '5.0.0-alpha.
|
|
6
|
+
const apiClientVersion$4 = '5.0.0-alpha.109';
|
|
7
7
|
const REGIONS$2 = ['de', 'us'];
|
|
8
8
|
function getDefaultHosts$3(region) {
|
|
9
9
|
const url = !region
|
|
@@ -108,7 +108,7 @@ function createAbtestingClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
108
108
|
if (!path) {
|
|
109
109
|
throw new Error('Parameter `path` is required when calling `customDelete`.');
|
|
110
110
|
}
|
|
111
|
-
const requestPath = '/
|
|
111
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
112
112
|
const headers = {};
|
|
113
113
|
const queryParameters = parameters ? parameters : {};
|
|
114
114
|
const request = {
|
|
@@ -131,7 +131,7 @@ function createAbtestingClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
131
131
|
if (!path) {
|
|
132
132
|
throw new Error('Parameter `path` is required when calling `customGet`.');
|
|
133
133
|
}
|
|
134
|
-
const requestPath = '/
|
|
134
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
135
135
|
const headers = {};
|
|
136
136
|
const queryParameters = parameters ? parameters : {};
|
|
137
137
|
const request = {
|
|
@@ -155,7 +155,7 @@ function createAbtestingClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
155
155
|
if (!path) {
|
|
156
156
|
throw new Error('Parameter `path` is required when calling `customPost`.');
|
|
157
157
|
}
|
|
158
|
-
const requestPath = '/
|
|
158
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
159
159
|
const headers = {};
|
|
160
160
|
const queryParameters = parameters ? parameters : {};
|
|
161
161
|
const request = {
|
|
@@ -180,7 +180,7 @@ function createAbtestingClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
180
180
|
if (!path) {
|
|
181
181
|
throw new Error('Parameter `path` is required when calling `customPut`.');
|
|
182
182
|
}
|
|
183
|
-
const requestPath = '/
|
|
183
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
184
184
|
const headers = {};
|
|
185
185
|
const queryParameters = parameters ? parameters : {};
|
|
186
186
|
const request = {
|
|
@@ -308,7 +308,7 @@ function createAbtestingClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
// 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.
|
|
311
|
-
const apiClientVersion$3 = '5.0.0-alpha.
|
|
311
|
+
const apiClientVersion$3 = '5.0.0-alpha.109';
|
|
312
312
|
const REGIONS$1 = ['de', 'us'];
|
|
313
313
|
function getDefaultHosts$2(region) {
|
|
314
314
|
const url = !region
|
|
@@ -379,7 +379,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
379
379
|
if (!path) {
|
|
380
380
|
throw new Error('Parameter `path` is required when calling `customDelete`.');
|
|
381
381
|
}
|
|
382
|
-
const requestPath = '/
|
|
382
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
383
383
|
const headers = {};
|
|
384
384
|
const queryParameters = parameters ? parameters : {};
|
|
385
385
|
const request = {
|
|
@@ -402,7 +402,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
402
402
|
if (!path) {
|
|
403
403
|
throw new Error('Parameter `path` is required when calling `customGet`.');
|
|
404
404
|
}
|
|
405
|
-
const requestPath = '/
|
|
405
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
406
406
|
const headers = {};
|
|
407
407
|
const queryParameters = parameters ? parameters : {};
|
|
408
408
|
const request = {
|
|
@@ -426,7 +426,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
426
426
|
if (!path) {
|
|
427
427
|
throw new Error('Parameter `path` is required when calling `customPost`.');
|
|
428
428
|
}
|
|
429
|
-
const requestPath = '/
|
|
429
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
430
430
|
const headers = {};
|
|
431
431
|
const queryParameters = parameters ? parameters : {};
|
|
432
432
|
const request = {
|
|
@@ -451,7 +451,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
451
451
|
if (!path) {
|
|
452
452
|
throw new Error('Parameter `path` is required when calling `customPut`.');
|
|
453
453
|
}
|
|
454
|
-
const requestPath = '/
|
|
454
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
455
455
|
const headers = {};
|
|
456
456
|
const queryParameters = parameters ? parameters : {};
|
|
457
457
|
const request = {
|
|
@@ -464,7 +464,47 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
464
464
|
return transporter.request(request, requestOptions);
|
|
465
465
|
},
|
|
466
466
|
/**
|
|
467
|
-
*
|
|
467
|
+
* Retrieves the add-to-cart rate for all of your searches with at least one add-to-cart event, including a daily breakdown. By default, the analyzed period includes the last eight days including the current day.
|
|
468
|
+
*
|
|
469
|
+
* Required API Key ACLs:
|
|
470
|
+
* - analytics.
|
|
471
|
+
*
|
|
472
|
+
* @param getAddToCartRate - The getAddToCartRate object.
|
|
473
|
+
* @param getAddToCartRate.index - Index name.
|
|
474
|
+
* @param getAddToCartRate.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
475
|
+
* @param getAddToCartRate.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
476
|
+
* @param getAddToCartRate.tags - 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/).
|
|
477
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
478
|
+
*/
|
|
479
|
+
getAddToCartRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
480
|
+
if (!index) {
|
|
481
|
+
throw new Error('Parameter `index` is required when calling `getAddToCartRate`.');
|
|
482
|
+
}
|
|
483
|
+
const requestPath = '/2/conversions/addToCartRate';
|
|
484
|
+
const headers = {};
|
|
485
|
+
const queryParameters = {};
|
|
486
|
+
if (index !== undefined) {
|
|
487
|
+
queryParameters.index = index.toString();
|
|
488
|
+
}
|
|
489
|
+
if (startDate !== undefined) {
|
|
490
|
+
queryParameters.startDate = startDate.toString();
|
|
491
|
+
}
|
|
492
|
+
if (endDate !== undefined) {
|
|
493
|
+
queryParameters.endDate = endDate.toString();
|
|
494
|
+
}
|
|
495
|
+
if (tags !== undefined) {
|
|
496
|
+
queryParameters.tags = tags.toString();
|
|
497
|
+
}
|
|
498
|
+
const request = {
|
|
499
|
+
method: 'GET',
|
|
500
|
+
path: requestPath,
|
|
501
|
+
queryParameters,
|
|
502
|
+
headers,
|
|
503
|
+
};
|
|
504
|
+
return transporter.request(request, requestOptions);
|
|
505
|
+
},
|
|
506
|
+
/**
|
|
507
|
+
* Retrieves the average click position of your search results, including a daily breakdown. The average click position is the average of all clicked search results\' positions. For example, if users only ever click on the first result for any search, the average click position is 1. By default, the analyzed period includes the last eight days including the current day.
|
|
468
508
|
*
|
|
469
509
|
* Required API Key ACLs:
|
|
470
510
|
* - analytics.
|
|
@@ -473,7 +513,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
473
513
|
* @param getAverageClickPosition.index - Index name.
|
|
474
514
|
* @param getAverageClickPosition.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
475
515
|
* @param getAverageClickPosition.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
476
|
-
* @param getAverageClickPosition.tags -
|
|
516
|
+
* @param getAverageClickPosition.tags - 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/).
|
|
477
517
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
478
518
|
*/
|
|
479
519
|
getAverageClickPosition({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -504,7 +544,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
504
544
|
return transporter.request(request, requestOptions);
|
|
505
545
|
},
|
|
506
546
|
/**
|
|
507
|
-
*
|
|
547
|
+
* Retrieves the positions in the search results and their associated number of clicks. This lets you check how many clicks the first, second, or tenth search results receive.
|
|
508
548
|
*
|
|
509
549
|
* Required API Key ACLs:
|
|
510
550
|
* - analytics.
|
|
@@ -513,7 +553,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
513
553
|
* @param getClickPositions.index - Index name.
|
|
514
554
|
* @param getClickPositions.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
515
555
|
* @param getClickPositions.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
516
|
-
* @param getClickPositions.tags -
|
|
556
|
+
* @param getClickPositions.tags - 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/).
|
|
517
557
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
518
558
|
*/
|
|
519
559
|
getClickPositions({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -544,7 +584,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
544
584
|
return transporter.request(request, requestOptions);
|
|
545
585
|
},
|
|
546
586
|
/**
|
|
547
|
-
*
|
|
587
|
+
* Retrieves the click-through rate for all of your searches with at least one click event, including a daily breakdown By default, the analyzed period includes the last eight days including the current day.
|
|
548
588
|
*
|
|
549
589
|
* Required API Key ACLs:
|
|
550
590
|
* - analytics.
|
|
@@ -553,7 +593,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
553
593
|
* @param getClickThroughRate.index - Index name.
|
|
554
594
|
* @param getClickThroughRate.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
555
595
|
* @param getClickThroughRate.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
556
|
-
* @param getClickThroughRate.tags -
|
|
596
|
+
* @param getClickThroughRate.tags - 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/).
|
|
557
597
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
558
598
|
*/
|
|
559
599
|
getClickThroughRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -584,21 +624,21 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
584
624
|
return transporter.request(request, requestOptions);
|
|
585
625
|
},
|
|
586
626
|
/**
|
|
587
|
-
*
|
|
627
|
+
* Retrieves the conversion rate for all of your searches with at least one conversion event, including a daily breakdown. By default, the analyzed period includes the last eight days including the current day.
|
|
588
628
|
*
|
|
589
629
|
* Required API Key ACLs:
|
|
590
630
|
* - analytics.
|
|
591
631
|
*
|
|
592
|
-
* @param
|
|
593
|
-
* @param
|
|
594
|
-
* @param
|
|
595
|
-
* @param
|
|
596
|
-
* @param
|
|
632
|
+
* @param getConversionRate - The getConversionRate object.
|
|
633
|
+
* @param getConversionRate.index - Index name.
|
|
634
|
+
* @param getConversionRate.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
635
|
+
* @param getConversionRate.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
636
|
+
* @param getConversionRate.tags - 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/).
|
|
597
637
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
598
638
|
*/
|
|
599
|
-
|
|
639
|
+
getConversionRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
600
640
|
if (!index) {
|
|
601
|
-
throw new Error('Parameter `index` is required when calling `
|
|
641
|
+
throw new Error('Parameter `index` is required when calling `getConversionRate`.');
|
|
602
642
|
}
|
|
603
643
|
const requestPath = '/2/conversions/conversionRate';
|
|
604
644
|
const headers = {};
|
|
@@ -624,7 +664,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
624
664
|
return transporter.request(request, requestOptions);
|
|
625
665
|
},
|
|
626
666
|
/**
|
|
627
|
-
*
|
|
667
|
+
* Retrieves the fraction of searches that didn\'t lead to any click within a time range, including a daily breakdown. By default, the analyzed period includes the last eight days including the current day.
|
|
628
668
|
*
|
|
629
669
|
* Required API Key ACLs:
|
|
630
670
|
* - analytics.
|
|
@@ -633,7 +673,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
633
673
|
* @param getNoClickRate.index - Index name.
|
|
634
674
|
* @param getNoClickRate.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
635
675
|
* @param getNoClickRate.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
636
|
-
* @param getNoClickRate.tags -
|
|
676
|
+
* @param getNoClickRate.tags - 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/).
|
|
637
677
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
638
678
|
*/
|
|
639
679
|
getNoClickRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -664,7 +704,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
664
704
|
return transporter.request(request, requestOptions);
|
|
665
705
|
},
|
|
666
706
|
/**
|
|
667
|
-
*
|
|
707
|
+
* Retrieves the fraction of searches that didn\'t return any results within a time range, including a daily breakdown. By default, the analyzed period includes the last eight days including the current day.
|
|
668
708
|
*
|
|
669
709
|
* Required API Key ACLs:
|
|
670
710
|
* - analytics.
|
|
@@ -673,7 +713,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
673
713
|
* @param getNoResultsRate.index - Index name.
|
|
674
714
|
* @param getNoResultsRate.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
675
715
|
* @param getNoResultsRate.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
676
|
-
* @param getNoResultsRate.tags -
|
|
716
|
+
* @param getNoResultsRate.tags - 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/).
|
|
677
717
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
678
718
|
*/
|
|
679
719
|
getNoResultsRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -704,7 +744,87 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
704
744
|
return transporter.request(request, requestOptions);
|
|
705
745
|
},
|
|
706
746
|
/**
|
|
707
|
-
*
|
|
747
|
+
* Retrieves the purchase rate for all of your searches with at least one purchase event, including a daily breakdown. By default, the analyzed period includes the last eight days including the current day.
|
|
748
|
+
*
|
|
749
|
+
* Required API Key ACLs:
|
|
750
|
+
* - analytics.
|
|
751
|
+
*
|
|
752
|
+
* @param getPurchaseRate - The getPurchaseRate object.
|
|
753
|
+
* @param getPurchaseRate.index - Index name.
|
|
754
|
+
* @param getPurchaseRate.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
755
|
+
* @param getPurchaseRate.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
756
|
+
* @param getPurchaseRate.tags - 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/).
|
|
757
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
758
|
+
*/
|
|
759
|
+
getPurchaseRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
760
|
+
if (!index) {
|
|
761
|
+
throw new Error('Parameter `index` is required when calling `getPurchaseRate`.');
|
|
762
|
+
}
|
|
763
|
+
const requestPath = '/2/conversions/purchaseRate';
|
|
764
|
+
const headers = {};
|
|
765
|
+
const queryParameters = {};
|
|
766
|
+
if (index !== undefined) {
|
|
767
|
+
queryParameters.index = index.toString();
|
|
768
|
+
}
|
|
769
|
+
if (startDate !== undefined) {
|
|
770
|
+
queryParameters.startDate = startDate.toString();
|
|
771
|
+
}
|
|
772
|
+
if (endDate !== undefined) {
|
|
773
|
+
queryParameters.endDate = endDate.toString();
|
|
774
|
+
}
|
|
775
|
+
if (tags !== undefined) {
|
|
776
|
+
queryParameters.tags = tags.toString();
|
|
777
|
+
}
|
|
778
|
+
const request = {
|
|
779
|
+
method: 'GET',
|
|
780
|
+
path: requestPath,
|
|
781
|
+
queryParameters,
|
|
782
|
+
headers,
|
|
783
|
+
};
|
|
784
|
+
return transporter.request(request, requestOptions);
|
|
785
|
+
},
|
|
786
|
+
/**
|
|
787
|
+
* Retrieves revenue-related metrics, such as the total revenue or the average order value. To retrieve revenue-related metrics, sent purchase events. By default, the analyzed period includes the last eight days including the current day.
|
|
788
|
+
*
|
|
789
|
+
* Required API Key ACLs:
|
|
790
|
+
* - analytics.
|
|
791
|
+
*
|
|
792
|
+
* @param getRevenue - The getRevenue object.
|
|
793
|
+
* @param getRevenue.index - Index name.
|
|
794
|
+
* @param getRevenue.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
795
|
+
* @param getRevenue.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
796
|
+
* @param getRevenue.tags - 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/).
|
|
797
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
798
|
+
*/
|
|
799
|
+
getRevenue({ index, startDate, endDate, tags }, requestOptions) {
|
|
800
|
+
if (!index) {
|
|
801
|
+
throw new Error('Parameter `index` is required when calling `getRevenue`.');
|
|
802
|
+
}
|
|
803
|
+
const requestPath = '/2/conversions/revenue';
|
|
804
|
+
const headers = {};
|
|
805
|
+
const queryParameters = {};
|
|
806
|
+
if (index !== undefined) {
|
|
807
|
+
queryParameters.index = index.toString();
|
|
808
|
+
}
|
|
809
|
+
if (startDate !== undefined) {
|
|
810
|
+
queryParameters.startDate = startDate.toString();
|
|
811
|
+
}
|
|
812
|
+
if (endDate !== undefined) {
|
|
813
|
+
queryParameters.endDate = endDate.toString();
|
|
814
|
+
}
|
|
815
|
+
if (tags !== undefined) {
|
|
816
|
+
queryParameters.tags = tags.toString();
|
|
817
|
+
}
|
|
818
|
+
const request = {
|
|
819
|
+
method: 'GET',
|
|
820
|
+
path: requestPath,
|
|
821
|
+
queryParameters,
|
|
822
|
+
headers,
|
|
823
|
+
};
|
|
824
|
+
return transporter.request(request, requestOptions);
|
|
825
|
+
},
|
|
826
|
+
/**
|
|
827
|
+
* Retrieves the number of searches within a time range, including a daily breakdown. By default, the analyzed period includes the last eight days including the current day.
|
|
708
828
|
*
|
|
709
829
|
* Required API Key ACLs:
|
|
710
830
|
* - analytics.
|
|
@@ -713,7 +833,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
713
833
|
* @param getSearchesCount.index - Index name.
|
|
714
834
|
* @param getSearchesCount.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
715
835
|
* @param getSearchesCount.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
716
|
-
* @param getSearchesCount.tags -
|
|
836
|
+
* @param getSearchesCount.tags - 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/).
|
|
717
837
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
718
838
|
*/
|
|
719
839
|
getSearchesCount({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -744,7 +864,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
744
864
|
return transporter.request(request, requestOptions);
|
|
745
865
|
},
|
|
746
866
|
/**
|
|
747
|
-
*
|
|
867
|
+
* Retrieves the most popular searches that didn\'t lead to any clicks, from the 1,000 most frequent searches.
|
|
748
868
|
*
|
|
749
869
|
* Required API Key ACLs:
|
|
750
870
|
* - analytics.
|
|
@@ -755,7 +875,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
755
875
|
* @param getSearchesNoClicks.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
756
876
|
* @param getSearchesNoClicks.limit - Number of items to return.
|
|
757
877
|
* @param getSearchesNoClicks.offset - Position of the first item to return.
|
|
758
|
-
* @param getSearchesNoClicks.tags -
|
|
878
|
+
* @param getSearchesNoClicks.tags - 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/).
|
|
759
879
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
760
880
|
*/
|
|
761
881
|
getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -792,7 +912,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
792
912
|
return transporter.request(request, requestOptions);
|
|
793
913
|
},
|
|
794
914
|
/**
|
|
795
|
-
*
|
|
915
|
+
* Retrieves the most popular searches that didn\'t return any results.
|
|
796
916
|
*
|
|
797
917
|
* Required API Key ACLs:
|
|
798
918
|
* - analytics.
|
|
@@ -803,7 +923,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
803
923
|
* @param getSearchesNoResults.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
804
924
|
* @param getSearchesNoResults.limit - Number of items to return.
|
|
805
925
|
* @param getSearchesNoResults.offset - Position of the first item to return.
|
|
806
|
-
* @param getSearchesNoResults.tags -
|
|
926
|
+
* @param getSearchesNoResults.tags - 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/).
|
|
807
927
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
808
928
|
*/
|
|
809
929
|
getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -840,7 +960,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
840
960
|
return transporter.request(request, requestOptions);
|
|
841
961
|
},
|
|
842
962
|
/**
|
|
843
|
-
*
|
|
963
|
+
* Retrieves the time when the Analytics data for the specified index was last updated. The Analytics data is updated every 5 minutes.
|
|
844
964
|
*
|
|
845
965
|
* Required API Key ACLs:
|
|
846
966
|
* - analytics.
|
|
@@ -868,7 +988,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
868
988
|
return transporter.request(request, requestOptions);
|
|
869
989
|
},
|
|
870
990
|
/**
|
|
871
|
-
*
|
|
991
|
+
* Retrieves the countries with the most searches to your index.
|
|
872
992
|
*
|
|
873
993
|
* Required API Key ACLs:
|
|
874
994
|
* - analytics.
|
|
@@ -879,7 +999,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
879
999
|
* @param getTopCountries.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
880
1000
|
* @param getTopCountries.limit - Number of items to return.
|
|
881
1001
|
* @param getTopCountries.offset - Position of the first item to return.
|
|
882
|
-
* @param getTopCountries.tags -
|
|
1002
|
+
* @param getTopCountries.tags - 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/).
|
|
883
1003
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
884
1004
|
*/
|
|
885
1005
|
getTopCountries({ index, startDate, endDate, limit, offset, tags }, requestOptions) {
|
|
@@ -916,19 +1036,19 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
916
1036
|
return transporter.request(request, requestOptions);
|
|
917
1037
|
},
|
|
918
1038
|
/**
|
|
919
|
-
*
|
|
1039
|
+
* Retrieves the most frequently used filter attributes. These are attributes of your records that you included in the `attributesForFaceting` setting.
|
|
920
1040
|
*
|
|
921
1041
|
* Required API Key ACLs:
|
|
922
1042
|
* - analytics.
|
|
923
1043
|
*
|
|
924
1044
|
* @param getTopFilterAttributes - The getTopFilterAttributes object.
|
|
925
1045
|
* @param getTopFilterAttributes.index - Index name.
|
|
926
|
-
* @param getTopFilterAttributes.search -
|
|
1046
|
+
* @param getTopFilterAttributes.search - Search query.
|
|
927
1047
|
* @param getTopFilterAttributes.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
928
1048
|
* @param getTopFilterAttributes.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
929
1049
|
* @param getTopFilterAttributes.limit - Number of items to return.
|
|
930
1050
|
* @param getTopFilterAttributes.offset - Position of the first item to return.
|
|
931
|
-
* @param getTopFilterAttributes.tags -
|
|
1051
|
+
* @param getTopFilterAttributes.tags - 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/).
|
|
932
1052
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
933
1053
|
*/
|
|
934
1054
|
getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -968,7 +1088,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
968
1088
|
return transporter.request(request, requestOptions);
|
|
969
1089
|
},
|
|
970
1090
|
/**
|
|
971
|
-
*
|
|
1091
|
+
* Retrieves the most frequent filter (facet) values for a filter attribute. These are attributes of your records that you included in the `attributesForFaceting` setting.
|
|
972
1092
|
*
|
|
973
1093
|
* Required API Key ACLs:
|
|
974
1094
|
* - analytics.
|
|
@@ -976,12 +1096,12 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
976
1096
|
* @param getTopFilterForAttribute - The getTopFilterForAttribute object.
|
|
977
1097
|
* @param getTopFilterForAttribute.attribute - Attribute name.
|
|
978
1098
|
* @param getTopFilterForAttribute.index - Index name.
|
|
979
|
-
* @param getTopFilterForAttribute.search -
|
|
1099
|
+
* @param getTopFilterForAttribute.search - Search query.
|
|
980
1100
|
* @param getTopFilterForAttribute.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
981
1101
|
* @param getTopFilterForAttribute.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
982
1102
|
* @param getTopFilterForAttribute.limit - Number of items to return.
|
|
983
1103
|
* @param getTopFilterForAttribute.offset - Position of the first item to return.
|
|
984
|
-
* @param getTopFilterForAttribute.tags -
|
|
1104
|
+
* @param getTopFilterForAttribute.tags - 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/).
|
|
985
1105
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
986
1106
|
*/
|
|
987
1107
|
getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -1024,19 +1144,19 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1024
1144
|
return transporter.request(request, requestOptions);
|
|
1025
1145
|
},
|
|
1026
1146
|
/**
|
|
1027
|
-
*
|
|
1147
|
+
* Retrieves the most frequently used filters for a search that didn\'t return any results. To get the most frequent searches without results, use the [Retrieve searches without results](#tag/search/operation/getSearchesNoResults) operation.
|
|
1028
1148
|
*
|
|
1029
1149
|
* Required API Key ACLs:
|
|
1030
1150
|
* - analytics.
|
|
1031
1151
|
*
|
|
1032
1152
|
* @param getTopFiltersNoResults - The getTopFiltersNoResults object.
|
|
1033
1153
|
* @param getTopFiltersNoResults.index - Index name.
|
|
1034
|
-
* @param getTopFiltersNoResults.search -
|
|
1154
|
+
* @param getTopFiltersNoResults.search - Search query.
|
|
1035
1155
|
* @param getTopFiltersNoResults.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
1036
1156
|
* @param getTopFiltersNoResults.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
1037
1157
|
* @param getTopFiltersNoResults.limit - Number of items to return.
|
|
1038
1158
|
* @param getTopFiltersNoResults.offset - Position of the first item to return.
|
|
1039
|
-
* @param getTopFiltersNoResults.tags -
|
|
1159
|
+
* @param getTopFiltersNoResults.tags - 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/).
|
|
1040
1160
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1041
1161
|
*/
|
|
1042
1162
|
getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -1076,23 +1196,24 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1076
1196
|
return transporter.request(request, requestOptions);
|
|
1077
1197
|
},
|
|
1078
1198
|
/**
|
|
1079
|
-
*
|
|
1199
|
+
* Retrieves the object IDs of the most frequent search results.
|
|
1080
1200
|
*
|
|
1081
1201
|
* Required API Key ACLs:
|
|
1082
1202
|
* - analytics.
|
|
1083
1203
|
*
|
|
1084
1204
|
* @param getTopHits - The getTopHits object.
|
|
1085
1205
|
* @param getTopHits.index - Index name.
|
|
1086
|
-
* @param getTopHits.search -
|
|
1087
|
-
* @param getTopHits.clickAnalytics - Whether to include
|
|
1206
|
+
* @param getTopHits.search - Search query.
|
|
1207
|
+
* @param getTopHits.clickAnalytics - Whether to include metrics related to click and conversion events in the response.
|
|
1208
|
+
* @param getTopHits.revenueAnalytics - Whether to include revenue-related metrics in the response. If true, metrics related to click and conversion events are also included in the response.
|
|
1088
1209
|
* @param getTopHits.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
1089
1210
|
* @param getTopHits.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
1090
1211
|
* @param getTopHits.limit - Number of items to return.
|
|
1091
1212
|
* @param getTopHits.offset - Position of the first item to return.
|
|
1092
|
-
* @param getTopHits.tags -
|
|
1213
|
+
* @param getTopHits.tags - 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/).
|
|
1093
1214
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1094
1215
|
*/
|
|
1095
|
-
getTopHits({ index, search, clickAnalytics, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
1216
|
+
getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
1096
1217
|
if (!index) {
|
|
1097
1218
|
throw new Error('Parameter `index` is required when calling `getTopHits`.');
|
|
1098
1219
|
}
|
|
@@ -1108,6 +1229,9 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1108
1229
|
if (clickAnalytics !== undefined) {
|
|
1109
1230
|
queryParameters.clickAnalytics = clickAnalytics.toString();
|
|
1110
1231
|
}
|
|
1232
|
+
if (revenueAnalytics !== undefined) {
|
|
1233
|
+
queryParameters.revenueAnalytics = revenueAnalytics.toString();
|
|
1234
|
+
}
|
|
1111
1235
|
if (startDate !== undefined) {
|
|
1112
1236
|
queryParameters.startDate = startDate.toString();
|
|
1113
1237
|
}
|
|
@@ -1132,24 +1256,25 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1132
1256
|
return transporter.request(request, requestOptions);
|
|
1133
1257
|
},
|
|
1134
1258
|
/**
|
|
1135
|
-
* Returns the most popular
|
|
1259
|
+
* Returns the most popular search terms.
|
|
1136
1260
|
*
|
|
1137
1261
|
* Required API Key ACLs:
|
|
1138
1262
|
* - analytics.
|
|
1139
1263
|
*
|
|
1140
1264
|
* @param getTopSearches - The getTopSearches object.
|
|
1141
1265
|
* @param getTopSearches.index - Index name.
|
|
1142
|
-
* @param getTopSearches.clickAnalytics - Whether to include
|
|
1266
|
+
* @param getTopSearches.clickAnalytics - Whether to include metrics related to click and conversion events in the response.
|
|
1267
|
+
* @param getTopSearches.revenueAnalytics - Whether to include revenue-related metrics in the response. If true, metrics related to click and conversion events are also included in the response.
|
|
1143
1268
|
* @param getTopSearches.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
1144
1269
|
* @param getTopSearches.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
1145
|
-
* @param getTopSearches.orderBy -
|
|
1270
|
+
* @param getTopSearches.orderBy - Attribute by which to order the response items. If the `clickAnalytics` parameter is false, only `searchCount` is available.
|
|
1146
1271
|
* @param getTopSearches.direction - Sorting direction of the results: ascending or descending.
|
|
1147
1272
|
* @param getTopSearches.limit - Number of items to return.
|
|
1148
1273
|
* @param getTopSearches.offset - Position of the first item to return.
|
|
1149
|
-
* @param getTopSearches.tags -
|
|
1274
|
+
* @param getTopSearches.tags - 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/).
|
|
1150
1275
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1151
1276
|
*/
|
|
1152
|
-
getTopSearches({ index, clickAnalytics, startDate, endDate, orderBy, direction, limit, offset, tags, }, requestOptions) {
|
|
1277
|
+
getTopSearches({ index, clickAnalytics, revenueAnalytics, startDate, endDate, orderBy, direction, limit, offset, tags, }, requestOptions) {
|
|
1153
1278
|
if (!index) {
|
|
1154
1279
|
throw new Error('Parameter `index` is required when calling `getTopSearches`.');
|
|
1155
1280
|
}
|
|
@@ -1162,6 +1287,9 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1162
1287
|
if (clickAnalytics !== undefined) {
|
|
1163
1288
|
queryParameters.clickAnalytics = clickAnalytics.toString();
|
|
1164
1289
|
}
|
|
1290
|
+
if (revenueAnalytics !== undefined) {
|
|
1291
|
+
queryParameters.revenueAnalytics = revenueAnalytics.toString();
|
|
1292
|
+
}
|
|
1165
1293
|
if (startDate !== undefined) {
|
|
1166
1294
|
queryParameters.startDate = startDate.toString();
|
|
1167
1295
|
}
|
|
@@ -1192,7 +1320,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1192
1320
|
return transporter.request(request, requestOptions);
|
|
1193
1321
|
},
|
|
1194
1322
|
/**
|
|
1195
|
-
*
|
|
1323
|
+
* Retrieves the number of unique users within a time range, including a daily breakdown. Since this endpoint returns the number of unique users, the sum of the daily values might be different from the total number. By default, Algolia distinguishes search users by their IP address, _unless_ you include a pseudonymous user identifier in your search requests with the `userToken` API parameter or `x-algolia-usertoken` request header. By default, the analyzed period includes the last eight days including the current day.
|
|
1196
1324
|
*
|
|
1197
1325
|
* Required API Key ACLs:
|
|
1198
1326
|
* - analytics.
|
|
@@ -1201,7 +1329,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1201
1329
|
* @param getUsersCount.index - Index name.
|
|
1202
1330
|
* @param getUsersCount.startDate - Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
1203
1331
|
* @param getUsersCount.endDate - End date (`YYYY-MM-DD`) of the period to analyze.
|
|
1204
|
-
* @param getUsersCount.tags -
|
|
1332
|
+
* @param getUsersCount.tags - 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/).
|
|
1205
1333
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1206
1334
|
*/
|
|
1207
1335
|
getUsersCount({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -1235,7 +1363,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1235
1363
|
}
|
|
1236
1364
|
|
|
1237
1365
|
// 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.
|
|
1238
|
-
const apiClientVersion$2 = '5.0.0-alpha.
|
|
1366
|
+
const apiClientVersion$2 = '5.0.0-alpha.109';
|
|
1239
1367
|
const REGIONS = ['eu', 'us'];
|
|
1240
1368
|
function getDefaultHosts$1(region) {
|
|
1241
1369
|
const url = 'personalization.{region}.algolia.com'.replace('{region}', region);
|
|
@@ -1304,7 +1432,7 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
1304
1432
|
if (!path) {
|
|
1305
1433
|
throw new Error('Parameter `path` is required when calling `customDelete`.');
|
|
1306
1434
|
}
|
|
1307
|
-
const requestPath = '/
|
|
1435
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
1308
1436
|
const headers = {};
|
|
1309
1437
|
const queryParameters = parameters ? parameters : {};
|
|
1310
1438
|
const request = {
|
|
@@ -1327,7 +1455,7 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
1327
1455
|
if (!path) {
|
|
1328
1456
|
throw new Error('Parameter `path` is required when calling `customGet`.');
|
|
1329
1457
|
}
|
|
1330
|
-
const requestPath = '/
|
|
1458
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
1331
1459
|
const headers = {};
|
|
1332
1460
|
const queryParameters = parameters ? parameters : {};
|
|
1333
1461
|
const request = {
|
|
@@ -1351,7 +1479,7 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
1351
1479
|
if (!path) {
|
|
1352
1480
|
throw new Error('Parameter `path` is required when calling `customPost`.');
|
|
1353
1481
|
}
|
|
1354
|
-
const requestPath = '/
|
|
1482
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
1355
1483
|
const headers = {};
|
|
1356
1484
|
const queryParameters = parameters ? parameters : {};
|
|
1357
1485
|
const request = {
|
|
@@ -1376,7 +1504,7 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
1376
1504
|
if (!path) {
|
|
1377
1505
|
throw new Error('Parameter `path` is required when calling `customPut`.');
|
|
1378
1506
|
}
|
|
1379
|
-
const requestPath = '/
|
|
1507
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
1380
1508
|
const headers = {};
|
|
1381
1509
|
const queryParameters = parameters ? parameters : {};
|
|
1382
1510
|
const request = {
|
|
@@ -1496,7 +1624,7 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
1496
1624
|
}
|
|
1497
1625
|
|
|
1498
1626
|
// 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.
|
|
1499
|
-
const apiClientVersion$1 = '5.0.0-alpha.
|
|
1627
|
+
const apiClientVersion$1 = '5.0.0-alpha.109';
|
|
1500
1628
|
function getDefaultHosts(appId) {
|
|
1501
1629
|
return [
|
|
1502
1630
|
{
|
|
@@ -2185,7 +2313,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2185
2313
|
if (!path) {
|
|
2186
2314
|
throw new Error('Parameter `path` is required when calling `customDelete`.');
|
|
2187
2315
|
}
|
|
2188
|
-
const requestPath = '/
|
|
2316
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
2189
2317
|
const headers = {};
|
|
2190
2318
|
const queryParameters = parameters ? parameters : {};
|
|
2191
2319
|
const request = {
|
|
@@ -2208,7 +2336,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2208
2336
|
if (!path) {
|
|
2209
2337
|
throw new Error('Parameter `path` is required when calling `customGet`.');
|
|
2210
2338
|
}
|
|
2211
|
-
const requestPath = '/
|
|
2339
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
2212
2340
|
const headers = {};
|
|
2213
2341
|
const queryParameters = parameters ? parameters : {};
|
|
2214
2342
|
const request = {
|
|
@@ -2232,7 +2360,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2232
2360
|
if (!path) {
|
|
2233
2361
|
throw new Error('Parameter `path` is required when calling `customPost`.');
|
|
2234
2362
|
}
|
|
2235
|
-
const requestPath = '/
|
|
2363
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
2236
2364
|
const headers = {};
|
|
2237
2365
|
const queryParameters = parameters ? parameters : {};
|
|
2238
2366
|
const request = {
|
|
@@ -2257,7 +2385,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2257
2385
|
if (!path) {
|
|
2258
2386
|
throw new Error('Parameter `path` is required when calling `customPut`.');
|
|
2259
2387
|
}
|
|
2260
|
-
const requestPath = '/
|
|
2388
|
+
const requestPath = '/{path}'.replace('{path}', path);
|
|
2261
2389
|
const headers = {};
|
|
2262
2390
|
const queryParameters = parameters ? parameters : {};
|
|
2263
2391
|
const request = {
|