@algolia/client-analytics 5.0.0-alpha.10 → 5.0.0-alpha.101

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.
Files changed (146) hide show
  1. package/dist/builds/browser.d.ts +5 -5
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +5 -5
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/{client-analytics.cjs.js → client-analytics.cjs} +952 -924
  6. package/dist/client-analytics.esm.browser.js +1164 -1160
  7. package/dist/client-analytics.esm.node.js +952 -922
  8. package/dist/client-analytics.umd.js +2 -2
  9. package/dist/model/averageClickEvent.d.ts +14 -14
  10. package/dist/model/averageClickEvent.d.ts.map +1 -1
  11. package/dist/model/clickPosition.d.ts +10 -10
  12. package/dist/model/clickPosition.d.ts.map +1 -1
  13. package/dist/model/clickThroughRateEvent.d.ts +18 -18
  14. package/dist/model/clickThroughRateEvent.d.ts.map +1 -1
  15. package/dist/model/clientMethodProps.d.ts +507 -507
  16. package/dist/model/clientMethodProps.d.ts.map +1 -1
  17. package/dist/model/conversionRateEvent.d.ts +18 -18
  18. package/dist/model/conversionRateEvent.d.ts.map +1 -1
  19. package/dist/model/direction.d.ts +1 -1
  20. package/dist/model/direction.d.ts.map +1 -1
  21. package/dist/model/errorBase.d.ts +6 -6
  22. package/dist/model/errorBase.d.ts.map +1 -1
  23. package/dist/model/getAverageClickPositionResponse.d.ts +15 -15
  24. package/dist/model/getAverageClickPositionResponse.d.ts.map +1 -1
  25. package/dist/model/getClickPositionsResponse.d.ts +7 -7
  26. package/dist/model/getClickPositionsResponse.d.ts.map +1 -1
  27. package/dist/model/getClickThroughRateResponse.d.ts +19 -19
  28. package/dist/model/getClickThroughRateResponse.d.ts.map +1 -1
  29. package/dist/model/getConversationRateResponse.d.ts +19 -19
  30. package/dist/model/getConversationRateResponse.d.ts.map +1 -1
  31. package/dist/model/getNoClickRateResponse.d.ts +19 -19
  32. package/dist/model/getNoClickRateResponse.d.ts.map +1 -1
  33. package/dist/model/getNoResultsRateResponse.d.ts +19 -19
  34. package/dist/model/getNoResultsRateResponse.d.ts.map +1 -1
  35. package/dist/model/getSearchesCountResponse.d.ts +11 -11
  36. package/dist/model/getSearchesCountResponse.d.ts.map +1 -1
  37. package/dist/model/getSearchesNoClicksResponse.d.ts +7 -7
  38. package/dist/model/getSearchesNoClicksResponse.d.ts.map +1 -1
  39. package/dist/model/getSearchesNoResultsResponse.d.ts +7 -7
  40. package/dist/model/getSearchesNoResultsResponse.d.ts.map +1 -1
  41. package/dist/model/getStatusResponse.d.ts +6 -6
  42. package/dist/model/getStatusResponse.d.ts.map +1 -1
  43. package/dist/model/getTopCountriesResponse.d.ts +7 -7
  44. package/dist/model/getTopCountriesResponse.d.ts.map +1 -1
  45. package/dist/model/getTopFilterAttribute.d.ts +10 -10
  46. package/dist/model/getTopFilterAttribute.d.ts.map +1 -1
  47. package/dist/model/getTopFilterAttributesResponse.d.ts +7 -7
  48. package/dist/model/getTopFilterAttributesResponse.d.ts.map +1 -1
  49. package/dist/model/getTopFilterForAttribute.d.ts +18 -18
  50. package/dist/model/getTopFilterForAttribute.d.ts.map +1 -1
  51. package/dist/model/getTopFilterForAttributeResponse.d.ts +7 -7
  52. package/dist/model/getTopFilterForAttributeResponse.d.ts.map +1 -1
  53. package/dist/model/getTopFiltersNoResultsResponse.d.ts +7 -7
  54. package/dist/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
  55. package/dist/model/getTopFiltersNoResultsValue.d.ts +14 -14
  56. package/dist/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
  57. package/dist/model/getTopFiltersNoResultsValues.d.ts +11 -11
  58. package/dist/model/getTopFiltersNoResultsValues.d.ts.map +1 -1
  59. package/dist/model/getTopHitsResponse.d.ts +3 -3
  60. package/dist/model/getTopHitsResponse.d.ts.map +1 -1
  61. package/dist/model/getTopSearchesResponse.d.ts +3 -3
  62. package/dist/model/getTopSearchesResponse.d.ts.map +1 -1
  63. package/dist/model/getUsersCountResponse.d.ts +11 -11
  64. package/dist/model/getUsersCountResponse.d.ts.map +1 -1
  65. package/dist/model/index.d.ts +44 -44
  66. package/dist/model/noClickRateEvent.d.ts +18 -18
  67. package/dist/model/noClickRateEvent.d.ts.map +1 -1
  68. package/dist/model/noResultsRateEvent.d.ts +18 -18
  69. package/dist/model/noResultsRateEvent.d.ts.map +1 -1
  70. package/dist/model/orderBy.d.ts +4 -1
  71. package/dist/model/orderBy.d.ts.map +1 -1
  72. package/dist/model/searchEvent.d.ts +10 -10
  73. package/dist/model/searchEvent.d.ts.map +1 -1
  74. package/dist/model/searchNoClickEvent.d.ts +14 -14
  75. package/dist/model/searchNoClickEvent.d.ts.map +1 -1
  76. package/dist/model/searchNoResultEvent.d.ts +14 -14
  77. package/dist/model/searchNoResultEvent.d.ts.map +1 -1
  78. package/dist/model/topCountry.d.ts +10 -10
  79. package/dist/model/topCountry.d.ts.map +1 -1
  80. package/dist/model/topHit.d.ts +10 -10
  81. package/dist/model/topHit.d.ts.map +1 -1
  82. package/dist/model/topHitWithAnalytics.d.ts +30 -30
  83. package/dist/model/topHitWithAnalytics.d.ts.map +1 -1
  84. package/dist/model/topHitsResponse.d.ts +7 -7
  85. package/dist/model/topHitsResponse.d.ts.map +1 -1
  86. package/dist/model/topHitsResponseWithAnalytics.d.ts +7 -7
  87. package/dist/model/topHitsResponseWithAnalytics.d.ts.map +1 -1
  88. package/dist/model/topSearch.d.ts +14 -14
  89. package/dist/model/topSearch.d.ts.map +1 -1
  90. package/dist/model/topSearchWithAnalytics.d.ts +38 -38
  91. package/dist/model/topSearchWithAnalytics.d.ts.map +1 -1
  92. package/dist/model/topSearchesResponse.d.ts +7 -7
  93. package/dist/model/topSearchesResponse.d.ts.map +1 -1
  94. package/dist/model/topSearchesResponseWithAnalytics.d.ts +7 -7
  95. package/dist/model/topSearchesResponseWithAnalytics.d.ts.map +1 -1
  96. package/dist/model/userWithDate.d.ts +10 -10
  97. package/dist/model/userWithDate.d.ts.map +1 -1
  98. package/dist/src/analyticsClient.d.ts +348 -318
  99. package/dist/src/analyticsClient.d.ts.map +1 -1
  100. package/index.js +1 -1
  101. package/model/averageClickEvent.ts +4 -4
  102. package/model/clickPosition.ts +3 -3
  103. package/model/clickThroughRateEvent.ts +6 -6
  104. package/model/clientMethodProps.ts +126 -126
  105. package/model/conversionRateEvent.ts +6 -6
  106. package/model/direction.ts +1 -1
  107. package/model/errorBase.ts +1 -1
  108. package/model/getAverageClickPositionResponse.ts +4 -4
  109. package/model/getClickPositionsResponse.ts +2 -2
  110. package/model/getClickThroughRateResponse.ts +6 -6
  111. package/model/getConversationRateResponse.ts +6 -6
  112. package/model/getNoClickRateResponse.ts +5 -5
  113. package/model/getNoResultsRateResponse.ts +5 -5
  114. package/model/getSearchesCountResponse.ts +3 -3
  115. package/model/getSearchesNoClicksResponse.ts +2 -2
  116. package/model/getSearchesNoResultsResponse.ts +2 -2
  117. package/model/getStatusResponse.ts +2 -2
  118. package/model/getTopCountriesResponse.ts +2 -2
  119. package/model/getTopFilterAttribute.ts +3 -3
  120. package/model/getTopFilterAttributesResponse.ts +2 -2
  121. package/model/getTopFilterForAttribute.ts +5 -5
  122. package/model/getTopFilterForAttributeResponse.ts +2 -2
  123. package/model/getTopFiltersNoResultsResponse.ts +2 -2
  124. package/model/getTopFiltersNoResultsValue.ts +4 -4
  125. package/model/getTopFiltersNoResultsValues.ts +3 -3
  126. package/model/getTopHitsResponse.ts +1 -1
  127. package/model/getTopSearchesResponse.ts +1 -1
  128. package/model/getUsersCountResponse.ts +3 -3
  129. package/model/index.ts +1 -1
  130. package/model/noClickRateEvent.ts +5 -5
  131. package/model/noResultsRateEvent.ts +5 -5
  132. package/model/orderBy.ts +4 -1
  133. package/model/searchEvent.ts +3 -3
  134. package/model/searchNoClickEvent.ts +4 -4
  135. package/model/searchNoResultEvent.ts +4 -4
  136. package/model/topCountry.ts +3 -3
  137. package/model/topHit.ts +3 -3
  138. package/model/topHitWithAnalytics.ts +9 -9
  139. package/model/topHitsResponse.ts +2 -2
  140. package/model/topHitsResponseWithAnalytics.ts +2 -2
  141. package/model/topSearch.ts +4 -4
  142. package/model/topSearchWithAnalytics.ts +11 -11
  143. package/model/topSearchesResponse.ts +2 -2
  144. package/model/topSearchesResponseWithAnalytics.ts +2 -2
  145. package/model/userWithDate.ts +3 -3
  146. package/package.json +30 -13
