@algolia/client-analytics 5.0.0-alpha.1 → 5.0.0-alpha.100
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 +5 -5
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +5 -5
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/{client-analytics.cjs.js → client-analytics.cjs} +952 -911
- package/dist/client-analytics.esm.browser.js +1164 -1145
- package/dist/client-analytics.esm.node.js +952 -909
- package/dist/client-analytics.umd.js +2 -2
- package/dist/model/averageClickEvent.d.ts +14 -14
- package/dist/model/averageClickEvent.d.ts.map +1 -1
- package/dist/model/clickPosition.d.ts +10 -10
- package/dist/model/clickPosition.d.ts.map +1 -1
- package/dist/model/clickThroughRateEvent.d.ts +18 -18
- package/dist/model/clickThroughRateEvent.d.ts.map +1 -1
- package/dist/model/clientMethodProps.d.ts +507 -507
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/conversionRateEvent.d.ts +18 -18
- package/dist/model/conversionRateEvent.d.ts.map +1 -1
- 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/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/getConversationRateResponse.d.ts +19 -19
- package/dist/model/getConversationRateResponse.d.ts.map +1 -1
- 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/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 +18 -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 +14 -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 +3 -3
- package/dist/model/getTopHitsResponse.d.ts.map +1 -1
- package/dist/model/getTopSearchesResponse.d.ts +3 -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 +44 -44
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/noClickRateEvent.d.ts +18 -18
- package/dist/model/noClickRateEvent.d.ts.map +1 -1
- package/dist/model/noResultsRateEvent.d.ts +18 -18
- package/dist/model/noResultsRateEvent.d.ts.map +1 -1
- package/dist/model/orderBy.d.ts +4 -1
- package/dist/model/orderBy.d.ts.map +1 -1
- package/dist/model/searchEvent.d.ts +10 -10
- package/dist/model/searchEvent.d.ts.map +1 -1
- package/dist/model/searchNoClickEvent.d.ts +14 -14
- package/dist/model/searchNoClickEvent.d.ts.map +1 -1
- package/dist/model/searchNoResultEvent.d.ts +14 -14
- package/dist/model/searchNoResultEvent.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/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/topSearch.d.ts +14 -14
- package/dist/model/topSearch.d.ts.map +1 -1
- package/dist/model/topSearchWithAnalytics.d.ts +38 -38
- package/dist/model/topSearchWithAnalytics.d.ts.map +1 -1
- 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/userWithDate.d.ts +10 -10
- package/dist/model/userWithDate.d.ts.map +1 -1
- package/dist/src/analyticsClient.d.ts +348 -307
- package/dist/src/analyticsClient.d.ts.map +1 -1
- package/index.js +1 -1
- package/model/averageClickEvent.ts +6 -4
- package/model/clickPosition.ts +4 -3
- package/model/clickThroughRateEvent.ts +8 -5
- package/model/clientMethodProps.ts +126 -126
- package/model/conversionRateEvent.ts +8 -5
- package/model/direction.ts +1 -1
- package/model/errorBase.ts +1 -1
- package/model/getAverageClickPositionResponse.ts +6 -4
- package/model/getClickPositionsResponse.ts +2 -2
- package/model/getClickThroughRateResponse.ts +8 -5
- package/model/getConversationRateResponse.ts +8 -5
- package/model/getNoClickRateResponse.ts +8 -5
- package/model/getNoResultsRateResponse.ts +8 -5
- package/model/getSearchesCountResponse.ts +4 -3
- package/model/getSearchesNoClicksResponse.ts +2 -2
- package/model/getSearchesNoResultsResponse.ts +2 -2
- package/model/getStatusResponse.ts +2 -2
- package/model/getTopCountriesResponse.ts +2 -2
- package/model/getTopFilterAttribute.ts +4 -3
- package/model/getTopFilterAttributesResponse.ts +2 -2
- package/model/getTopFilterForAttribute.ts +8 -5
- package/model/getTopFilterForAttributeResponse.ts +2 -2
- package/model/getTopFiltersNoResultsResponse.ts +2 -2
- package/model/getTopFiltersNoResultsValue.ts +6 -4
- package/model/getTopFiltersNoResultsValues.ts +4 -3
- package/model/getTopHitsResponse.ts +1 -1
- package/model/getTopSearchesResponse.ts +1 -1
- package/model/getUsersCountResponse.ts +4 -3
- package/model/index.ts +1 -1
- package/model/noClickRateEvent.ts +8 -5
- package/model/noResultsRateEvent.ts +8 -5
- package/model/orderBy.ts +4 -1
- package/model/searchEvent.ts +4 -3
- package/model/searchNoClickEvent.ts +6 -4
- package/model/searchNoResultEvent.ts +6 -4
- package/model/topCountry.ts +4 -3
- package/model/topHit.ts +4 -3
- package/model/topHitWithAnalytics.ts +14 -8
- package/model/topHitsResponse.ts +2 -2
- package/model/topHitsResponseWithAnalytics.ts +2 -2
- package/model/topSearch.ts +6 -4
- package/model/topSearchWithAnalytics.ts +18 -10
- package/model/topSearchesResponse.ts +2 -2
- package/model/topSearchesResponseWithAnalytics.ts +2 -2
- package/model/userWithDate.ts +4 -3
- package/package.json +32 -13
|
@@ -1,54 +1,90 @@
|
|
|
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
|
+
|
|
34
70
|
/**
|
|
35
71
|
* Properties for the `getAverageClickPosition` method.
|
|
36
72
|
*/
|
|
37
73
|
export type GetAverageClickPositionProps = {
|
|
38
74
|
/**
|
|
39
|
-
*
|
|
75
|
+
* Index name to target.
|
|
40
76
|
*/
|
|
41
77
|
index: string;
|
|
42
78
|
/**
|
|
43
|
-
*
|
|
79
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
44
80
|
*/
|
|
45
81
|
startDate?: string;
|
|
46
82
|
/**
|
|
47
|
-
*
|
|
83
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
48
84
|
*/
|
|
49
85
|
endDate?: string;
|
|
50
86
|
/**
|
|
51
|
-
* Filter
|
|
87
|
+
* 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.
|
|
52
88
|
*/
|
|
53
89
|
tags?: string;
|
|
54
90
|
};
|
|
@@ -58,19 +94,19 @@ export type GetAverageClickPositionProps = {
|
|
|
58
94
|
*/
|
|
59
95
|
export type GetClickPositionsProps = {
|
|
60
96
|
/**
|
|
61
|
-
*
|
|
97
|
+
* Index name to target.
|
|
62
98
|
*/
|
|
63
99
|
index: string;
|
|
64
100
|
/**
|
|
65
|
-
*
|
|
101
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
66
102
|
*/
|
|
67
103
|
startDate?: string;
|
|
68
104
|
/**
|
|
69
|
-
*
|
|
105
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
70
106
|
*/
|
|
71
107
|
endDate?: string;
|
|
72
108
|
/**
|
|
73
|
-
* Filter
|
|
109
|
+
* 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.
|
|
74
110
|
*/
|
|
75
111
|
tags?: string;
|
|
76
112
|
};
|
|
@@ -80,19 +116,19 @@ export type GetClickPositionsProps = {
|
|
|
80
116
|
*/
|
|
81
117
|
export type GetClickThroughRateProps = {
|
|
82
118
|
/**
|
|
83
|
-
*
|
|
119
|
+
* Index name to target.
|
|
84
120
|
*/
|
|
85
121
|
index: string;
|
|
86
122
|
/**
|
|
87
|
-
*
|
|
123
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
88
124
|
*/
|
|
89
125
|
startDate?: string;
|
|
90
126
|
/**
|
|
91
|
-
*
|
|
127
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
92
128
|
*/
|
|
93
129
|
endDate?: string;
|
|
94
130
|
/**
|
|
95
|
-
* Filter
|
|
131
|
+
* 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.
|
|
96
132
|
*/
|
|
97
133
|
tags?: string;
|
|
98
134
|
};
|
|
@@ -102,19 +138,19 @@ export type GetClickThroughRateProps = {
|
|
|
102
138
|
*/
|
|
103
139
|
export type GetConversationRateProps = {
|
|
104
140
|
/**
|
|
105
|
-
*
|
|
141
|
+
* Index name to target.
|
|
106
142
|
*/
|
|
107
143
|
index: string;
|
|
108
144
|
/**
|
|
109
|
-
*
|
|
145
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
110
146
|
*/
|
|
111
147
|
startDate?: string;
|
|
112
148
|
/**
|
|
113
|
-
*
|
|
149
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
114
150
|
*/
|
|
115
151
|
endDate?: string;
|
|
116
152
|
/**
|
|
117
|
-
* Filter
|
|
153
|
+
* 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.
|
|
118
154
|
*/
|
|
119
155
|
tags?: string;
|
|
120
156
|
};
|
|
@@ -124,19 +160,19 @@ export type GetConversationRateProps = {
|
|
|
124
160
|
*/
|
|
125
161
|
export type GetNoClickRateProps = {
|
|
126
162
|
/**
|
|
127
|
-
*
|
|
163
|
+
* Index name to target.
|
|
128
164
|
*/
|
|
129
165
|
index: string;
|
|
130
166
|
/**
|
|
131
|
-
*
|
|
167
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
132
168
|
*/
|
|
133
169
|
startDate?: string;
|
|
134
170
|
/**
|
|
135
|
-
*
|
|
171
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
136
172
|
*/
|
|
137
173
|
endDate?: string;
|
|
138
174
|
/**
|
|
139
|
-
* Filter
|
|
175
|
+
* 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.
|
|
140
176
|
*/
|
|
141
177
|
tags?: string;
|
|
142
178
|
};
|
|
@@ -146,19 +182,19 @@ export type GetNoClickRateProps = {
|
|
|
146
182
|
*/
|
|
147
183
|
export type GetNoResultsRateProps = {
|
|
148
184
|
/**
|
|
149
|
-
*
|
|
185
|
+
* Index name to target.
|
|
150
186
|
*/
|
|
151
187
|
index: string;
|
|
152
188
|
/**
|
|
153
|
-
*
|
|
189
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
154
190
|
*/
|
|
155
191
|
startDate?: string;
|
|
156
192
|
/**
|
|
157
|
-
*
|
|
193
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
158
194
|
*/
|
|
159
195
|
endDate?: string;
|
|
160
196
|
/**
|
|
161
|
-
* Filter
|
|
197
|
+
* 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.
|
|
162
198
|
*/
|
|
163
199
|
tags?: string;
|
|
164
200
|
};
|
|
@@ -168,19 +204,19 @@ export type GetNoResultsRateProps = {
|
|
|
168
204
|
*/
|
|
169
205
|
export type GetSearchesCountProps = {
|
|
170
206
|
/**
|
|
171
|
-
*
|
|
207
|
+
* Index name to target.
|
|
172
208
|
*/
|
|
173
209
|
index: string;
|
|
174
210
|
/**
|
|
175
|
-
*
|
|
211
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
176
212
|
*/
|
|
177
213
|
startDate?: string;
|
|
178
214
|
/**
|
|
179
|
-
*
|
|
215
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
180
216
|
*/
|
|
181
217
|
endDate?: string;
|
|
182
218
|
/**
|
|
183
|
-
* Filter
|
|
219
|
+
* 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.
|
|
184
220
|
*/
|
|
185
221
|
tags?: string;
|
|
186
222
|
};
|
|
@@ -190,19 +226,19 @@ export type GetSearchesCountProps = {
|
|
|
190
226
|
*/
|
|
191
227
|
export type GetSearchesNoClicksProps = {
|
|
192
228
|
/**
|
|
193
|
-
*
|
|
229
|
+
* Index name to target.
|
|
194
230
|
*/
|
|
195
231
|
index: string;
|
|
196
232
|
/**
|
|
197
|
-
*
|
|
233
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
198
234
|
*/
|
|
199
235
|
startDate?: string;
|
|
200
236
|
/**
|
|
201
|
-
*
|
|
237
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
202
238
|
*/
|
|
203
239
|
endDate?: string;
|
|
204
240
|
/**
|
|
205
|
-
* Number of records to return
|
|
241
|
+
* Number of records to return (page size).
|
|
206
242
|
*/
|
|
207
243
|
limit?: number;
|
|
208
244
|
/**
|
|
@@ -210,7 +246,7 @@ export type GetSearchesNoClicksProps = {
|
|
|
210
246
|
*/
|
|
211
247
|
offset?: number;
|
|
212
248
|
/**
|
|
213
|
-
* Filter
|
|
249
|
+
* 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.
|
|
214
250
|
*/
|
|
215
251
|
tags?: string;
|
|
216
252
|
};
|
|
@@ -220,19 +256,19 @@ export type GetSearchesNoClicksProps = {
|
|
|
220
256
|
*/
|
|
221
257
|
export type GetSearchesNoResultsProps = {
|
|
222
258
|
/**
|
|
223
|
-
*
|
|
259
|
+
* Index name to target.
|
|
224
260
|
*/
|
|
225
261
|
index: string;
|
|
226
262
|
/**
|
|
227
|
-
*
|
|
263
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
228
264
|
*/
|
|
229
265
|
startDate?: string;
|
|
230
266
|
/**
|
|
231
|
-
*
|
|
267
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
232
268
|
*/
|
|
233
269
|
endDate?: string;
|
|
234
270
|
/**
|
|
235
|
-
* Number of records to return
|
|
271
|
+
* Number of records to return (page size).
|
|
236
272
|
*/
|
|
237
273
|
limit?: number;
|
|
238
274
|
/**
|
|
@@ -240,7 +276,7 @@ export type GetSearchesNoResultsProps = {
|
|
|
240
276
|
*/
|
|
241
277
|
offset?: number;
|
|
242
278
|
/**
|
|
243
|
-
* Filter
|
|
279
|
+
* 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.
|
|
244
280
|
*/
|
|
245
281
|
tags?: string;
|
|
246
282
|
};
|
|
@@ -250,7 +286,7 @@ export type GetSearchesNoResultsProps = {
|
|
|
250
286
|
*/
|
|
251
287
|
export type GetStatusProps = {
|
|
252
288
|
/**
|
|
253
|
-
*
|
|
289
|
+
* Index name to target.
|
|
254
290
|
*/
|
|
255
291
|
index: string;
|
|
256
292
|
};
|
|
@@ -260,19 +296,19 @@ export type GetStatusProps = {
|
|
|
260
296
|
*/
|
|
261
297
|
export type GetTopCountriesProps = {
|
|
262
298
|
/**
|
|
263
|
-
*
|
|
299
|
+
* Index name to target.
|
|
264
300
|
*/
|
|
265
301
|
index: string;
|
|
266
302
|
/**
|
|
267
|
-
*
|
|
303
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
268
304
|
*/
|
|
269
305
|
startDate?: string;
|
|
270
306
|
/**
|
|
271
|
-
*
|
|
307
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
272
308
|
*/
|
|
273
309
|
endDate?: string;
|
|
274
310
|
/**
|
|
275
|
-
* Number of records to return
|
|
311
|
+
* Number of records to return (page size).
|
|
276
312
|
*/
|
|
277
313
|
limit?: number;
|
|
278
314
|
/**
|
|
@@ -280,7 +316,7 @@ export type GetTopCountriesProps = {
|
|
|
280
316
|
*/
|
|
281
317
|
offset?: number;
|
|
282
318
|
/**
|
|
283
|
-
* Filter
|
|
319
|
+
* 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.
|
|
284
320
|
*/
|
|
285
321
|
tags?: string;
|
|
286
322
|
};
|
|
@@ -290,23 +326,23 @@ export type GetTopCountriesProps = {
|
|
|
290
326
|
*/
|
|
291
327
|
export type GetTopFilterAttributesProps = {
|
|
292
328
|
/**
|
|
293
|
-
*
|
|
329
|
+
* Index name to target.
|
|
294
330
|
*/
|
|
295
331
|
index: string;
|
|
296
332
|
/**
|
|
297
|
-
*
|
|
333
|
+
* User query.
|
|
298
334
|
*/
|
|
299
335
|
search?: string;
|
|
300
336
|
/**
|
|
301
|
-
*
|
|
337
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
302
338
|
*/
|
|
303
339
|
startDate?: string;
|
|
304
340
|
/**
|
|
305
|
-
*
|
|
341
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
306
342
|
*/
|
|
307
343
|
endDate?: string;
|
|
308
344
|
/**
|
|
309
|
-
* Number of records to return
|
|
345
|
+
* Number of records to return (page size).
|
|
310
346
|
*/
|
|
311
347
|
limit?: number;
|
|
312
348
|
/**
|
|
@@ -314,7 +350,7 @@ export type GetTopFilterAttributesProps = {
|
|
|
314
350
|
*/
|
|
315
351
|
offset?: number;
|
|
316
352
|
/**
|
|
317
|
-
* Filter
|
|
353
|
+
* 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.
|
|
318
354
|
*/
|
|
319
355
|
tags?: string;
|
|
320
356
|
};
|
|
@@ -324,27 +360,27 @@ export type GetTopFilterAttributesProps = {
|
|
|
324
360
|
*/
|
|
325
361
|
export type GetTopFilterForAttributeProps = {
|
|
326
362
|
/**
|
|
327
|
-
*
|
|
363
|
+
* Attribute name.
|
|
328
364
|
*/
|
|
329
365
|
attribute: string;
|
|
330
366
|
/**
|
|
331
|
-
*
|
|
367
|
+
* Index name to target.
|
|
332
368
|
*/
|
|
333
369
|
index: string;
|
|
334
370
|
/**
|
|
335
|
-
*
|
|
371
|
+
* User query.
|
|
336
372
|
*/
|
|
337
373
|
search?: string;
|
|
338
374
|
/**
|
|
339
|
-
*
|
|
375
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
340
376
|
*/
|
|
341
377
|
startDate?: string;
|
|
342
378
|
/**
|
|
343
|
-
*
|
|
379
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
344
380
|
*/
|
|
345
381
|
endDate?: string;
|
|
346
382
|
/**
|
|
347
|
-
* Number of records to return
|
|
383
|
+
* Number of records to return (page size).
|
|
348
384
|
*/
|
|
349
385
|
limit?: number;
|
|
350
386
|
/**
|
|
@@ -352,7 +388,7 @@ export type GetTopFilterForAttributeProps = {
|
|
|
352
388
|
*/
|
|
353
389
|
offset?: number;
|
|
354
390
|
/**
|
|
355
|
-
* Filter
|
|
391
|
+
* 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.
|
|
356
392
|
*/
|
|
357
393
|
tags?: string;
|
|
358
394
|
};
|
|
@@ -362,23 +398,23 @@ export type GetTopFilterForAttributeProps = {
|
|
|
362
398
|
*/
|
|
363
399
|
export type GetTopFiltersNoResultsProps = {
|
|
364
400
|
/**
|
|
365
|
-
*
|
|
401
|
+
* Index name to target.
|
|
366
402
|
*/
|
|
367
403
|
index: string;
|
|
368
404
|
/**
|
|
369
|
-
*
|
|
405
|
+
* User query.
|
|
370
406
|
*/
|
|
371
407
|
search?: string;
|
|
372
408
|
/**
|
|
373
|
-
*
|
|
409
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
374
410
|
*/
|
|
375
411
|
startDate?: string;
|
|
376
412
|
/**
|
|
377
|
-
*
|
|
413
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
378
414
|
*/
|
|
379
415
|
endDate?: string;
|
|
380
416
|
/**
|
|
381
|
-
* Number of records to return
|
|
417
|
+
* Number of records to return (page size).
|
|
382
418
|
*/
|
|
383
419
|
limit?: number;
|
|
384
420
|
/**
|
|
@@ -386,7 +422,7 @@ export type GetTopFiltersNoResultsProps = {
|
|
|
386
422
|
*/
|
|
387
423
|
offset?: number;
|
|
388
424
|
/**
|
|
389
|
-
* Filter
|
|
425
|
+
* 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.
|
|
390
426
|
*/
|
|
391
427
|
tags?: string;
|
|
392
428
|
};
|
|
@@ -396,27 +432,27 @@ export type GetTopFiltersNoResultsProps = {
|
|
|
396
432
|
*/
|
|
397
433
|
export type GetTopHitsProps = {
|
|
398
434
|
/**
|
|
399
|
-
*
|
|
435
|
+
* Index name to target.
|
|
400
436
|
*/
|
|
401
437
|
index: string;
|
|
402
438
|
/**
|
|
403
|
-
*
|
|
439
|
+
* User query.
|
|
404
440
|
*/
|
|
405
441
|
search?: string;
|
|
406
442
|
/**
|
|
407
|
-
* Whether to include
|
|
443
|
+
* Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
|
|
408
444
|
*/
|
|
409
445
|
clickAnalytics?: boolean;
|
|
410
446
|
/**
|
|
411
|
-
*
|
|
447
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
412
448
|
*/
|
|
413
449
|
startDate?: string;
|
|
414
450
|
/**
|
|
415
|
-
*
|
|
451
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
416
452
|
*/
|
|
417
453
|
endDate?: string;
|
|
418
454
|
/**
|
|
419
|
-
* Number of records to return
|
|
455
|
+
* Number of records to return (page size).
|
|
420
456
|
*/
|
|
421
457
|
limit?: number;
|
|
422
458
|
/**
|
|
@@ -424,7 +460,7 @@ export type GetTopHitsProps = {
|
|
|
424
460
|
*/
|
|
425
461
|
offset?: number;
|
|
426
462
|
/**
|
|
427
|
-
* Filter
|
|
463
|
+
* 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.
|
|
428
464
|
*/
|
|
429
465
|
tags?: string;
|
|
430
466
|
};
|
|
@@ -434,19 +470,19 @@ export type GetTopHitsProps = {
|
|
|
434
470
|
*/
|
|
435
471
|
export type GetTopSearchesProps = {
|
|
436
472
|
/**
|
|
437
|
-
*
|
|
473
|
+
* Index name to target.
|
|
438
474
|
*/
|
|
439
475
|
index: string;
|
|
440
476
|
/**
|
|
441
|
-
* Whether to include
|
|
477
|
+
* Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search.
|
|
442
478
|
*/
|
|
443
479
|
clickAnalytics?: boolean;
|
|
444
480
|
/**
|
|
445
|
-
*
|
|
481
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
446
482
|
*/
|
|
447
483
|
startDate?: string;
|
|
448
484
|
/**
|
|
449
|
-
*
|
|
485
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
450
486
|
*/
|
|
451
487
|
endDate?: string;
|
|
452
488
|
/**
|
|
@@ -454,11 +490,11 @@ export type GetTopSearchesProps = {
|
|
|
454
490
|
*/
|
|
455
491
|
orderBy?: OrderBy;
|
|
456
492
|
/**
|
|
457
|
-
*
|
|
493
|
+
* Sorting direction of the results: ascending or descending.
|
|
458
494
|
*/
|
|
459
495
|
direction?: Direction;
|
|
460
496
|
/**
|
|
461
|
-
* Number of records to return
|
|
497
|
+
* Number of records to return (page size).
|
|
462
498
|
*/
|
|
463
499
|
limit?: number;
|
|
464
500
|
/**
|
|
@@ -466,7 +502,7 @@ export type GetTopSearchesProps = {
|
|
|
466
502
|
*/
|
|
467
503
|
offset?: number;
|
|
468
504
|
/**
|
|
469
|
-
* Filter
|
|
505
|
+
* 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.
|
|
470
506
|
*/
|
|
471
507
|
tags?: string;
|
|
472
508
|
};
|
|
@@ -476,55 +512,19 @@ export type GetTopSearchesProps = {
|
|
|
476
512
|
*/
|
|
477
513
|
export type GetUsersCountProps = {
|
|
478
514
|
/**
|
|
479
|
-
*
|
|
515
|
+
* Index name to target.
|
|
480
516
|
*/
|
|
481
517
|
index: string;
|
|
482
518
|
/**
|
|
483
|
-
*
|
|
519
|
+
* Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
484
520
|
*/
|
|
485
521
|
startDate?: string;
|
|
486
522
|
/**
|
|
487
|
-
*
|
|
523
|
+
* End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
|
488
524
|
*/
|
|
489
525
|
endDate?: string;
|
|
490
526
|
/**
|
|
491
|
-
* Filter
|
|
527
|
+
* 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.
|
|
492
528
|
*/
|
|
493
529
|
tags?: string;
|
|
494
530
|
};
|
|
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
|
-
};
|
|
@@ -1,20 +1,23 @@
|
|
|
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
|
export type ConversionRateEvent = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
6
6
|
*/
|
|
7
7
|
rate: number;
|
|
8
|
+
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
|
|
10
11
|
*/
|
|
11
12
|
trackedSearchCount: number;
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
15
|
+
* Number of converted clicks.
|
|
14
16
|
*/
|
|
15
17
|
conversionCount: number;
|
|
18
|
+
|
|
16
19
|
/**
|
|
17
|
-
* Date of the event.
|
|
20
|
+
* Date of the event in the format YYYY-MM-DD.
|
|
18
21
|
*/
|
|
19
22
|
date: string;
|
|
20
23
|
};
|
package/model/direction.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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
|
export type Direction = 'asc' | 'desc';
|