@algolia/client-analytics 5.0.0-alpha.72 → 5.0.0-alpha.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client-analytics.cjs.js +114 -116
- package/dist/client-analytics.esm.browser.js +114 -114
- package/dist/client-analytics.esm.node.js +114 -114
- package/dist/client-analytics.umd.js +2 -2
- package/dist/model/averageClickEvent.d.ts +3 -3
- package/dist/model/clickPosition.d.ts +2 -2
- package/dist/model/clickThroughRateEvent.d.ts +4 -4
- package/dist/model/clientMethodProps.d.ts +91 -91
- package/dist/model/conversionRateEvent.d.ts +4 -4
- package/dist/model/getAverageClickPositionResponse.d.ts +3 -3
- package/dist/model/getClickPositionsResponse.d.ts +1 -1
- package/dist/model/getClickThroughRateResponse.d.ts +4 -4
- package/dist/model/getConversationRateResponse.d.ts +4 -4
- package/dist/model/getNoClickRateResponse.d.ts +4 -4
- package/dist/model/getNoResultsRateResponse.d.ts +4 -4
- package/dist/model/getSearchesCountResponse.d.ts +2 -2
- package/dist/model/getSearchesNoClicksResponse.d.ts +1 -1
- package/dist/model/getSearchesNoResultsResponse.d.ts +1 -1
- package/dist/model/getStatusResponse.d.ts +1 -1
- package/dist/model/getTopCountriesResponse.d.ts +1 -1
- package/dist/model/getTopFilterAttribute.d.ts +2 -2
- package/dist/model/getTopFilterAttributesResponse.d.ts +1 -1
- package/dist/model/getTopFilterForAttribute.d.ts +4 -4
- package/dist/model/getTopFilterForAttributeResponse.d.ts +1 -1
- package/dist/model/getTopFiltersNoResultsResponse.d.ts +1 -1
- package/dist/model/getTopFiltersNoResultsValue.d.ts +3 -3
- package/dist/model/getTopFiltersNoResultsValues.d.ts +2 -2
- package/dist/model/getUsersCountResponse.d.ts +2 -2
- package/dist/model/noClickRateEvent.d.ts +4 -4
- package/dist/model/noResultsRateEvent.d.ts +4 -4
- package/dist/model/orderBy.d.ts +3 -0
- package/dist/model/orderBy.d.ts.map +1 -1
- package/dist/model/searchEvent.d.ts +2 -2
- package/dist/model/searchNoClickEvent.d.ts +3 -3
- package/dist/model/searchNoResultEvent.d.ts +3 -3
- package/dist/model/topCountry.d.ts +2 -2
- package/dist/model/topHit.d.ts +2 -2
- package/dist/model/topHitWithAnalytics.d.ts +7 -7
- package/dist/model/topHitsResponse.d.ts +1 -1
- package/dist/model/topHitsResponseWithAnalytics.d.ts +1 -1
- package/dist/model/topSearch.d.ts +3 -3
- package/dist/model/topSearchWithAnalytics.d.ts +9 -9
- package/dist/model/topSearchesResponse.d.ts +1 -1
- package/dist/model/topSearchesResponseWithAnalytics.d.ts +1 -1
- package/dist/model/userWithDate.d.ts +2 -2
- package/dist/src/analyticsClient.d.ts +114 -114
- package/model/averageClickEvent.ts +3 -3
- package/model/clickPosition.ts +2 -2
- package/model/clickThroughRateEvent.ts +4 -4
- package/model/clientMethodProps.ts +91 -91
- package/model/conversionRateEvent.ts +4 -4
- package/model/getAverageClickPositionResponse.ts +3 -3
- package/model/getClickPositionsResponse.ts +1 -1
- package/model/getClickThroughRateResponse.ts +4 -4
- package/model/getConversationRateResponse.ts +4 -4
- package/model/getNoClickRateResponse.ts +4 -4
- package/model/getNoResultsRateResponse.ts +4 -4
- package/model/getSearchesCountResponse.ts +2 -2
- package/model/getSearchesNoClicksResponse.ts +1 -1
- package/model/getSearchesNoResultsResponse.ts +1 -1
- package/model/getStatusResponse.ts +1 -1
- package/model/getTopCountriesResponse.ts +1 -1
- package/model/getTopFilterAttribute.ts +2 -2
- package/model/getTopFilterAttributesResponse.ts +1 -1
- package/model/getTopFilterForAttribute.ts +4 -4
- package/model/getTopFilterForAttributeResponse.ts +1 -1
- package/model/getTopFiltersNoResultsResponse.ts +1 -1
- package/model/getTopFiltersNoResultsValue.ts +3 -3
- package/model/getTopFiltersNoResultsValues.ts +2 -2
- package/model/getUsersCountResponse.ts +2 -2
- package/model/noClickRateEvent.ts +4 -4
- package/model/noResultsRateEvent.ts +4 -4
- package/model/orderBy.ts +3 -0
- package/model/searchEvent.ts +2 -2
- package/model/searchNoClickEvent.ts +3 -3
- package/model/searchNoResultEvent.ts +3 -3
- package/model/topCountry.ts +2 -2
- package/model/topHit.ts +2 -2
- package/model/topHitWithAnalytics.ts +7 -7
- package/model/topHitsResponse.ts +1 -1
- package/model/topHitsResponseWithAnalytics.ts +1 -1
- package/model/topSearch.ts +3 -3
- package/model/topSearchWithAnalytics.ts +9 -9
- package/model/topSearchesResponse.ts +1 -1
- package/model/topSearchesResponseWithAnalytics.ts +1 -1
- package/model/userWithDate.ts +2 -2
- package/package.json +8 -7
|
@@ -662,7 +662,7 @@ function createXhrRequester() {
|
|
|
662
662
|
}
|
|
663
663
|
|
|
664
664
|
// 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.
|
|
665
|
-
const apiClientVersion = '5.0.0-alpha.
|
|
665
|
+
const apiClientVersion = '5.0.0-alpha.75';
|
|
666
666
|
const REGIONS = ['de', 'us'];
|
|
667
667
|
function getDefaultHosts(region) {
|
|
668
668
|
const url = !region
|
|
@@ -726,8 +726,8 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
726
726
|
*
|
|
727
727
|
* @summary Send requests to the Algolia REST API.
|
|
728
728
|
* @param del - The del object.
|
|
729
|
-
* @param del.path -
|
|
730
|
-
* @param del.parameters - Query parameters to
|
|
729
|
+
* @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
730
|
+
* @param del.parameters - Query parameters to apply to the current query.
|
|
731
731
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
732
732
|
*/
|
|
733
733
|
del({ path, parameters }, requestOptions) {
|
|
@@ -750,8 +750,8 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
750
750
|
*
|
|
751
751
|
* @summary Send requests to the Algolia REST API.
|
|
752
752
|
* @param get - The get object.
|
|
753
|
-
* @param get.path -
|
|
754
|
-
* @param get.parameters - Query parameters to
|
|
753
|
+
* @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
754
|
+
* @param get.parameters - Query parameters to apply to the current query.
|
|
755
755
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
756
756
|
*/
|
|
757
757
|
get({ path, parameters }, requestOptions) {
|
|
@@ -770,14 +770,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
770
770
|
return transporter.request(request, requestOptions);
|
|
771
771
|
},
|
|
772
772
|
/**
|
|
773
|
-
*
|
|
773
|
+
* Return the average click position for the complete time range and for individual days. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn\'t receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
|
|
774
774
|
*
|
|
775
775
|
* @summary Get average click position.
|
|
776
776
|
* @param getAverageClickPosition - The getAverageClickPosition object.
|
|
777
|
-
* @param getAverageClickPosition.index -
|
|
778
|
-
* @param getAverageClickPosition.startDate -
|
|
779
|
-
* @param getAverageClickPosition.endDate -
|
|
780
|
-
* @param getAverageClickPosition.tags - Filter
|
|
777
|
+
* @param getAverageClickPosition.index - Index name to target.
|
|
778
|
+
* @param getAverageClickPosition.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
779
|
+
* @param getAverageClickPosition.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
780
|
+
* @param getAverageClickPosition.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
781
781
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
782
782
|
*/
|
|
783
783
|
getAverageClickPosition({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -808,14 +808,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
808
808
|
return transporter.request(request, requestOptions);
|
|
809
809
|
},
|
|
810
810
|
/**
|
|
811
|
-
*
|
|
811
|
+
* Show the number of clicks events and their associated position in the search results. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn\'t receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
|
|
812
812
|
*
|
|
813
|
-
* @summary Get
|
|
813
|
+
* @summary Get click positions.
|
|
814
814
|
* @param getClickPositions - The getClickPositions object.
|
|
815
|
-
* @param getClickPositions.index -
|
|
816
|
-
* @param getClickPositions.startDate -
|
|
817
|
-
* @param getClickPositions.endDate -
|
|
818
|
-
* @param getClickPositions.tags - Filter
|
|
815
|
+
* @param getClickPositions.index - Index name to target.
|
|
816
|
+
* @param getClickPositions.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
817
|
+
* @param getClickPositions.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
818
|
+
* @param getClickPositions.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
819
819
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
820
820
|
*/
|
|
821
821
|
getClickPositions({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -846,14 +846,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
846
846
|
return transporter.request(request, requestOptions);
|
|
847
847
|
},
|
|
848
848
|
/**
|
|
849
|
-
* Returns a click-through rate (CTR).
|
|
849
|
+
* Returns a [click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
850
850
|
*
|
|
851
851
|
* @summary Get click-through rate (CTR).
|
|
852
852
|
* @param getClickThroughRate - The getClickThroughRate object.
|
|
853
|
-
* @param getClickThroughRate.index -
|
|
854
|
-
* @param getClickThroughRate.startDate -
|
|
855
|
-
* @param getClickThroughRate.endDate -
|
|
856
|
-
* @param getClickThroughRate.tags - Filter
|
|
853
|
+
* @param getClickThroughRate.index - Index name to target.
|
|
854
|
+
* @param getClickThroughRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
855
|
+
* @param getClickThroughRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
856
|
+
* @param getClickThroughRate.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
857
857
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
858
858
|
*/
|
|
859
859
|
getClickThroughRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -884,14 +884,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
884
884
|
return transporter.request(request, requestOptions);
|
|
885
885
|
},
|
|
886
886
|
/**
|
|
887
|
-
*
|
|
887
|
+
* Return a [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
|
|
888
888
|
*
|
|
889
889
|
* @summary Get conversion rate (CR).
|
|
890
890
|
* @param getConversationRate - The getConversationRate object.
|
|
891
|
-
* @param getConversationRate.index -
|
|
892
|
-
* @param getConversationRate.startDate -
|
|
893
|
-
* @param getConversationRate.endDate -
|
|
894
|
-
* @param getConversationRate.tags - Filter
|
|
891
|
+
* @param getConversationRate.index - Index name to target.
|
|
892
|
+
* @param getConversationRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
893
|
+
* @param getConversationRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
894
|
+
* @param getConversationRate.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
895
895
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
896
896
|
*/
|
|
897
897
|
getConversationRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -922,14 +922,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
922
922
|
return transporter.request(request, requestOptions);
|
|
923
923
|
},
|
|
924
924
|
/**
|
|
925
|
-
* Returns the rate at which searches
|
|
925
|
+
* Returns the rate at which searches don\'t lead to any clicks. The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of searches and searches without clicks.
|
|
926
926
|
*
|
|
927
927
|
* @summary Get no click rate.
|
|
928
928
|
* @param getNoClickRate - The getNoClickRate object.
|
|
929
|
-
* @param getNoClickRate.index -
|
|
930
|
-
* @param getNoClickRate.startDate -
|
|
931
|
-
* @param getNoClickRate.endDate -
|
|
932
|
-
* @param getNoClickRate.tags - Filter
|
|
929
|
+
* @param getNoClickRate.index - Index name to target.
|
|
930
|
+
* @param getNoClickRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
931
|
+
* @param getNoClickRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
932
|
+
* @param getNoClickRate.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
933
933
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
934
934
|
*/
|
|
935
935
|
getNoClickRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -960,14 +960,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
960
960
|
return transporter.request(request, requestOptions);
|
|
961
961
|
},
|
|
962
962
|
/**
|
|
963
|
-
* Returns the rate at which searches didn\'t return any results.
|
|
963
|
+
* Returns the rate at which searches didn\'t return any results.
|
|
964
964
|
*
|
|
965
965
|
* @summary Get no results rate.
|
|
966
966
|
* @param getNoResultsRate - The getNoResultsRate object.
|
|
967
|
-
* @param getNoResultsRate.index -
|
|
968
|
-
* @param getNoResultsRate.startDate -
|
|
969
|
-
* @param getNoResultsRate.endDate -
|
|
970
|
-
* @param getNoResultsRate.tags - Filter
|
|
967
|
+
* @param getNoResultsRate.index - Index name to target.
|
|
968
|
+
* @param getNoResultsRate.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
969
|
+
* @param getNoResultsRate.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
970
|
+
* @param getNoResultsRate.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
971
971
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
972
972
|
*/
|
|
973
973
|
getNoResultsRate({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -998,14 +998,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
998
998
|
return transporter.request(request, requestOptions);
|
|
999
999
|
},
|
|
1000
1000
|
/**
|
|
1001
|
-
* Returns the number of searches
|
|
1001
|
+
* Returns the number of searches within a time range.
|
|
1002
1002
|
*
|
|
1003
|
-
* @summary Get searches
|
|
1003
|
+
* @summary Get number of searches.
|
|
1004
1004
|
* @param getSearchesCount - The getSearchesCount object.
|
|
1005
|
-
* @param getSearchesCount.index -
|
|
1006
|
-
* @param getSearchesCount.startDate -
|
|
1007
|
-
* @param getSearchesCount.endDate -
|
|
1008
|
-
* @param getSearchesCount.tags - Filter
|
|
1005
|
+
* @param getSearchesCount.index - Index name to target.
|
|
1006
|
+
* @param getSearchesCount.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1007
|
+
* @param getSearchesCount.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1008
|
+
* @param getSearchesCount.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
1009
1009
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1010
1010
|
*/
|
|
1011
1011
|
getSearchesCount({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -1036,16 +1036,16 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1036
1036
|
return transporter.request(request, requestOptions);
|
|
1037
1037
|
},
|
|
1038
1038
|
/**
|
|
1039
|
-
*
|
|
1039
|
+
* Return the most popular of the last 1,000 searches that didn\'t lead to any clicks.
|
|
1040
1040
|
*
|
|
1041
1041
|
* @summary Get top searches with no clicks.
|
|
1042
1042
|
* @param getSearchesNoClicks - The getSearchesNoClicks object.
|
|
1043
|
-
* @param getSearchesNoClicks.index -
|
|
1044
|
-
* @param getSearchesNoClicks.startDate -
|
|
1045
|
-
* @param getSearchesNoClicks.endDate -
|
|
1046
|
-
* @param getSearchesNoClicks.limit - Number of records to return
|
|
1043
|
+
* @param getSearchesNoClicks.index - Index name to target.
|
|
1044
|
+
* @param getSearchesNoClicks.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1045
|
+
* @param getSearchesNoClicks.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1046
|
+
* @param getSearchesNoClicks.limit - Number of records to return (page size).
|
|
1047
1047
|
* @param getSearchesNoClicks.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
1048
|
-
* @param getSearchesNoClicks.tags - Filter
|
|
1048
|
+
* @param getSearchesNoClicks.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
1049
1049
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1050
1050
|
*/
|
|
1051
1051
|
getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -1082,16 +1082,16 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1082
1082
|
return transporter.request(request, requestOptions);
|
|
1083
1083
|
},
|
|
1084
1084
|
/**
|
|
1085
|
-
* Returns
|
|
1085
|
+
* Returns the most popular of the latest 1,000 searches that didn\'t return any results.
|
|
1086
1086
|
*
|
|
1087
1087
|
* @summary Get top searches with no results.
|
|
1088
1088
|
* @param getSearchesNoResults - The getSearchesNoResults object.
|
|
1089
|
-
* @param getSearchesNoResults.index -
|
|
1090
|
-
* @param getSearchesNoResults.startDate -
|
|
1091
|
-
* @param getSearchesNoResults.endDate -
|
|
1092
|
-
* @param getSearchesNoResults.limit - Number of records to return
|
|
1089
|
+
* @param getSearchesNoResults.index - Index name to target.
|
|
1090
|
+
* @param getSearchesNoResults.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1091
|
+
* @param getSearchesNoResults.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1092
|
+
* @param getSearchesNoResults.limit - Number of records to return (page size).
|
|
1093
1093
|
* @param getSearchesNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
1094
|
-
* @param getSearchesNoResults.tags - Filter
|
|
1094
|
+
* @param getSearchesNoResults.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
1095
1095
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1096
1096
|
*/
|
|
1097
1097
|
getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -1128,11 +1128,11 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1128
1128
|
return transporter.request(request, requestOptions);
|
|
1129
1129
|
},
|
|
1130
1130
|
/**
|
|
1131
|
-
*
|
|
1131
|
+
* Return the latest update time of the Analytics API for an index. If the index has been recently created or no search has been performed yet, `updatedAt` will be `null`. > **Note**: The Analytics API is updated every 5 minutes.
|
|
1132
1132
|
*
|
|
1133
1133
|
* @summary Get Analytics API status.
|
|
1134
1134
|
* @param getStatus - The getStatus object.
|
|
1135
|
-
* @param getStatus.index -
|
|
1135
|
+
* @param getStatus.index - Index name to target.
|
|
1136
1136
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1137
1137
|
*/
|
|
1138
1138
|
getStatus({ index }, requestOptions) {
|
|
@@ -1154,16 +1154,16 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1154
1154
|
return transporter.request(request, requestOptions);
|
|
1155
1155
|
},
|
|
1156
1156
|
/**
|
|
1157
|
-
* Returns top countries. Limited to the
|
|
1157
|
+
* Returns top countries. Limited to the 1,000 most frequent ones.
|
|
1158
1158
|
*
|
|
1159
1159
|
* @summary Get top countries.
|
|
1160
1160
|
* @param getTopCountries - The getTopCountries object.
|
|
1161
|
-
* @param getTopCountries.index -
|
|
1162
|
-
* @param getTopCountries.startDate -
|
|
1163
|
-
* @param getTopCountries.endDate -
|
|
1164
|
-
* @param getTopCountries.limit - Number of records to return
|
|
1161
|
+
* @param getTopCountries.index - Index name to target.
|
|
1162
|
+
* @param getTopCountries.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1163
|
+
* @param getTopCountries.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1164
|
+
* @param getTopCountries.limit - Number of records to return (page size).
|
|
1165
1165
|
* @param getTopCountries.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
1166
|
-
* @param getTopCountries.tags - Filter
|
|
1166
|
+
* @param getTopCountries.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
1167
1167
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1168
1168
|
*/
|
|
1169
1169
|
getTopCountries({ index, startDate, endDate, limit, offset, tags }, requestOptions) {
|
|
@@ -1200,17 +1200,17 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1200
1200
|
return transporter.request(request, requestOptions);
|
|
1201
1201
|
},
|
|
1202
1202
|
/**
|
|
1203
|
-
*
|
|
1203
|
+
* Return the most popular [filterable attributes](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) in the 1,000 most recently used filters.
|
|
1204
1204
|
*
|
|
1205
|
-
* @summary Get top
|
|
1205
|
+
* @summary Get top filterable attributes.
|
|
1206
1206
|
* @param getTopFilterAttributes - The getTopFilterAttributes object.
|
|
1207
|
-
* @param getTopFilterAttributes.index -
|
|
1208
|
-
* @param getTopFilterAttributes.search -
|
|
1209
|
-
* @param getTopFilterAttributes.startDate -
|
|
1210
|
-
* @param getTopFilterAttributes.endDate -
|
|
1211
|
-
* @param getTopFilterAttributes.limit - Number of records to return
|
|
1207
|
+
* @param getTopFilterAttributes.index - Index name to target.
|
|
1208
|
+
* @param getTopFilterAttributes.search - User query.
|
|
1209
|
+
* @param getTopFilterAttributes.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1210
|
+
* @param getTopFilterAttributes.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1211
|
+
* @param getTopFilterAttributes.limit - Number of records to return (page size).
|
|
1212
1212
|
* @param getTopFilterAttributes.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
1213
|
-
* @param getTopFilterAttributes.tags - Filter
|
|
1213
|
+
* @param getTopFilterAttributes.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
1214
1214
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1215
1215
|
*/
|
|
1216
1216
|
getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -1250,18 +1250,18 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1250
1250
|
return transporter.request(request, requestOptions);
|
|
1251
1251
|
},
|
|
1252
1252
|
/**
|
|
1253
|
-
* Returns
|
|
1253
|
+
* Returns the most popular filter values for an attribute in the 1,000 most recently used filters.
|
|
1254
1254
|
*
|
|
1255
|
-
* @summary Get top
|
|
1255
|
+
* @summary Get top filter values for an attribute.
|
|
1256
1256
|
* @param getTopFilterForAttribute - The getTopFilterForAttribute object.
|
|
1257
|
-
* @param getTopFilterForAttribute.attribute -
|
|
1258
|
-
* @param getTopFilterForAttribute.index -
|
|
1259
|
-
* @param getTopFilterForAttribute.search -
|
|
1260
|
-
* @param getTopFilterForAttribute.startDate -
|
|
1261
|
-
* @param getTopFilterForAttribute.endDate -
|
|
1262
|
-
* @param getTopFilterForAttribute.limit - Number of records to return
|
|
1257
|
+
* @param getTopFilterForAttribute.attribute - Attribute name.
|
|
1258
|
+
* @param getTopFilterForAttribute.index - Index name to target.
|
|
1259
|
+
* @param getTopFilterForAttribute.search - User query.
|
|
1260
|
+
* @param getTopFilterForAttribute.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1261
|
+
* @param getTopFilterForAttribute.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1262
|
+
* @param getTopFilterForAttribute.limit - Number of records to return (page size).
|
|
1263
1263
|
* @param getTopFilterForAttribute.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
1264
|
-
* @param getTopFilterForAttribute.tags - Filter
|
|
1264
|
+
* @param getTopFilterForAttribute.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
1265
1265
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1266
1266
|
*/
|
|
1267
1267
|
getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -1304,17 +1304,17 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1304
1304
|
return transporter.request(request, requestOptions);
|
|
1305
1305
|
},
|
|
1306
1306
|
/**
|
|
1307
|
-
* Returns top filters
|
|
1307
|
+
* Returns top filters for filter-enabled searches that don\'t return results. Limited to the 1,000 most recently used filters.
|
|
1308
1308
|
*
|
|
1309
1309
|
* @summary Get top filters for a no result search.
|
|
1310
1310
|
* @param getTopFiltersNoResults - The getTopFiltersNoResults object.
|
|
1311
|
-
* @param getTopFiltersNoResults.index -
|
|
1312
|
-
* @param getTopFiltersNoResults.search -
|
|
1313
|
-
* @param getTopFiltersNoResults.startDate -
|
|
1314
|
-
* @param getTopFiltersNoResults.endDate -
|
|
1315
|
-
* @param getTopFiltersNoResults.limit - Number of records to return
|
|
1311
|
+
* @param getTopFiltersNoResults.index - Index name to target.
|
|
1312
|
+
* @param getTopFiltersNoResults.search - User query.
|
|
1313
|
+
* @param getTopFiltersNoResults.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1314
|
+
* @param getTopFiltersNoResults.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1315
|
+
* @param getTopFiltersNoResults.limit - Number of records to return (page size).
|
|
1316
1316
|
* @param getTopFiltersNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
1317
|
-
* @param getTopFiltersNoResults.tags - Filter
|
|
1317
|
+
* @param getTopFiltersNoResults.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
1318
1318
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1319
1319
|
*/
|
|
1320
1320
|
getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -1354,18 +1354,18 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1354
1354
|
return transporter.request(request, requestOptions);
|
|
1355
1355
|
},
|
|
1356
1356
|
/**
|
|
1357
|
-
*
|
|
1357
|
+
* Return the most popular clicked results in the last 1,000 searches.
|
|
1358
1358
|
*
|
|
1359
1359
|
* @summary Get top hits.
|
|
1360
1360
|
* @param getTopHits - The getTopHits object.
|
|
1361
|
-
* @param getTopHits.index -
|
|
1362
|
-
* @param getTopHits.search -
|
|
1363
|
-
* @param getTopHits.clickAnalytics - Whether to include
|
|
1364
|
-
* @param getTopHits.startDate -
|
|
1365
|
-
* @param getTopHits.endDate -
|
|
1366
|
-
* @param getTopHits.limit - Number of records to return
|
|
1361
|
+
* @param getTopHits.index - Index name to target.
|
|
1362
|
+
* @param getTopHits.search - User query.
|
|
1363
|
+
* @param getTopHits.clickAnalytics - Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
|
|
1364
|
+
* @param getTopHits.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1365
|
+
* @param getTopHits.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1366
|
+
* @param getTopHits.limit - Number of records to return (page size).
|
|
1367
1367
|
* @param getTopHits.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
1368
|
-
* @param getTopHits.tags - Filter
|
|
1368
|
+
* @param getTopHits.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
1369
1369
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1370
1370
|
*/
|
|
1371
1371
|
getTopHits({ index, search, clickAnalytics, startDate, endDate, limit, offset, tags, }, requestOptions) {
|
|
@@ -1408,19 +1408,19 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1408
1408
|
return transporter.request(request, requestOptions);
|
|
1409
1409
|
},
|
|
1410
1410
|
/**
|
|
1411
|
-
* Returns
|
|
1411
|
+
* Returns the most popular of the latest 1,000 searches. For each search, also returns the number of hits.
|
|
1412
1412
|
*
|
|
1413
1413
|
* @summary Get top searches.
|
|
1414
1414
|
* @param getTopSearches - The getTopSearches object.
|
|
1415
|
-
* @param getTopSearches.index -
|
|
1416
|
-
* @param getTopSearches.clickAnalytics - Whether to include
|
|
1417
|
-
* @param getTopSearches.startDate -
|
|
1418
|
-
* @param getTopSearches.endDate -
|
|
1415
|
+
* @param getTopSearches.index - Index name to target.
|
|
1416
|
+
* @param getTopSearches.clickAnalytics - Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
|
|
1417
|
+
* @param getTopSearches.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1418
|
+
* @param getTopSearches.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1419
1419
|
* @param getTopSearches.orderBy - Reorder the results.
|
|
1420
|
-
* @param getTopSearches.direction -
|
|
1421
|
-
* @param getTopSearches.limit - Number of records to return
|
|
1420
|
+
* @param getTopSearches.direction - Sorting direction of the results: ascending or descending.
|
|
1421
|
+
* @param getTopSearches.limit - Number of records to return (page size).
|
|
1422
1422
|
* @param getTopSearches.offset - Position of the starting record. Used for paging. 0 is the first record.
|
|
1423
|
-
* @param getTopSearches.tags - Filter
|
|
1423
|
+
* @param getTopSearches.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
1424
1424
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1425
1425
|
*/
|
|
1426
1426
|
getTopSearches({ index, clickAnalytics, startDate, endDate, orderBy, direction, limit, offset, tags, }, requestOptions) {
|
|
@@ -1466,14 +1466,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1466
1466
|
return transporter.request(request, requestOptions);
|
|
1467
1467
|
},
|
|
1468
1468
|
/**
|
|
1469
|
-
*
|
|
1469
|
+
* Return the count of unique users.
|
|
1470
1470
|
*
|
|
1471
|
-
* @summary Get
|
|
1471
|
+
* @summary Get user count.
|
|
1472
1472
|
* @param getUsersCount - The getUsersCount object.
|
|
1473
|
-
* @param getUsersCount.index -
|
|
1474
|
-
* @param getUsersCount.startDate -
|
|
1475
|
-
* @param getUsersCount.endDate -
|
|
1476
|
-
* @param getUsersCount.tags - Filter
|
|
1473
|
+
* @param getUsersCount.index - Index name to target.
|
|
1474
|
+
* @param getUsersCount.startDate - Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1475
|
+
* @param getUsersCount.endDate - End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
1476
|
+
* @param getUsersCount.tags - Filter analytics on the [`analyticsTags`](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it must be URL-encoded.
|
|
1477
1477
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1478
1478
|
*/
|
|
1479
1479
|
getUsersCount({ index, startDate, endDate, tags }, requestOptions) {
|
|
@@ -1508,9 +1508,9 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1508
1508
|
*
|
|
1509
1509
|
* @summary Send requests to the Algolia REST API.
|
|
1510
1510
|
* @param post - The post object.
|
|
1511
|
-
* @param post.path -
|
|
1512
|
-
* @param post.parameters - Query parameters to
|
|
1513
|
-
* @param post.body -
|
|
1511
|
+
* @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
1512
|
+
* @param post.parameters - Query parameters to apply to the current query.
|
|
1513
|
+
* @param post.body - Parameters to send with the custom request.
|
|
1514
1514
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1515
1515
|
*/
|
|
1516
1516
|
post({ path, parameters, body }, requestOptions) {
|
|
@@ -1534,9 +1534,9 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
|
|
|
1534
1534
|
*
|
|
1535
1535
|
* @summary Send requests to the Algolia REST API.
|
|
1536
1536
|
* @param put - The put object.
|
|
1537
|
-
* @param put.path -
|
|
1538
|
-
* @param put.parameters - Query parameters to
|
|
1539
|
-
* @param put.body -
|
|
1537
|
+
* @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
1538
|
+
* @param put.parameters - Query parameters to apply to the current query.
|
|
1539
|
+
* @param put.body - Parameters to send with the custom request.
|
|
1540
1540
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1541
1541
|
*/
|
|
1542
1542
|
put({ path, parameters, body }, requestOptions) {
|