@algolia/client-analytics 5.0.0-alpha.98 → 5.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builds/browser.d.ts +37 -3
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +37 -3
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/client-analytics.cjs +314 -153
- package/dist/client-analytics.esm.browser.js +300 -144
- package/dist/client-analytics.esm.node.js +314 -153
- package/dist/client-analytics.umd.js +2 -2
- package/dist/model/clickPositionsInner.d.ts +14 -0
- package/dist/model/clickPositionsInner.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +161 -90
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/currenciesValue.d.ts +14 -0
- package/dist/model/currenciesValue.d.ts.map +1 -0
- package/dist/model/dailyAddToCartRates.d.ts +19 -0
- package/dist/model/dailyAddToCartRates.d.ts.map +1 -0
- package/dist/model/dailyAverageClicks.d.ts +15 -0
- package/dist/model/dailyAverageClicks.d.ts.map +1 -0
- package/dist/model/dailyClickThroughRates.d.ts +19 -0
- package/dist/model/dailyClickThroughRates.d.ts.map +1 -0
- package/dist/model/dailyConversionRates.d.ts +19 -0
- package/dist/model/dailyConversionRates.d.ts.map +1 -0
- package/dist/model/dailyNoClickRates.d.ts +19 -0
- package/dist/model/dailyNoClickRates.d.ts.map +1 -0
- package/dist/model/dailyNoResultsRates.d.ts +19 -0
- package/dist/model/dailyNoResultsRates.d.ts.map +1 -0
- package/dist/model/dailyPurchaseRates.d.ts +19 -0
- package/dist/model/dailyPurchaseRates.d.ts.map +1 -0
- package/dist/model/dailyRevenue.d.ts +12 -0
- package/dist/model/dailyRevenue.d.ts.map +1 -0
- package/dist/model/dailySearches.d.ts +11 -0
- package/dist/model/dailySearches.d.ts.map +1 -0
- package/dist/model/dailySearchesNoClicks.d.ts +15 -0
- package/dist/model/dailySearchesNoClicks.d.ts.map +1 -0
- package/dist/model/dailySearchesNoResults.d.ts +15 -0
- package/dist/model/dailySearchesNoResults.d.ts.map +1 -0
- package/dist/model/dailyUsers.d.ts +11 -0
- package/dist/model/dailyUsers.d.ts.map +1 -0
- package/dist/model/getAddToCartRateResponse.d.ts +20 -0
- package/dist/model/getAddToCartRateResponse.d.ts.map +1 -0
- package/dist/model/getAverageClickPositionResponse.d.ts +6 -6
- package/dist/model/getAverageClickPositionResponse.d.ts.map +1 -1
- package/dist/model/getClickPositionsResponse.d.ts +3 -3
- package/dist/model/getClickPositionsResponse.d.ts.map +1 -1
- package/dist/model/getClickThroughRateResponse.d.ts +7 -7
- package/dist/model/getClickThroughRateResponse.d.ts.map +1 -1
- package/dist/model/getConversionRateResponse.d.ts +20 -0
- package/dist/model/getConversionRateResponse.d.ts.map +1 -0
- package/dist/model/getNoClickRateResponse.d.ts +6 -6
- package/dist/model/getNoClickRateResponse.d.ts.map +1 -1
- package/dist/model/getNoResultsRateResponse.d.ts +6 -6
- package/dist/model/getNoResultsRateResponse.d.ts.map +1 -1
- package/dist/model/getPurchaseRateResponse.d.ts +20 -0
- package/dist/model/getPurchaseRateResponse.d.ts.map +1 -0
- package/dist/model/getRevenue.d.ts +13 -0
- package/dist/model/getRevenue.d.ts.map +1 -0
- package/dist/model/getSearchesCountResponse.d.ts +3 -3
- package/dist/model/getSearchesCountResponse.d.ts.map +1 -1
- package/dist/model/getSearchesNoClicksResponse.d.ts +3 -3
- package/dist/model/getSearchesNoClicksResponse.d.ts.map +1 -1
- package/dist/model/getSearchesNoResultsResponse.d.ts +3 -3
- package/dist/model/getSearchesNoResultsResponse.d.ts.map +1 -1
- package/dist/model/getStatusResponse.d.ts +2 -2
- package/dist/model/getStatusResponse.d.ts.map +1 -1
- package/dist/model/getTopCountriesResponse.d.ts +1 -1
- package/dist/model/getTopFilterAttributesResponse.d.ts +1 -1
- package/dist/model/getTopFilterForAttribute.d.ts +2 -4
- package/dist/model/getTopFilterForAttribute.d.ts.map +1 -1
- package/dist/model/getTopFiltersNoResultsResponse.d.ts +2 -2
- package/dist/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
- package/dist/model/getTopFiltersNoResultsValue.d.ts +2 -4
- package/dist/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
- package/dist/model/getTopHitsResponse.d.ts +2 -1
- package/dist/model/getTopHitsResponse.d.ts.map +1 -1
- package/dist/model/getTopSearchesResponse.d.ts +2 -1
- package/dist/model/getTopSearchesResponse.d.ts.map +1 -1
- package/dist/model/getUsersCountResponse.d.ts +4 -4
- package/dist/model/getUsersCountResponse.d.ts.map +1 -1
- package/dist/model/index.d.ts +23 -11
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/operator.d.ts +5 -0
- package/dist/model/operator.d.ts.map +1 -0
- package/dist/model/orderBy.d.ts +1 -1
- package/dist/model/topCountry.d.ts +1 -1
- package/dist/model/topHit.d.ts +1 -1
- package/dist/model/topHitWithAnalytics.d.ts +9 -9
- package/dist/model/topHitWithAnalytics.d.ts.map +1 -1
- package/dist/model/topHitWithRevenueAnalytics.d.ts +52 -0
- package/dist/model/topHitWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/model/topHitsResponse.d.ts +1 -1
- package/dist/model/topHitsResponseWithAnalytics.d.ts +1 -1
- package/dist/model/topHitsResponseWithRevenueAnalytics.d.ts +8 -0
- package/dist/model/topHitsResponseWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/model/topSearch.d.ts +3 -3
- package/dist/model/topSearchWithAnalytics.d.ts +17 -12
- package/dist/model/topSearchWithAnalytics.d.ts.map +1 -1
- package/dist/model/topSearchWithRevenueAnalytics.d.ts +65 -0
- package/dist/model/topSearchWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/model/topSearchesResponse.d.ts +1 -1
- package/dist/model/topSearchesResponseWithAnalytics.d.ts +1 -1
- package/dist/model/topSearchesResponseWithRevenueAnalytics.d.ts +8 -0
- package/dist/model/topSearchesResponseWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/src/analyticsClient.d.ts +211 -138
- package/dist/src/analyticsClient.d.ts.map +1 -1
- package/model/clickPositionsInner.ts +16 -0
- package/model/clientMethodProps.ts +164 -90
- package/model/currenciesValue.ts +16 -0
- package/model/dailyAddToCartRates.ts +23 -0
- package/model/dailyAverageClicks.ts +18 -0
- package/model/dailyClickThroughRates.ts +23 -0
- package/model/dailyConversionRates.ts +23 -0
- package/model/dailyNoClickRates.ts +23 -0
- package/model/dailyNoResultsRates.ts +23 -0
- package/model/dailyPurchaseRates.ts +23 -0
- package/model/dailyRevenue.ts +15 -0
- package/model/{searchEvent.ts → dailySearches.ts} +2 -2
- package/model/{searchNoResultEvent.ts → dailySearchesNoClicks.ts} +4 -4
- package/model/{searchNoClickEvent.ts → dailySearchesNoResults.ts} +3 -3
- package/model/{userWithDate.ts → dailyUsers.ts} +3 -3
- package/model/getAddToCartRateResponse.ts +25 -0
- package/model/getAverageClickPositionResponse.ts +6 -6
- package/model/getClickPositionsResponse.ts +3 -3
- package/model/getClickThroughRateResponse.ts +7 -7
- package/model/getConversionRateResponse.ts +25 -0
- package/model/getNoClickRateResponse.ts +6 -6
- package/model/getNoResultsRateResponse.ts +6 -6
- package/model/getPurchaseRateResponse.ts +25 -0
- package/model/getRevenue.ts +16 -0
- package/model/getSearchesCountResponse.ts +3 -3
- package/model/getSearchesNoClicksResponse.ts +3 -3
- package/model/getSearchesNoResultsResponse.ts +3 -3
- package/model/getStatusResponse.ts +2 -2
- package/model/getTopCountriesResponse.ts +1 -1
- package/model/getTopFilterAttributesResponse.ts +1 -1
- package/model/getTopFilterForAttribute.ts +3 -4
- package/model/getTopFiltersNoResultsResponse.ts +2 -2
- package/model/getTopFiltersNoResultsValue.ts +3 -4
- package/model/getTopHitsResponse.ts +5 -1
- package/model/getTopSearchesResponse.ts +3 -1
- package/model/getUsersCountResponse.ts +4 -4
- package/model/index.ts +23 -11
- package/model/operator.ts +6 -0
- package/model/orderBy.ts +1 -1
- package/model/topCountry.ts +1 -1
- package/model/topHit.ts +1 -1
- package/model/topHitWithAnalytics.ts +9 -9
- package/model/topHitWithRevenueAnalytics.ts +65 -0
- package/model/topHitsResponse.ts +1 -1
- package/model/topHitsResponseWithAnalytics.ts +1 -1
- package/model/topHitsResponseWithRevenueAnalytics.ts +10 -0
- package/model/topSearch.ts +3 -3
- package/model/topSearchWithAnalytics.ts +19 -12
- package/model/topSearchWithRevenueAnalytics.ts +81 -0
- package/model/topSearchesResponse.ts +1 -1
- package/model/topSearchesResponseWithAnalytics.ts +1 -1
- package/model/topSearchesResponseWithRevenueAnalytics.ts +10 -0
- package/package.json +7 -7
- package/dist/model/averageClickEvent.d.ts +0 -15
- package/dist/model/averageClickEvent.d.ts.map +0 -1
- package/dist/model/clickPosition.d.ts +0 -11
- package/dist/model/clickPosition.d.ts.map +0 -1
- package/dist/model/clickThroughRateEvent.d.ts +0 -19
- package/dist/model/clickThroughRateEvent.d.ts.map +0 -1
- package/dist/model/conversionRateEvent.d.ts +0 -19
- package/dist/model/conversionRateEvent.d.ts.map +0 -1
- package/dist/model/getConversationRateResponse.d.ts +0 -20
- package/dist/model/getConversationRateResponse.d.ts.map +0 -1
- package/dist/model/noClickRateEvent.d.ts +0 -19
- package/dist/model/noClickRateEvent.d.ts.map +0 -1
- package/dist/model/noResultsRateEvent.d.ts +0 -19
- package/dist/model/noResultsRateEvent.d.ts.map +0 -1
- package/dist/model/searchEvent.d.ts +0 -11
- package/dist/model/searchEvent.d.ts.map +0 -1
- package/dist/model/searchNoClickEvent.d.ts +0 -15
- package/dist/model/searchNoClickEvent.d.ts.map +0 -1
- package/dist/model/searchNoResultEvent.d.ts +0 -15
- package/dist/model/searchNoResultEvent.d.ts.map +0 -1
- package/dist/model/userWithDate.d.ts +0 -11
- package/dist/model/userWithDate.d.ts.map +0 -1
- package/model/averageClickEvent.ts +0 -18
- package/model/clickPosition.ts +0 -13
- package/model/clickThroughRateEvent.ts +0 -23
- package/model/conversionRateEvent.ts +0 -23
- package/model/getConversationRateResponse.ts +0 -25
- package/model/noClickRateEvent.ts +0 -23
- package/model/noResultsRateEvent.ts +0 -23
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
|
|
2
|
-
import type { CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, GetAverageClickPositionProps, GetClickPositionsProps, GetClickThroughRateProps,
|
|
2
|
+
import type { CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, GetAddToCartRateProps, GetAverageClickPositionProps, GetClickPositionsProps, GetClickThroughRateProps, GetConversionRateProps, GetNoClickRateProps, GetNoResultsRateProps, GetPurchaseRateProps, GetRevenueProps, GetSearchesCountProps, GetSearchesNoClicksProps, GetSearchesNoResultsProps, GetStatusProps, GetTopCountriesProps, GetTopFilterAttributesProps, GetTopFilterForAttributeProps, GetTopFiltersNoResultsProps, GetTopHitsProps, GetTopSearchesProps, GetUsersCountProps } from '../model/clientMethodProps';
|
|
3
|
+
import type { GetAddToCartRateResponse } from '../model/getAddToCartRateResponse';
|
|
3
4
|
import type { GetAverageClickPositionResponse } from '../model/getAverageClickPositionResponse';
|
|
4
5
|
import type { GetClickPositionsResponse } from '../model/getClickPositionsResponse';
|
|
5
6
|
import type { GetClickThroughRateResponse } from '../model/getClickThroughRateResponse';
|
|
6
|
-
import type {
|
|
7
|
+
import type { GetConversionRateResponse } from '../model/getConversionRateResponse';
|
|
7
8
|
import type { GetNoClickRateResponse } from '../model/getNoClickRateResponse';
|
|
8
9
|
import type { GetNoResultsRateResponse } from '../model/getNoResultsRateResponse';
|
|
10
|
+
import type { GetPurchaseRateResponse } from '../model/getPurchaseRateResponse';
|
|
11
|
+
import type { GetRevenue } from '../model/getRevenue';
|
|
9
12
|
import type { GetSearchesCountResponse } from '../model/getSearchesCountResponse';
|
|
10
13
|
import type { GetSearchesNoClicksResponse } from '../model/getSearchesNoClicksResponse';
|
|
11
14
|
import type { GetSearchesNoResultsResponse } from '../model/getSearchesNoResultsResponse';
|
|
@@ -17,7 +20,7 @@ import type { GetTopFiltersNoResultsResponse } from '../model/getTopFiltersNoRes
|
|
|
17
20
|
import type { GetTopHitsResponse } from '../model/getTopHitsResponse';
|
|
18
21
|
import type { GetTopSearchesResponse } from '../model/getTopSearchesResponse';
|
|
19
22
|
import type { GetUsersCountResponse } from '../model/getUsersCountResponse';
|
|
20
|
-
export declare const apiClientVersion = "5.0.0-
|
|
23
|
+
export declare const apiClientVersion = "5.0.0-beta.1";
|
|
21
24
|
export declare const REGIONS: readonly ["de", "us"];
|
|
22
25
|
export type Region = (typeof REGIONS)[number];
|
|
23
26
|
export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
|
|
@@ -46,7 +49,6 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
|
|
|
46
49
|
/**
|
|
47
50
|
* This method allow you to send requests to the Algolia REST API.
|
|
48
51
|
*
|
|
49
|
-
* @summary Send requests to the Algolia REST API.
|
|
50
52
|
* @param customDelete - The customDelete object.
|
|
51
53
|
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
52
54
|
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
@@ -56,7 +58,6 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
|
|
|
56
58
|
/**
|
|
57
59
|
* This method allow you to send requests to the Algolia REST API.
|
|
58
60
|
*
|
|
59
|
-
* @summary Send requests to the Algolia REST API.
|
|
60
61
|
* @param customGet - The customGet object.
|
|
61
62
|
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
62
63
|
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
@@ -66,7 +67,6 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
|
|
|
66
67
|
/**
|
|
67
68
|
* This method allow you to send requests to the Algolia REST API.
|
|
68
69
|
*
|
|
69
|
-
* @summary Send requests to the Algolia REST API.
|
|
70
70
|
* @param customPost - The customPost object.
|
|
71
71
|
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
72
72
|
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
@@ -77,7 +77,6 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
|
|
|
77
77
|
/**
|
|
78
78
|
* This method allow you to send requests to the Algolia REST API.
|
|
79
79
|
*
|
|
80
|
-
* @summary Send requests to the Algolia REST API.
|
|
81
80
|
* @param customPut - The customPut object.
|
|
82
81
|
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
83
82
|
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
@@ -86,234 +85,308 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
|
|
|
86
85
|
*/
|
|
87
86
|
customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
88
87
|
/**
|
|
89
|
-
*
|
|
88
|
+
* 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.
|
|
89
|
+
*
|
|
90
|
+
* Required API Key ACLs:
|
|
91
|
+
* - analytics.
|
|
92
|
+
*
|
|
93
|
+
* @param getAddToCartRate - The getAddToCartRate object.
|
|
94
|
+
* @param getAddToCartRate.index - Index name.
|
|
95
|
+
* @param getAddToCartRate.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
96
|
+
* @param getAddToCartRate.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
97
|
+
* @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/).
|
|
98
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
99
|
+
*/
|
|
100
|
+
getAddToCartRate({ index, startDate, endDate, tags }: GetAddToCartRateProps, requestOptions?: RequestOptions): Promise<GetAddToCartRateResponse>;
|
|
101
|
+
/**
|
|
102
|
+
* 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.
|
|
103
|
+
*
|
|
104
|
+
* Required API Key ACLs:
|
|
105
|
+
* - analytics.
|
|
90
106
|
*
|
|
91
|
-
* @summary Get average click position.
|
|
92
107
|
* @param getAverageClickPosition - The getAverageClickPosition object.
|
|
93
|
-
* @param getAverageClickPosition.index - Index name
|
|
94
|
-
* @param getAverageClickPosition.startDate - Start date
|
|
95
|
-
* @param getAverageClickPosition.endDate - End date
|
|
96
|
-
* @param getAverageClickPosition.tags -
|
|
108
|
+
* @param getAverageClickPosition.index - Index name.
|
|
109
|
+
* @param getAverageClickPosition.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
110
|
+
* @param getAverageClickPosition.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
111
|
+
* @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/).
|
|
97
112
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
98
113
|
*/
|
|
99
114
|
getAverageClickPosition({ index, startDate, endDate, tags }: GetAverageClickPositionProps, requestOptions?: RequestOptions): Promise<GetAverageClickPositionResponse>;
|
|
100
115
|
/**
|
|
101
|
-
*
|
|
116
|
+
* 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.
|
|
117
|
+
*
|
|
118
|
+
* Required API Key ACLs:
|
|
119
|
+
* - analytics.
|
|
102
120
|
*
|
|
103
|
-
* @summary Get click positions.
|
|
104
121
|
* @param getClickPositions - The getClickPositions object.
|
|
105
|
-
* @param getClickPositions.index - Index name
|
|
106
|
-
* @param getClickPositions.startDate - Start date
|
|
107
|
-
* @param getClickPositions.endDate - End date
|
|
108
|
-
* @param getClickPositions.tags -
|
|
122
|
+
* @param getClickPositions.index - Index name.
|
|
123
|
+
* @param getClickPositions.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
124
|
+
* @param getClickPositions.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
125
|
+
* @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/).
|
|
109
126
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
110
127
|
*/
|
|
111
128
|
getClickPositions({ index, startDate, endDate, tags }: GetClickPositionsProps, requestOptions?: RequestOptions): Promise<GetClickPositionsResponse>;
|
|
112
129
|
/**
|
|
113
|
-
*
|
|
130
|
+
* 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.
|
|
131
|
+
*
|
|
132
|
+
* Required API Key ACLs:
|
|
133
|
+
* - analytics.
|
|
114
134
|
*
|
|
115
|
-
* @summary Get click-through rate (CTR).
|
|
116
135
|
* @param getClickThroughRate - The getClickThroughRate object.
|
|
117
|
-
* @param getClickThroughRate.index - Index name
|
|
118
|
-
* @param getClickThroughRate.startDate - Start date
|
|
119
|
-
* @param getClickThroughRate.endDate - End date
|
|
120
|
-
* @param getClickThroughRate.tags -
|
|
136
|
+
* @param getClickThroughRate.index - Index name.
|
|
137
|
+
* @param getClickThroughRate.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
138
|
+
* @param getClickThroughRate.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
139
|
+
* @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/).
|
|
121
140
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
122
141
|
*/
|
|
123
142
|
getClickThroughRate({ index, startDate, endDate, tags }: GetClickThroughRateProps, requestOptions?: RequestOptions): Promise<GetClickThroughRateResponse>;
|
|
124
143
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
* @param
|
|
131
|
-
* @param
|
|
132
|
-
* @param
|
|
144
|
+
* 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.
|
|
145
|
+
*
|
|
146
|
+
* Required API Key ACLs:
|
|
147
|
+
* - analytics.
|
|
148
|
+
*
|
|
149
|
+
* @param getConversionRate - The getConversionRate object.
|
|
150
|
+
* @param getConversionRate.index - Index name.
|
|
151
|
+
* @param getConversionRate.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
152
|
+
* @param getConversionRate.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
153
|
+
* @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/).
|
|
133
154
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
134
155
|
*/
|
|
135
|
-
|
|
156
|
+
getConversionRate({ index, startDate, endDate, tags }: GetConversionRateProps, requestOptions?: RequestOptions): Promise<GetConversionRateResponse>;
|
|
136
157
|
/**
|
|
137
|
-
*
|
|
158
|
+
* 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.
|
|
159
|
+
*
|
|
160
|
+
* Required API Key ACLs:
|
|
161
|
+
* - analytics.
|
|
138
162
|
*
|
|
139
|
-
* @summary Get no click rate.
|
|
140
163
|
* @param getNoClickRate - The getNoClickRate object.
|
|
141
|
-
* @param getNoClickRate.index - Index name
|
|
142
|
-
* @param getNoClickRate.startDate - Start date
|
|
143
|
-
* @param getNoClickRate.endDate - End date
|
|
144
|
-
* @param getNoClickRate.tags -
|
|
164
|
+
* @param getNoClickRate.index - Index name.
|
|
165
|
+
* @param getNoClickRate.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
166
|
+
* @param getNoClickRate.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
167
|
+
* @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/).
|
|
145
168
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
146
169
|
*/
|
|
147
170
|
getNoClickRate({ index, startDate, endDate, tags }: GetNoClickRateProps, requestOptions?: RequestOptions): Promise<GetNoClickRateResponse>;
|
|
148
171
|
/**
|
|
149
|
-
*
|
|
172
|
+
* 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.
|
|
173
|
+
*
|
|
174
|
+
* Required API Key ACLs:
|
|
175
|
+
* - analytics.
|
|
150
176
|
*
|
|
151
|
-
* @summary Get no results rate.
|
|
152
177
|
* @param getNoResultsRate - The getNoResultsRate object.
|
|
153
|
-
* @param getNoResultsRate.index - Index name
|
|
154
|
-
* @param getNoResultsRate.startDate - Start date
|
|
155
|
-
* @param getNoResultsRate.endDate - End date
|
|
156
|
-
* @param getNoResultsRate.tags -
|
|
178
|
+
* @param getNoResultsRate.index - Index name.
|
|
179
|
+
* @param getNoResultsRate.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
180
|
+
* @param getNoResultsRate.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
181
|
+
* @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/).
|
|
157
182
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
158
183
|
*/
|
|
159
184
|
getNoResultsRate({ index, startDate, endDate, tags }: GetNoResultsRateProps, requestOptions?: RequestOptions): Promise<GetNoResultsRateResponse>;
|
|
160
185
|
/**
|
|
161
|
-
*
|
|
186
|
+
* 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.
|
|
187
|
+
*
|
|
188
|
+
* Required API Key ACLs:
|
|
189
|
+
* - analytics.
|
|
190
|
+
*
|
|
191
|
+
* @param getPurchaseRate - The getPurchaseRate object.
|
|
192
|
+
* @param getPurchaseRate.index - Index name.
|
|
193
|
+
* @param getPurchaseRate.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
194
|
+
* @param getPurchaseRate.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
195
|
+
* @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/).
|
|
196
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
197
|
+
*/
|
|
198
|
+
getPurchaseRate({ index, startDate, endDate, tags }: GetPurchaseRateProps, requestOptions?: RequestOptions): Promise<GetPurchaseRateResponse>;
|
|
199
|
+
/**
|
|
200
|
+
* 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.
|
|
201
|
+
*
|
|
202
|
+
* Required API Key ACLs:
|
|
203
|
+
* - analytics.
|
|
204
|
+
*
|
|
205
|
+
* @param getRevenue - The getRevenue object.
|
|
206
|
+
* @param getRevenue.index - Index name.
|
|
207
|
+
* @param getRevenue.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
208
|
+
* @param getRevenue.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
209
|
+
* @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/).
|
|
210
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
211
|
+
*/
|
|
212
|
+
getRevenue({ index, startDate, endDate, tags }: GetRevenueProps, requestOptions?: RequestOptions): Promise<GetRevenue>;
|
|
213
|
+
/**
|
|
214
|
+
* 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.
|
|
215
|
+
*
|
|
216
|
+
* Required API Key ACLs:
|
|
217
|
+
* - analytics.
|
|
162
218
|
*
|
|
163
|
-
* @summary Get number of searches.
|
|
164
219
|
* @param getSearchesCount - The getSearchesCount object.
|
|
165
|
-
* @param getSearchesCount.index - Index name
|
|
166
|
-
* @param getSearchesCount.startDate - Start date
|
|
167
|
-
* @param getSearchesCount.endDate - End date
|
|
168
|
-
* @param getSearchesCount.tags -
|
|
220
|
+
* @param getSearchesCount.index - Index name.
|
|
221
|
+
* @param getSearchesCount.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
222
|
+
* @param getSearchesCount.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
223
|
+
* @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/).
|
|
169
224
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
170
225
|
*/
|
|
171
226
|
getSearchesCount({ index, startDate, endDate, tags }: GetSearchesCountProps, requestOptions?: RequestOptions): Promise<GetSearchesCountResponse>;
|
|
172
227
|
/**
|
|
173
|
-
*
|
|
228
|
+
* Retrieves the most popular searches that didn\'t lead to any clicks, from the 1,000 most frequent searches.
|
|
229
|
+
*
|
|
230
|
+
* Required API Key ACLs:
|
|
231
|
+
* - analytics.
|
|
174
232
|
*
|
|
175
|
-
* @summary Get top searches with no clicks.
|
|
176
233
|
* @param getSearchesNoClicks - The getSearchesNoClicks object.
|
|
177
|
-
* @param getSearchesNoClicks.index - Index name
|
|
178
|
-
* @param getSearchesNoClicks.startDate - Start date
|
|
179
|
-
* @param getSearchesNoClicks.endDate - End date
|
|
180
|
-
* @param getSearchesNoClicks.limit - Number of
|
|
181
|
-
* @param getSearchesNoClicks.offset - Position of the
|
|
182
|
-
* @param getSearchesNoClicks.tags -
|
|
234
|
+
* @param getSearchesNoClicks.index - Index name.
|
|
235
|
+
* @param getSearchesNoClicks.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
236
|
+
* @param getSearchesNoClicks.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
237
|
+
* @param getSearchesNoClicks.limit - Number of items to return.
|
|
238
|
+
* @param getSearchesNoClicks.offset - Position of the first item to return.
|
|
239
|
+
* @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/).
|
|
183
240
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
184
241
|
*/
|
|
185
242
|
getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }: GetSearchesNoClicksProps, requestOptions?: RequestOptions): Promise<GetSearchesNoClicksResponse>;
|
|
186
243
|
/**
|
|
187
|
-
*
|
|
244
|
+
* Retrieves the most popular searches that didn\'t return any results.
|
|
245
|
+
*
|
|
246
|
+
* Required API Key ACLs:
|
|
247
|
+
* - analytics.
|
|
188
248
|
*
|
|
189
|
-
* @summary Get top searches with no results.
|
|
190
249
|
* @param getSearchesNoResults - The getSearchesNoResults object.
|
|
191
|
-
* @param getSearchesNoResults.index - Index name
|
|
192
|
-
* @param getSearchesNoResults.startDate - Start date
|
|
193
|
-
* @param getSearchesNoResults.endDate - End date
|
|
194
|
-
* @param getSearchesNoResults.limit - Number of
|
|
195
|
-
* @param getSearchesNoResults.offset - Position of the
|
|
196
|
-
* @param getSearchesNoResults.tags -
|
|
250
|
+
* @param getSearchesNoResults.index - Index name.
|
|
251
|
+
* @param getSearchesNoResults.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
252
|
+
* @param getSearchesNoResults.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
253
|
+
* @param getSearchesNoResults.limit - Number of items to return.
|
|
254
|
+
* @param getSearchesNoResults.offset - Position of the first item to return.
|
|
255
|
+
* @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/).
|
|
197
256
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
198
257
|
*/
|
|
199
258
|
getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }: GetSearchesNoResultsProps, requestOptions?: RequestOptions): Promise<GetSearchesNoResultsResponse>;
|
|
200
259
|
/**
|
|
201
|
-
*
|
|
260
|
+
* Retrieves the time when the Analytics data for the specified index was last updated. The Analytics data is updated every 5 minutes.
|
|
261
|
+
*
|
|
262
|
+
* Required API Key ACLs:
|
|
263
|
+
* - analytics.
|
|
202
264
|
*
|
|
203
|
-
* @summary Get Analytics API status.
|
|
204
265
|
* @param getStatus - The getStatus object.
|
|
205
|
-
* @param getStatus.index - Index name
|
|
266
|
+
* @param getStatus.index - Index name.
|
|
206
267
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
207
268
|
*/
|
|
208
269
|
getStatus({ index }: GetStatusProps, requestOptions?: RequestOptions): Promise<GetStatusResponse>;
|
|
209
270
|
/**
|
|
210
|
-
*
|
|
271
|
+
* Retrieves the countries with the most searches to your index.
|
|
272
|
+
*
|
|
273
|
+
* Required API Key ACLs:
|
|
274
|
+
* - analytics.
|
|
211
275
|
*
|
|
212
|
-
* @summary Get top countries.
|
|
213
276
|
* @param getTopCountries - The getTopCountries object.
|
|
214
|
-
* @param getTopCountries.index - Index name
|
|
215
|
-
* @param getTopCountries.startDate - Start date
|
|
216
|
-
* @param getTopCountries.endDate - End date
|
|
217
|
-
* @param getTopCountries.limit - Number of
|
|
218
|
-
* @param getTopCountries.offset - Position of the
|
|
219
|
-
* @param getTopCountries.tags -
|
|
277
|
+
* @param getTopCountries.index - Index name.
|
|
278
|
+
* @param getTopCountries.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
279
|
+
* @param getTopCountries.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
280
|
+
* @param getTopCountries.limit - Number of items to return.
|
|
281
|
+
* @param getTopCountries.offset - Position of the first item to return.
|
|
282
|
+
* @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/).
|
|
220
283
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
221
284
|
*/
|
|
222
285
|
getTopCountries({ index, startDate, endDate, limit, offset, tags }: GetTopCountriesProps, requestOptions?: RequestOptions): Promise<GetTopCountriesResponse>;
|
|
223
286
|
/**
|
|
224
|
-
*
|
|
287
|
+
* Retrieves the most frequently used filter attributes. These are attributes of your records that you included in the `attributesForFaceting` setting.
|
|
288
|
+
*
|
|
289
|
+
* Required API Key ACLs:
|
|
290
|
+
* - analytics.
|
|
225
291
|
*
|
|
226
|
-
* @summary Get top filterable attributes.
|
|
227
292
|
* @param getTopFilterAttributes - The getTopFilterAttributes object.
|
|
228
|
-
* @param getTopFilterAttributes.index - Index name
|
|
229
|
-
* @param getTopFilterAttributes.search -
|
|
230
|
-
* @param getTopFilterAttributes.startDate - Start date
|
|
231
|
-
* @param getTopFilterAttributes.endDate - End date
|
|
232
|
-
* @param getTopFilterAttributes.limit - Number of
|
|
233
|
-
* @param getTopFilterAttributes.offset - Position of the
|
|
234
|
-
* @param getTopFilterAttributes.tags -
|
|
293
|
+
* @param getTopFilterAttributes.index - Index name.
|
|
294
|
+
* @param getTopFilterAttributes.search - Search query.
|
|
295
|
+
* @param getTopFilterAttributes.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
296
|
+
* @param getTopFilterAttributes.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
297
|
+
* @param getTopFilterAttributes.limit - Number of items to return.
|
|
298
|
+
* @param getTopFilterAttributes.offset - Position of the first item to return.
|
|
299
|
+
* @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/).
|
|
235
300
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
236
301
|
*/
|
|
237
302
|
getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }: GetTopFilterAttributesProps, requestOptions?: RequestOptions): Promise<GetTopFilterAttributesResponse>;
|
|
238
303
|
/**
|
|
239
|
-
*
|
|
304
|
+
* Retrieves the most frequent filter (facet) values for a filter attribute. These are attributes of your records that you included in the `attributesForFaceting` setting.
|
|
305
|
+
*
|
|
306
|
+
* Required API Key ACLs:
|
|
307
|
+
* - analytics.
|
|
240
308
|
*
|
|
241
|
-
* @summary Get top filter values for an attribute.
|
|
242
309
|
* @param getTopFilterForAttribute - The getTopFilterForAttribute object.
|
|
243
310
|
* @param getTopFilterForAttribute.attribute - Attribute name.
|
|
244
|
-
* @param getTopFilterForAttribute.index - Index name
|
|
245
|
-
* @param getTopFilterForAttribute.search -
|
|
246
|
-
* @param getTopFilterForAttribute.startDate - Start date
|
|
247
|
-
* @param getTopFilterForAttribute.endDate - End date
|
|
248
|
-
* @param getTopFilterForAttribute.limit - Number of
|
|
249
|
-
* @param getTopFilterForAttribute.offset - Position of the
|
|
250
|
-
* @param getTopFilterForAttribute.tags -
|
|
311
|
+
* @param getTopFilterForAttribute.index - Index name.
|
|
312
|
+
* @param getTopFilterForAttribute.search - Search query.
|
|
313
|
+
* @param getTopFilterForAttribute.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
314
|
+
* @param getTopFilterForAttribute.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
315
|
+
* @param getTopFilterForAttribute.limit - Number of items to return.
|
|
316
|
+
* @param getTopFilterForAttribute.offset - Position of the first item to return.
|
|
317
|
+
* @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/).
|
|
251
318
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
252
319
|
*/
|
|
253
320
|
getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }: GetTopFilterForAttributeProps, requestOptions?: RequestOptions): Promise<GetTopFilterForAttributeResponse>;
|
|
254
321
|
/**
|
|
255
|
-
*
|
|
322
|
+
* 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.
|
|
323
|
+
*
|
|
324
|
+
* Required API Key ACLs:
|
|
325
|
+
* - analytics.
|
|
256
326
|
*
|
|
257
|
-
* @summary Get top filters for a no result search.
|
|
258
327
|
* @param getTopFiltersNoResults - The getTopFiltersNoResults object.
|
|
259
|
-
* @param getTopFiltersNoResults.index - Index name
|
|
260
|
-
* @param getTopFiltersNoResults.search -
|
|
261
|
-
* @param getTopFiltersNoResults.startDate - Start date
|
|
262
|
-
* @param getTopFiltersNoResults.endDate - End date
|
|
263
|
-
* @param getTopFiltersNoResults.limit - Number of
|
|
264
|
-
* @param getTopFiltersNoResults.offset - Position of the
|
|
265
|
-
* @param getTopFiltersNoResults.tags -
|
|
328
|
+
* @param getTopFiltersNoResults.index - Index name.
|
|
329
|
+
* @param getTopFiltersNoResults.search - Search query.
|
|
330
|
+
* @param getTopFiltersNoResults.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
331
|
+
* @param getTopFiltersNoResults.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
332
|
+
* @param getTopFiltersNoResults.limit - Number of items to return.
|
|
333
|
+
* @param getTopFiltersNoResults.offset - Position of the first item to return.
|
|
334
|
+
* @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/).
|
|
266
335
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
267
336
|
*/
|
|
268
337
|
getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }: GetTopFiltersNoResultsProps, requestOptions?: RequestOptions): Promise<GetTopFiltersNoResultsResponse>;
|
|
269
338
|
/**
|
|
270
|
-
*
|
|
339
|
+
* Retrieves the object IDs of the most frequent search results.
|
|
340
|
+
*
|
|
341
|
+
* Required API Key ACLs:
|
|
342
|
+
* - analytics.
|
|
271
343
|
*
|
|
272
|
-
* @summary Get top hits.
|
|
273
344
|
* @param getTopHits - The getTopHits object.
|
|
274
|
-
* @param getTopHits.index - Index name
|
|
275
|
-
* @param getTopHits.search -
|
|
276
|
-
* @param getTopHits.clickAnalytics - Whether to include
|
|
277
|
-
* @param getTopHits.
|
|
278
|
-
* @param getTopHits.
|
|
279
|
-
* @param getTopHits.
|
|
280
|
-
* @param getTopHits.
|
|
281
|
-
* @param getTopHits.
|
|
345
|
+
* @param getTopHits.index - Index name.
|
|
346
|
+
* @param getTopHits.search - Search query.
|
|
347
|
+
* @param getTopHits.clickAnalytics - Whether to include metrics related to click and conversion events in the response.
|
|
348
|
+
* @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.
|
|
349
|
+
* @param getTopHits.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
350
|
+
* @param getTopHits.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
351
|
+
* @param getTopHits.limit - Number of items to return.
|
|
352
|
+
* @param getTopHits.offset - Position of the first item to return.
|
|
353
|
+
* @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/).
|
|
282
354
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
283
355
|
*/
|
|
284
|
-
getTopHits({ index, search, clickAnalytics, startDate, endDate, limit, offset, tags, }: GetTopHitsProps, requestOptions?: RequestOptions): Promise<GetTopHitsResponse>;
|
|
356
|
+
getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags, }: GetTopHitsProps, requestOptions?: RequestOptions): Promise<GetTopHitsResponse>;
|
|
285
357
|
/**
|
|
286
|
-
* Returns the most popular
|
|
358
|
+
* Returns the most popular search terms.
|
|
359
|
+
*
|
|
360
|
+
* Required API Key ACLs:
|
|
361
|
+
* - analytics.
|
|
287
362
|
*
|
|
288
|
-
* @summary Get top searches.
|
|
289
363
|
* @param getTopSearches - The getTopSearches object.
|
|
290
|
-
* @param getTopSearches.index - Index name
|
|
291
|
-
* @param getTopSearches.clickAnalytics - Whether to include
|
|
292
|
-
* @param getTopSearches.
|
|
293
|
-
* @param getTopSearches.
|
|
294
|
-
* @param getTopSearches.
|
|
364
|
+
* @param getTopSearches.index - Index name.
|
|
365
|
+
* @param getTopSearches.clickAnalytics - Whether to include metrics related to click and conversion events in the response.
|
|
366
|
+
* @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.
|
|
367
|
+
* @param getTopSearches.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
368
|
+
* @param getTopSearches.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
369
|
+
* @param getTopSearches.orderBy - Attribute by which to order the response items. If the `clickAnalytics` parameter is false, only `searchCount` is available.
|
|
295
370
|
* @param getTopSearches.direction - Sorting direction of the results: ascending or descending.
|
|
296
|
-
* @param getTopSearches.limit - Number of
|
|
297
|
-
* @param getTopSearches.offset - Position of the
|
|
298
|
-
* @param getTopSearches.tags -
|
|
371
|
+
* @param getTopSearches.limit - Number of items to return.
|
|
372
|
+
* @param getTopSearches.offset - Position of the first item to return.
|
|
373
|
+
* @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/).
|
|
299
374
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
300
375
|
*/
|
|
301
|
-
getTopSearches({ index, clickAnalytics, startDate, endDate, orderBy, direction, limit, offset, tags, }: GetTopSearchesProps, requestOptions?: RequestOptions): Promise<GetTopSearchesResponse>;
|
|
376
|
+
getTopSearches({ index, clickAnalytics, revenueAnalytics, startDate, endDate, orderBy, direction, limit, offset, tags, }: GetTopSearchesProps, requestOptions?: RequestOptions): Promise<GetTopSearchesResponse>;
|
|
302
377
|
/**
|
|
303
|
-
*
|
|
378
|
+
* 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.
|
|
379
|
+
*
|
|
380
|
+
* Required API Key ACLs:
|
|
381
|
+
* - analytics.
|
|
304
382
|
*
|
|
305
|
-
* @summary Get user count.
|
|
306
383
|
* @param getUsersCount - The getUsersCount object.
|
|
307
|
-
* @param getUsersCount.index - Index name
|
|
308
|
-
* @param getUsersCount.startDate - Start date
|
|
309
|
-
* @param getUsersCount.endDate - End date
|
|
310
|
-
* @param getUsersCount.tags -
|
|
384
|
+
* @param getUsersCount.index - Index name.
|
|
385
|
+
* @param getUsersCount.startDate - Start date of the period to analyze, in `YYYY-MM-DD` format.
|
|
386
|
+
* @param getUsersCount.endDate - End date of the period to analyze, in `YYYY-MM-DD` format.
|
|
387
|
+
* @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/).
|
|
311
388
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
312
389
|
*/
|
|
313
390
|
getUsersCount({ index, startDate, endDate, tags }: GetUsersCountProps, requestOptions?: RequestOptions): Promise<GetUsersCountResponse>;
|
|
314
391
|
};
|
|
315
|
-
/**
|
|
316
|
-
* The client type.
|
|
317
|
-
*/
|
|
318
|
-
export type AnalyticsClient = ReturnType<typeof createAnalyticsClient>;
|
|
319
392
|
//# sourceMappingURL=analyticsClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyticsClient.d.ts","sourceRoot":"","sources":["../../src/analyticsClient.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,mBAAmB,
|
|
1
|
+
{"version":3,"file":"analyticsClient.d.ts","sourceRoot":"","sources":["../../src/analyticsClient.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,mBAAmB,EAKnB,cAAc,EACf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACr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AQ,8BAA8B,CAAC;IAiD1C;;;;;;;;;;;;;;;;;OAiBG;8GAYE,eAAe,mBACD,cAAc,GAC9B,QAAQ,kBAAkB,CAAC;IAyD9B;;;;;;;;;;;;;;;;;;OAkBG;8HAaE,mBAAmB,mBACL,cAAc,GAC9B,QAAQ,sBAAsB,CAAC;IA6DlC;;;;;;;;;;;;OAYG;uDAEoC,kBAAkB,mBACtC,cAAc,GAC9B,QAAQ,qBAAqB,CAAC;EAqCpC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Click position.
|
|
5
|
+
*/
|
|
6
|
+
export type ClickPositionsInner = {
|
|
7
|
+
/**
|
|
8
|
+
* Range of positions in the search results, using the pattern `[start,end]`. For positions 11 and up, click events are summed over the specified range. `-1` indicates the end of the list of search results.
|
|
9
|
+
*/
|
|
10
|
+
position?: number[];
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Number of times this search has been clicked at that position.
|
|
14
|
+
*/
|
|
15
|
+
clickCount?: number;
|
|
16
|
+
};
|