@algolia/client-analytics 5.0.0-alpha.11 → 5.0.0-alpha.110
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 +39 -5
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +39 -5
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/{client-analytics.cjs.js → client-analytics.cjs} +1083 -924
- package/dist/client-analytics.esm.browser.js +1293 -1160
- package/dist/client-analytics.esm.node.js +1083 -922
- 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 +578 -507
- 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/direction.d.ts +1 -1
- package/dist/model/direction.d.ts.map +1 -1
- package/dist/model/errorBase.d.ts +6 -6
- package/dist/model/errorBase.d.ts.map +1 -1
- package/dist/model/getAddToCartRateResponse.d.ts +20 -0
- package/dist/model/getAddToCartRateResponse.d.ts.map +1 -0
- package/dist/model/getAverageClickPositionResponse.d.ts +15 -15
- package/dist/model/getAverageClickPositionResponse.d.ts.map +1 -1
- package/dist/model/getClickPositionsResponse.d.ts +7 -7
- package/dist/model/getClickPositionsResponse.d.ts.map +1 -1
- package/dist/model/getClickThroughRateResponse.d.ts +19 -19
- package/dist/model/getClickThroughRateResponse.d.ts.map +1 -1
- package/dist/model/getConversionRateResponse.d.ts +20 -0
- package/dist/model/getConversionRateResponse.d.ts.map +1 -0
- package/dist/model/getNoClickRateResponse.d.ts +19 -19
- package/dist/model/getNoClickRateResponse.d.ts.map +1 -1
- package/dist/model/getNoResultsRateResponse.d.ts +19 -19
- package/dist/model/getNoResultsRateResponse.d.ts.map +1 -1
- package/dist/model/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 +11 -11
- package/dist/model/getSearchesCountResponse.d.ts.map +1 -1
- package/dist/model/getSearchesNoClicksResponse.d.ts +7 -7
- package/dist/model/getSearchesNoClicksResponse.d.ts.map +1 -1
- package/dist/model/getSearchesNoResultsResponse.d.ts +7 -7
- package/dist/model/getSearchesNoResultsResponse.d.ts.map +1 -1
- package/dist/model/getStatusResponse.d.ts +6 -6
- package/dist/model/getStatusResponse.d.ts.map +1 -1
- package/dist/model/getTopCountriesResponse.d.ts +7 -7
- package/dist/model/getTopCountriesResponse.d.ts.map +1 -1
- package/dist/model/getTopFilterAttribute.d.ts +10 -10
- package/dist/model/getTopFilterAttribute.d.ts.map +1 -1
- package/dist/model/getTopFilterAttributesResponse.d.ts +7 -7
- package/dist/model/getTopFilterAttributesResponse.d.ts.map +1 -1
- package/dist/model/getTopFilterForAttribute.d.ts +16 -18
- package/dist/model/getTopFilterForAttribute.d.ts.map +1 -1
- package/dist/model/getTopFilterForAttributeResponse.d.ts +7 -7
- package/dist/model/getTopFilterForAttributeResponse.d.ts.map +1 -1
- package/dist/model/getTopFiltersNoResultsResponse.d.ts +7 -7
- package/dist/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
- package/dist/model/getTopFiltersNoResultsValue.d.ts +12 -14
- package/dist/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
- package/dist/model/getTopFiltersNoResultsValues.d.ts +11 -11
- package/dist/model/getTopFiltersNoResultsValues.d.ts.map +1 -1
- package/dist/model/getTopHitsResponse.d.ts +4 -3
- package/dist/model/getTopHitsResponse.d.ts.map +1 -1
- package/dist/model/getTopSearchesResponse.d.ts +4 -3
- package/dist/model/getTopSearchesResponse.d.ts.map +1 -1
- package/dist/model/getUsersCountResponse.d.ts +11 -11
- package/dist/model/getUsersCountResponse.d.ts.map +1 -1
- package/dist/model/index.d.ts +56 -44
- 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 +4 -1
- package/dist/model/orderBy.d.ts.map +1 -1
- package/dist/model/topCountry.d.ts +10 -10
- package/dist/model/topCountry.d.ts.map +1 -1
- package/dist/model/topHit.d.ts +10 -10
- package/dist/model/topHit.d.ts.map +1 -1
- package/dist/model/topHitWithAnalytics.d.ts +30 -30
- package/dist/model/topHitWithAnalytics.d.ts.map +1 -1
- package/dist/model/topHitWithRevenueAnalytics.d.ts +52 -0
- package/dist/model/topHitWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/model/topHitsResponse.d.ts +7 -7
- package/dist/model/topHitsResponse.d.ts.map +1 -1
- package/dist/model/topHitsResponseWithAnalytics.d.ts +7 -7
- package/dist/model/topHitsResponseWithAnalytics.d.ts.map +1 -1
- package/dist/model/topHitsResponseWithRevenueAnalytics.d.ts +8 -0
- package/dist/model/topHitsResponseWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/model/topSearch.d.ts +14 -14
- package/dist/model/topSearch.d.ts.map +1 -1
- package/dist/model/topSearchWithAnalytics.d.ts +43 -38
- 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 +7 -7
- package/dist/model/topSearchesResponse.d.ts.map +1 -1
- package/dist/model/topSearchesResponseWithAnalytics.d.ts +7 -7
- package/dist/model/topSearchesResponseWithAnalytics.d.ts.map +1 -1
- package/dist/model/topSearchesResponseWithRevenueAnalytics.d.ts +8 -0
- package/dist/model/topSearchesResponseWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/src/analyticsClient.d.ts +391 -318
- package/dist/src/analyticsClient.d.ts.map +1 -1
- package/index.js +1 -1
- package/model/clickPositionsInner.ts +16 -0
- package/model/clientMethodProps.ts +211 -137
- 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/dailySearches.ts +13 -0
- package/model/dailySearchesNoClicks.ts +18 -0
- package/model/dailySearchesNoResults.ts +18 -0
- package/model/dailyUsers.ts +13 -0
- package/model/direction.ts +1 -1
- package/model/errorBase.ts +1 -1
- package/model/getAddToCartRateResponse.ts +25 -0
- package/model/getAverageClickPositionResponse.ts +7 -7
- package/model/getClickPositionsResponse.ts +4 -4
- package/model/getClickThroughRateResponse.ts +8 -8
- package/model/getConversionRateResponse.ts +25 -0
- package/model/getNoClickRateResponse.ts +7 -7
- package/model/getNoResultsRateResponse.ts +7 -7
- package/model/getPurchaseRateResponse.ts +25 -0
- package/model/getRevenue.ts +16 -0
- package/model/getSearchesCountResponse.ts +5 -5
- package/model/getSearchesNoClicksResponse.ts +4 -4
- package/model/getSearchesNoResultsResponse.ts +4 -4
- package/model/getStatusResponse.ts +3 -3
- package/model/getTopCountriesResponse.ts +2 -2
- package/model/getTopFilterAttribute.ts +3 -3
- package/model/getTopFilterAttributesResponse.ts +2 -2
- package/model/getTopFilterForAttribute.ts +7 -8
- package/model/getTopFilterForAttributeResponse.ts +2 -2
- package/model/getTopFiltersNoResultsResponse.ts +3 -3
- package/model/getTopFiltersNoResultsValue.ts +6 -7
- package/model/getTopFiltersNoResultsValues.ts +3 -3
- package/model/getTopHitsResponse.ts +6 -2
- package/model/getTopSearchesResponse.ts +4 -2
- package/model/getUsersCountResponse.ts +5 -5
- package/model/index.ts +24 -12
- package/model/operator.ts +6 -0
- package/model/orderBy.ts +4 -1
- package/model/topCountry.ts +3 -3
- package/model/topHit.ts +3 -3
- package/model/topHitWithAnalytics.ts +11 -11
- package/model/topHitWithRevenueAnalytics.ts +65 -0
- package/model/topHitsResponse.ts +2 -2
- package/model/topHitsResponseWithAnalytics.ts +2 -2
- package/model/topHitsResponseWithRevenueAnalytics.ts +10 -0
- package/model/topSearch.ts +4 -4
- package/model/topSearchWithAnalytics.ts +20 -13
- package/model/topSearchWithRevenueAnalytics.ts +81 -0
- package/model/topSearchesResponse.ts +2 -2
- package/model/topSearchesResponseWithAnalytics.ts +2 -2
- package/model/topSearchesResponseWithRevenueAnalytics.ts +10 -0
- package/package.json +10 -9
- 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
- package/model/searchEvent.ts +0 -13
- package/model/searchNoClickEvent.ts +0 -18
- package/model/searchNoResultEvent.ts +0 -18
- package/model/userWithDate.ts +0 -13
|
@@ -1,54 +1,112 @@
|
|
|
1
|
-
//
|
|
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
2
|
|
|
3
3
|
import type { Direction } from './direction';
|
|
4
4
|
import type { OrderBy } from './orderBy';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Properties for the `
|
|
7
|
+
* Properties for the `customDelete` method.
|
|
8
8
|
*/
|
|
9
|
-
export type
|
|
9
|
+
export type CustomDeleteProps = {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
12
12
|
*/
|
|
13
13
|
path: string;
|
|
14
14
|
/**
|
|
15
|
-
* Query parameters to
|
|
15
|
+
* Query parameters to apply to the current query.
|
|
16
16
|
*/
|
|
17
17
|
parameters?: Record<string, any>;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* Properties for the `
|
|
21
|
+
* Properties for the `customGet` method.
|
|
22
22
|
*/
|
|
23
|
-
export type
|
|
23
|
+
export type CustomGetProps = {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
26
26
|
*/
|
|
27
27
|
path: string;
|
|
28
28
|
/**
|
|
29
|
-
* Query parameters to
|
|
29
|
+
* Query parameters to apply to the current query.
|
|
30
30
|
*/
|
|
31
31
|
parameters?: Record<string, any>;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Properties for the `customPost` method.
|
|
36
|
+
*/
|
|
37
|
+
export type CustomPostProps = {
|
|
38
|
+
/**
|
|
39
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
40
|
+
*/
|
|
41
|
+
path: string;
|
|
42
|
+
/**
|
|
43
|
+
* Query parameters to apply to the current query.
|
|
44
|
+
*/
|
|
45
|
+
parameters?: Record<string, any>;
|
|
46
|
+
/**
|
|
47
|
+
* Parameters to send with the custom request.
|
|
48
|
+
*/
|
|
49
|
+
body?: Record<string, any>;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Properties for the `customPut` method.
|
|
54
|
+
*/
|
|
55
|
+
export type CustomPutProps = {
|
|
56
|
+
/**
|
|
57
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
58
|
+
*/
|
|
59
|
+
path: string;
|
|
60
|
+
/**
|
|
61
|
+
* Query parameters to apply to the current query.
|
|
62
|
+
*/
|
|
63
|
+
parameters?: Record<string, any>;
|
|
64
|
+
/**
|
|
65
|
+
* Parameters to send with the custom request.
|
|
66
|
+
*/
|
|
67
|
+
body?: Record<string, any>;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Properties for the `getAddToCartRate` method.
|
|
72
|
+
*/
|
|
73
|
+
export type GetAddToCartRateProps = {
|
|
74
|
+
/**
|
|
75
|
+
* Index name.
|
|
76
|
+
*/
|
|
77
|
+
index: string;
|
|
78
|
+
/**
|
|
79
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
80
|
+
*/
|
|
81
|
+
startDate?: string;
|
|
82
|
+
/**
|
|
83
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
84
|
+
*/
|
|
85
|
+
endDate?: string;
|
|
86
|
+
/**
|
|
87
|
+
* 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/).
|
|
88
|
+
*/
|
|
89
|
+
tags?: string;
|
|
90
|
+
};
|
|
91
|
+
|
|
34
92
|
/**
|
|
35
93
|
* Properties for the `getAverageClickPosition` method.
|
|
36
94
|
*/
|
|
37
95
|
export type GetAverageClickPositionProps = {
|
|
38
96
|
/**
|
|
39
|
-
*
|
|
97
|
+
* Index name.
|
|
40
98
|
*/
|
|
41
99
|
index: string;
|
|
42
100
|
/**
|
|
43
|
-
*
|
|
101
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
44
102
|
*/
|
|
45
103
|
startDate?: string;
|
|
46
104
|
/**
|
|
47
|
-
*
|
|
105
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
48
106
|
*/
|
|
49
107
|
endDate?: string;
|
|
50
108
|
/**
|
|
51
|
-
*
|
|
109
|
+
* 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/).
|
|
52
110
|
*/
|
|
53
111
|
tags?: string;
|
|
54
112
|
};
|
|
@@ -58,19 +116,19 @@ export type GetAverageClickPositionProps = {
|
|
|
58
116
|
*/
|
|
59
117
|
export type GetClickPositionsProps = {
|
|
60
118
|
/**
|
|
61
|
-
*
|
|
119
|
+
* Index name.
|
|
62
120
|
*/
|
|
63
121
|
index: string;
|
|
64
122
|
/**
|
|
65
|
-
*
|
|
123
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
66
124
|
*/
|
|
67
125
|
startDate?: string;
|
|
68
126
|
/**
|
|
69
|
-
*
|
|
127
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
70
128
|
*/
|
|
71
129
|
endDate?: string;
|
|
72
130
|
/**
|
|
73
|
-
*
|
|
131
|
+
* 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/).
|
|
74
132
|
*/
|
|
75
133
|
tags?: string;
|
|
76
134
|
};
|
|
@@ -80,41 +138,41 @@ export type GetClickPositionsProps = {
|
|
|
80
138
|
*/
|
|
81
139
|
export type GetClickThroughRateProps = {
|
|
82
140
|
/**
|
|
83
|
-
*
|
|
141
|
+
* Index name.
|
|
84
142
|
*/
|
|
85
143
|
index: string;
|
|
86
144
|
/**
|
|
87
|
-
*
|
|
145
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
88
146
|
*/
|
|
89
147
|
startDate?: string;
|
|
90
148
|
/**
|
|
91
|
-
*
|
|
149
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
92
150
|
*/
|
|
93
151
|
endDate?: string;
|
|
94
152
|
/**
|
|
95
|
-
*
|
|
153
|
+
* 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/).
|
|
96
154
|
*/
|
|
97
155
|
tags?: string;
|
|
98
156
|
};
|
|
99
157
|
|
|
100
158
|
/**
|
|
101
|
-
* Properties for the `
|
|
159
|
+
* Properties for the `getConversionRate` method.
|
|
102
160
|
*/
|
|
103
|
-
export type
|
|
161
|
+
export type GetConversionRateProps = {
|
|
104
162
|
/**
|
|
105
|
-
*
|
|
163
|
+
* Index name.
|
|
106
164
|
*/
|
|
107
165
|
index: string;
|
|
108
166
|
/**
|
|
109
|
-
*
|
|
167
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
110
168
|
*/
|
|
111
169
|
startDate?: string;
|
|
112
170
|
/**
|
|
113
|
-
*
|
|
171
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
114
172
|
*/
|
|
115
173
|
endDate?: string;
|
|
116
174
|
/**
|
|
117
|
-
*
|
|
175
|
+
* 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/).
|
|
118
176
|
*/
|
|
119
177
|
tags?: string;
|
|
120
178
|
};
|
|
@@ -124,19 +182,19 @@ export type GetConversationRateProps = {
|
|
|
124
182
|
*/
|
|
125
183
|
export type GetNoClickRateProps = {
|
|
126
184
|
/**
|
|
127
|
-
*
|
|
185
|
+
* Index name.
|
|
128
186
|
*/
|
|
129
187
|
index: string;
|
|
130
188
|
/**
|
|
131
|
-
*
|
|
189
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
132
190
|
*/
|
|
133
191
|
startDate?: string;
|
|
134
192
|
/**
|
|
135
|
-
*
|
|
193
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
136
194
|
*/
|
|
137
195
|
endDate?: string;
|
|
138
196
|
/**
|
|
139
|
-
*
|
|
197
|
+
* 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/).
|
|
140
198
|
*/
|
|
141
199
|
tags?: string;
|
|
142
200
|
};
|
|
@@ -146,19 +204,63 @@ export type GetNoClickRateProps = {
|
|
|
146
204
|
*/
|
|
147
205
|
export type GetNoResultsRateProps = {
|
|
148
206
|
/**
|
|
149
|
-
*
|
|
207
|
+
* Index name.
|
|
208
|
+
*/
|
|
209
|
+
index: string;
|
|
210
|
+
/**
|
|
211
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
212
|
+
*/
|
|
213
|
+
startDate?: string;
|
|
214
|
+
/**
|
|
215
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
216
|
+
*/
|
|
217
|
+
endDate?: string;
|
|
218
|
+
/**
|
|
219
|
+
* 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
|
+
*/
|
|
221
|
+
tags?: string;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Properties for the `getPurchaseRate` method.
|
|
226
|
+
*/
|
|
227
|
+
export type GetPurchaseRateProps = {
|
|
228
|
+
/**
|
|
229
|
+
* Index name.
|
|
230
|
+
*/
|
|
231
|
+
index: string;
|
|
232
|
+
/**
|
|
233
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
234
|
+
*/
|
|
235
|
+
startDate?: string;
|
|
236
|
+
/**
|
|
237
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
238
|
+
*/
|
|
239
|
+
endDate?: string;
|
|
240
|
+
/**
|
|
241
|
+
* 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/).
|
|
242
|
+
*/
|
|
243
|
+
tags?: string;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Properties for the `getRevenue` method.
|
|
248
|
+
*/
|
|
249
|
+
export type GetRevenueProps = {
|
|
250
|
+
/**
|
|
251
|
+
* Index name.
|
|
150
252
|
*/
|
|
151
253
|
index: string;
|
|
152
254
|
/**
|
|
153
|
-
*
|
|
255
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
154
256
|
*/
|
|
155
257
|
startDate?: string;
|
|
156
258
|
/**
|
|
157
|
-
*
|
|
259
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
158
260
|
*/
|
|
159
261
|
endDate?: string;
|
|
160
262
|
/**
|
|
161
|
-
*
|
|
263
|
+
* 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/).
|
|
162
264
|
*/
|
|
163
265
|
tags?: string;
|
|
164
266
|
};
|
|
@@ -168,19 +270,19 @@ export type GetNoResultsRateProps = {
|
|
|
168
270
|
*/
|
|
169
271
|
export type GetSearchesCountProps = {
|
|
170
272
|
/**
|
|
171
|
-
*
|
|
273
|
+
* Index name.
|
|
172
274
|
*/
|
|
173
275
|
index: string;
|
|
174
276
|
/**
|
|
175
|
-
*
|
|
277
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
176
278
|
*/
|
|
177
279
|
startDate?: string;
|
|
178
280
|
/**
|
|
179
|
-
*
|
|
281
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
180
282
|
*/
|
|
181
283
|
endDate?: string;
|
|
182
284
|
/**
|
|
183
|
-
*
|
|
285
|
+
* 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/).
|
|
184
286
|
*/
|
|
185
287
|
tags?: string;
|
|
186
288
|
};
|
|
@@ -190,27 +292,27 @@ export type GetSearchesCountProps = {
|
|
|
190
292
|
*/
|
|
191
293
|
export type GetSearchesNoClicksProps = {
|
|
192
294
|
/**
|
|
193
|
-
*
|
|
295
|
+
* Index name.
|
|
194
296
|
*/
|
|
195
297
|
index: string;
|
|
196
298
|
/**
|
|
197
|
-
*
|
|
299
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
198
300
|
*/
|
|
199
301
|
startDate?: string;
|
|
200
302
|
/**
|
|
201
|
-
*
|
|
303
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
202
304
|
*/
|
|
203
305
|
endDate?: string;
|
|
204
306
|
/**
|
|
205
|
-
* Number of
|
|
307
|
+
* Number of items to return.
|
|
206
308
|
*/
|
|
207
309
|
limit?: number;
|
|
208
310
|
/**
|
|
209
|
-
* Position of the
|
|
311
|
+
* Position of the first item to return.
|
|
210
312
|
*/
|
|
211
313
|
offset?: number;
|
|
212
314
|
/**
|
|
213
|
-
*
|
|
315
|
+
* 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/).
|
|
214
316
|
*/
|
|
215
317
|
tags?: string;
|
|
216
318
|
};
|
|
@@ -220,27 +322,27 @@ export type GetSearchesNoClicksProps = {
|
|
|
220
322
|
*/
|
|
221
323
|
export type GetSearchesNoResultsProps = {
|
|
222
324
|
/**
|
|
223
|
-
*
|
|
325
|
+
* Index name.
|
|
224
326
|
*/
|
|
225
327
|
index: string;
|
|
226
328
|
/**
|
|
227
|
-
*
|
|
329
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
228
330
|
*/
|
|
229
331
|
startDate?: string;
|
|
230
332
|
/**
|
|
231
|
-
*
|
|
333
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
232
334
|
*/
|
|
233
335
|
endDate?: string;
|
|
234
336
|
/**
|
|
235
|
-
* Number of
|
|
337
|
+
* Number of items to return.
|
|
236
338
|
*/
|
|
237
339
|
limit?: number;
|
|
238
340
|
/**
|
|
239
|
-
* Position of the
|
|
341
|
+
* Position of the first item to return.
|
|
240
342
|
*/
|
|
241
343
|
offset?: number;
|
|
242
344
|
/**
|
|
243
|
-
*
|
|
345
|
+
* 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/).
|
|
244
346
|
*/
|
|
245
347
|
tags?: string;
|
|
246
348
|
};
|
|
@@ -250,7 +352,7 @@ export type GetSearchesNoResultsProps = {
|
|
|
250
352
|
*/
|
|
251
353
|
export type GetStatusProps = {
|
|
252
354
|
/**
|
|
253
|
-
*
|
|
355
|
+
* Index name.
|
|
254
356
|
*/
|
|
255
357
|
index: string;
|
|
256
358
|
};
|
|
@@ -260,27 +362,27 @@ export type GetStatusProps = {
|
|
|
260
362
|
*/
|
|
261
363
|
export type GetTopCountriesProps = {
|
|
262
364
|
/**
|
|
263
|
-
*
|
|
365
|
+
* Index name.
|
|
264
366
|
*/
|
|
265
367
|
index: string;
|
|
266
368
|
/**
|
|
267
|
-
*
|
|
369
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
268
370
|
*/
|
|
269
371
|
startDate?: string;
|
|
270
372
|
/**
|
|
271
|
-
*
|
|
373
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
272
374
|
*/
|
|
273
375
|
endDate?: string;
|
|
274
376
|
/**
|
|
275
|
-
* Number of
|
|
377
|
+
* Number of items to return.
|
|
276
378
|
*/
|
|
277
379
|
limit?: number;
|
|
278
380
|
/**
|
|
279
|
-
* Position of the
|
|
381
|
+
* Position of the first item to return.
|
|
280
382
|
*/
|
|
281
383
|
offset?: number;
|
|
282
384
|
/**
|
|
283
|
-
*
|
|
385
|
+
* 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/).
|
|
284
386
|
*/
|
|
285
387
|
tags?: string;
|
|
286
388
|
};
|
|
@@ -290,31 +392,31 @@ export type GetTopCountriesProps = {
|
|
|
290
392
|
*/
|
|
291
393
|
export type GetTopFilterAttributesProps = {
|
|
292
394
|
/**
|
|
293
|
-
*
|
|
395
|
+
* Index name.
|
|
294
396
|
*/
|
|
295
397
|
index: string;
|
|
296
398
|
/**
|
|
297
|
-
*
|
|
399
|
+
* Search query.
|
|
298
400
|
*/
|
|
299
401
|
search?: string;
|
|
300
402
|
/**
|
|
301
|
-
*
|
|
403
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
302
404
|
*/
|
|
303
405
|
startDate?: string;
|
|
304
406
|
/**
|
|
305
|
-
*
|
|
407
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
306
408
|
*/
|
|
307
409
|
endDate?: string;
|
|
308
410
|
/**
|
|
309
|
-
* Number of
|
|
411
|
+
* Number of items to return.
|
|
310
412
|
*/
|
|
311
413
|
limit?: number;
|
|
312
414
|
/**
|
|
313
|
-
* Position of the
|
|
415
|
+
* Position of the first item to return.
|
|
314
416
|
*/
|
|
315
417
|
offset?: number;
|
|
316
418
|
/**
|
|
317
|
-
*
|
|
419
|
+
* 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/).
|
|
318
420
|
*/
|
|
319
421
|
tags?: string;
|
|
320
422
|
};
|
|
@@ -324,35 +426,35 @@ export type GetTopFilterAttributesProps = {
|
|
|
324
426
|
*/
|
|
325
427
|
export type GetTopFilterForAttributeProps = {
|
|
326
428
|
/**
|
|
327
|
-
*
|
|
429
|
+
* Attribute name.
|
|
328
430
|
*/
|
|
329
431
|
attribute: string;
|
|
330
432
|
/**
|
|
331
|
-
*
|
|
433
|
+
* Index name.
|
|
332
434
|
*/
|
|
333
435
|
index: string;
|
|
334
436
|
/**
|
|
335
|
-
*
|
|
437
|
+
* Search query.
|
|
336
438
|
*/
|
|
337
439
|
search?: string;
|
|
338
440
|
/**
|
|
339
|
-
*
|
|
441
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
340
442
|
*/
|
|
341
443
|
startDate?: string;
|
|
342
444
|
/**
|
|
343
|
-
*
|
|
445
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
344
446
|
*/
|
|
345
447
|
endDate?: string;
|
|
346
448
|
/**
|
|
347
|
-
* Number of
|
|
449
|
+
* Number of items to return.
|
|
348
450
|
*/
|
|
349
451
|
limit?: number;
|
|
350
452
|
/**
|
|
351
|
-
* Position of the
|
|
453
|
+
* Position of the first item to return.
|
|
352
454
|
*/
|
|
353
455
|
offset?: number;
|
|
354
456
|
/**
|
|
355
|
-
*
|
|
457
|
+
* 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/).
|
|
356
458
|
*/
|
|
357
459
|
tags?: string;
|
|
358
460
|
};
|
|
@@ -362,31 +464,31 @@ export type GetTopFilterForAttributeProps = {
|
|
|
362
464
|
*/
|
|
363
465
|
export type GetTopFiltersNoResultsProps = {
|
|
364
466
|
/**
|
|
365
|
-
*
|
|
467
|
+
* Index name.
|
|
366
468
|
*/
|
|
367
469
|
index: string;
|
|
368
470
|
/**
|
|
369
|
-
*
|
|
471
|
+
* Search query.
|
|
370
472
|
*/
|
|
371
473
|
search?: string;
|
|
372
474
|
/**
|
|
373
|
-
*
|
|
475
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
374
476
|
*/
|
|
375
477
|
startDate?: string;
|
|
376
478
|
/**
|
|
377
|
-
*
|
|
479
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
378
480
|
*/
|
|
379
481
|
endDate?: string;
|
|
380
482
|
/**
|
|
381
|
-
* Number of
|
|
483
|
+
* Number of items to return.
|
|
382
484
|
*/
|
|
383
485
|
limit?: number;
|
|
384
486
|
/**
|
|
385
|
-
* Position of the
|
|
487
|
+
* Position of the first item to return.
|
|
386
488
|
*/
|
|
387
489
|
offset?: number;
|
|
388
490
|
/**
|
|
389
|
-
*
|
|
491
|
+
* 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/).
|
|
390
492
|
*/
|
|
391
493
|
tags?: string;
|
|
392
494
|
};
|
|
@@ -396,35 +498,39 @@ export type GetTopFiltersNoResultsProps = {
|
|
|
396
498
|
*/
|
|
397
499
|
export type GetTopHitsProps = {
|
|
398
500
|
/**
|
|
399
|
-
*
|
|
501
|
+
* Index name.
|
|
400
502
|
*/
|
|
401
503
|
index: string;
|
|
402
504
|
/**
|
|
403
|
-
*
|
|
505
|
+
* Search query.
|
|
404
506
|
*/
|
|
405
507
|
search?: string;
|
|
406
508
|
/**
|
|
407
|
-
* Whether to include
|
|
509
|
+
* Whether to include metrics related to click and conversion events in the response.
|
|
408
510
|
*/
|
|
409
511
|
clickAnalytics?: boolean;
|
|
410
512
|
/**
|
|
411
|
-
*
|
|
513
|
+
* Whether to include revenue-related metrics in the response. If true, metrics related to click and conversion events are also included in the response.
|
|
514
|
+
*/
|
|
515
|
+
revenueAnalytics?: boolean;
|
|
516
|
+
/**
|
|
517
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
412
518
|
*/
|
|
413
519
|
startDate?: string;
|
|
414
520
|
/**
|
|
415
|
-
*
|
|
521
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
416
522
|
*/
|
|
417
523
|
endDate?: string;
|
|
418
524
|
/**
|
|
419
|
-
* Number of
|
|
525
|
+
* Number of items to return.
|
|
420
526
|
*/
|
|
421
527
|
limit?: number;
|
|
422
528
|
/**
|
|
423
|
-
* Position of the
|
|
529
|
+
* Position of the first item to return.
|
|
424
530
|
*/
|
|
425
531
|
offset?: number;
|
|
426
532
|
/**
|
|
427
|
-
*
|
|
533
|
+
* 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/).
|
|
428
534
|
*/
|
|
429
535
|
tags?: string;
|
|
430
536
|
};
|
|
@@ -434,39 +540,43 @@ export type GetTopHitsProps = {
|
|
|
434
540
|
*/
|
|
435
541
|
export type GetTopSearchesProps = {
|
|
436
542
|
/**
|
|
437
|
-
*
|
|
543
|
+
* Index name.
|
|
438
544
|
*/
|
|
439
545
|
index: string;
|
|
440
546
|
/**
|
|
441
|
-
* Whether to include
|
|
547
|
+
* Whether to include metrics related to click and conversion events in the response.
|
|
442
548
|
*/
|
|
443
549
|
clickAnalytics?: boolean;
|
|
444
550
|
/**
|
|
445
|
-
*
|
|
551
|
+
* Whether to include revenue-related metrics in the response. If true, metrics related to click and conversion events are also included in the response.
|
|
552
|
+
*/
|
|
553
|
+
revenueAnalytics?: boolean;
|
|
554
|
+
/**
|
|
555
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
446
556
|
*/
|
|
447
557
|
startDate?: string;
|
|
448
558
|
/**
|
|
449
|
-
*
|
|
559
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
450
560
|
*/
|
|
451
561
|
endDate?: string;
|
|
452
562
|
/**
|
|
453
|
-
*
|
|
563
|
+
* Attribute by which to order the response items. If the `clickAnalytics` parameter is false, only `searchCount` is available.
|
|
454
564
|
*/
|
|
455
565
|
orderBy?: OrderBy;
|
|
456
566
|
/**
|
|
457
|
-
*
|
|
567
|
+
* Sorting direction of the results: ascending or descending.
|
|
458
568
|
*/
|
|
459
569
|
direction?: Direction;
|
|
460
570
|
/**
|
|
461
|
-
* Number of
|
|
571
|
+
* Number of items to return.
|
|
462
572
|
*/
|
|
463
573
|
limit?: number;
|
|
464
574
|
/**
|
|
465
|
-
* Position of the
|
|
575
|
+
* Position of the first item to return.
|
|
466
576
|
*/
|
|
467
577
|
offset?: number;
|
|
468
578
|
/**
|
|
469
|
-
*
|
|
579
|
+
* 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/).
|
|
470
580
|
*/
|
|
471
581
|
tags?: string;
|
|
472
582
|
};
|
|
@@ -476,55 +586,19 @@ export type GetTopSearchesProps = {
|
|
|
476
586
|
*/
|
|
477
587
|
export type GetUsersCountProps = {
|
|
478
588
|
/**
|
|
479
|
-
*
|
|
589
|
+
* Index name.
|
|
480
590
|
*/
|
|
481
591
|
index: string;
|
|
482
592
|
/**
|
|
483
|
-
*
|
|
593
|
+
* Start date (`YYYY-MM-DD`) of the period to analyze.
|
|
484
594
|
*/
|
|
485
595
|
startDate?: string;
|
|
486
596
|
/**
|
|
487
|
-
*
|
|
597
|
+
* End date (`YYYY-MM-DD`) of the period to analyze.
|
|
488
598
|
*/
|
|
489
599
|
endDate?: string;
|
|
490
600
|
/**
|
|
491
|
-
*
|
|
601
|
+
* 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/).
|
|
492
602
|
*/
|
|
493
603
|
tags?: string;
|
|
494
604
|
};
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Properties for the `post` method.
|
|
498
|
-
*/
|
|
499
|
-
export type PostProps = {
|
|
500
|
-
/**
|
|
501
|
-
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
502
|
-
*/
|
|
503
|
-
path: string;
|
|
504
|
-
/**
|
|
505
|
-
* Query parameters to be applied to the current query.
|
|
506
|
-
*/
|
|
507
|
-
parameters?: Record<string, any>;
|
|
508
|
-
/**
|
|
509
|
-
* The parameters to send with the custom request.
|
|
510
|
-
*/
|
|
511
|
-
body?: Record<string, any>;
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* Properties for the `put` method.
|
|
516
|
-
*/
|
|
517
|
-
export type PutProps = {
|
|
518
|
-
/**
|
|
519
|
-
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
520
|
-
*/
|
|
521
|
-
path: string;
|
|
522
|
-
/**
|
|
523
|
-
* Query parameters to be applied to the current query.
|
|
524
|
-
*/
|
|
525
|
-
parameters?: Record<string, any>;
|
|
526
|
-
/**
|
|
527
|
-
* The parameters to send with the custom request.
|
|
528
|
-
*/
|
|
529
|
-
body?: Record<string, any>;
|
|
530
|
-
};
|