@@ -1,54 +1,90 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 `del` method.
7
+ * Properties for the `customDelete` method.
8
8
  */
9
- export type DelProps = {
9
+ export type CustomDeleteProps = {
10
10
  /**
11
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
11
+ * Path of the endpoint, anything after \"/1\" must be specified.
12
12
  */
13
13
  path: string;
14
14
  /**
15
- * Query parameters to be applied to the current query.
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 `get` method.
21
+ * Properties for the `customGet` method.
22
22
  */
23
- export type GetProps = {
23
+ export type CustomGetProps = {
24
24
  /**
25
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
25
+ * Path of the endpoint, anything after \"/1\" must be specified.
26
26
  */
27
27
  path: string;
28
28
  /**
29
- * Query parameters to be applied to the current query.
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
- * The index name to target.
75
+ * Index name to target.
40
76
  */
41
77
  index: string;
42
78
  /**
43
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
97
+ * Index name to target.
62
98
  */
63
99
  index: string;
64
100
  /**
65
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
119
+ * Index name to target.
84
120
  */
85
121
  index: string;
86
122
  /**
87
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
141
+ * Index name to target.
106
142
  */
107
143
  index: string;
108
144
  /**
109
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
163
+ * Index name to target.
128
164
  */
129
165
  index: string;
130
166
  /**
131
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
185
+ * Index name to target.
150
186
  */
151
187
  index: string;
152
188
  /**
153
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
207
+ * Index name to target.
172
208
  */
173
209
  index: string;
174
210
  /**
175
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
229
+ * Index name to target.
194
230
  */
195
231
  index: string;
196
232
  /**
197
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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. Limit is the size of the page.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
259
+ * Index name to target.
224
260
  */
225
261
  index: string;
226
262
  /**
227
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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. Limit is the size of the page.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
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
- * The index name to target.
299
+ * Index name to target.
264
300
  */
265
301
  index: string;
266
302
  /**
267
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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. Limit is the size of the page.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
329
+ * Index name to target.
294
330
  */
295
331
  index: string;
296
332
  /**
297
- * The query term to search for. Must match the exact user input.
333
+ * User query.
298
334
  */
299
335
  search?: string;
300
336
  /**
301
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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. Limit is the size of the page.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The exact name of the attribute.
363
+ * Attribute name.
328
364
  */
329
365
  attribute: string;
330
366
  /**
331
- * The index name to target.
367
+ * Index name to target.
332
368
  */
333
369
  index: string;
334
370
  /**
335
- * The query term to search for. Must match the exact user input.
371
+ * User query.
336
372
  */
337
373
  search?: string;
338
374
  /**
339
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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. Limit is the size of the page.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
401
+ * Index name to target.
366
402
  */
367
403
  index: string;
368
404
  /**
369
- * The query term to search for. Must match the exact user input.
405
+ * User query.
370
406
  */
371
407
  search?: string;
372
408
  /**
373
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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. Limit is the size of the page.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
435
+ * Index name to target.
400
436
  */
401
437
  index: string;
402
438
  /**
403
- * The query term to search for. Must match the exact user input.
439
+ * User query.
404
440
  */
405
441
  search?: string;
406
442
  /**
407
- * Whether to include the click-through and conversion rates for a search.
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
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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. Limit is the size of the page.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
473
+ * Index name to target.
438
474
  */
439
475
  index: string;
440
476
  /**
441
- * Whether to include the click-through and conversion rates for a search.
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
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The sorting of the result.
493
+ * Sorting direction of the results: ascending or descending.
458
494
  */
459
495
  direction?: Direction;
460
496
  /**
461
- * Number of records to return. Limit is the size of the page.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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
- * The index name to target.
515
+ * Index name to target.
480
516
  */
481
517
  index: string;
482
518
  /**
483
- * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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
- * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
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 metrics on the provided tags. Each tag must correspond to an 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 should be URL encoded.
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,23 +1,23 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
- * The click-through rate.
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
- * The number of tracked search click.
10
+ * Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
11
11
  */
12
- trackedSearchCount: number;
12
+ trackedSearchCount: number | null;
13
13
 
14
14
  /**
15
- * The number of converted clicks.
15
+ * Number of converted clicks.
16
16
  */
17
17
  conversionCount: number;
18
18
 
19
19
  /**
20
- * Date of the event.
20
+ * Date of the event in the format YYYY-MM-DD.
21
21
  */
22
22
  date: string;
23
23
  };
@@ -1,3 +1,3 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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';