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

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 (150) hide show
  1. package/dist/builds/browser.d.ts +6 -0
  2. package/dist/builds/browser.d.ts.map +1 -0
  3. package/dist/builds/node.d.ts +6 -0
  4. package/dist/builds/node.d.ts.map +1 -0
  5. package/dist/client-analytics.cjs.js +920 -65
  6. package/dist/client-analytics.esm.browser.js +1646 -0
  7. package/dist/client-analytics.esm.node.js +930 -0
  8. package/dist/client-analytics.umd.js +2 -0
  9. package/dist/model/averageClickEvent.d.ts +15 -0
  10. package/dist/model/averageClickEvent.d.ts.map +1 -0
  11. package/dist/model/clickPosition.d.ts +11 -0
  12. package/dist/model/clickPosition.d.ts.map +1 -0
  13. package/dist/model/clickThroughRateEvent.d.ts +19 -0
  14. package/dist/model/clickThroughRateEvent.d.ts.map +1 -0
  15. package/dist/model/clientMethodProps.d.ts +508 -0
  16. package/dist/model/clientMethodProps.d.ts.map +1 -0
  17. package/dist/model/conversionRateEvent.d.ts +19 -0
  18. package/dist/model/conversionRateEvent.d.ts.map +1 -0
  19. package/dist/model/direction.d.ts +2 -0
  20. package/dist/model/direction.d.ts.map +1 -0
  21. package/dist/model/errorBase.d.ts +7 -0
  22. package/dist/model/errorBase.d.ts.map +1 -0
  23. package/dist/model/getAverageClickPositionResponse.d.ts +16 -0
  24. package/dist/model/getAverageClickPositionResponse.d.ts.map +1 -0
  25. package/dist/model/getClickPositionsResponse.d.ts +8 -0
  26. package/dist/model/getClickPositionsResponse.d.ts.map +1 -0
  27. package/dist/model/getClickThroughRateResponse.d.ts +20 -0
  28. package/dist/model/getClickThroughRateResponse.d.ts.map +1 -0
  29. package/dist/model/getConversationRateResponse.d.ts +20 -0
  30. package/dist/model/getConversationRateResponse.d.ts.map +1 -0
  31. package/dist/model/getNoClickRateResponse.d.ts +20 -0
  32. package/dist/model/getNoClickRateResponse.d.ts.map +1 -0
  33. package/dist/model/getNoResultsRateResponse.d.ts +20 -0
  34. package/dist/model/getNoResultsRateResponse.d.ts.map +1 -0
  35. package/dist/model/getSearchesCountResponse.d.ts +12 -0
  36. package/dist/model/getSearchesCountResponse.d.ts.map +1 -0
  37. package/dist/model/getSearchesNoClicksResponse.d.ts +8 -0
  38. package/dist/model/getSearchesNoClicksResponse.d.ts.map +1 -0
  39. package/dist/model/getSearchesNoResultsResponse.d.ts +8 -0
  40. package/dist/model/getSearchesNoResultsResponse.d.ts.map +1 -0
  41. package/dist/model/getStatusResponse.d.ts +7 -0
  42. package/dist/model/getStatusResponse.d.ts.map +1 -0
  43. package/dist/model/getTopCountriesResponse.d.ts +8 -0
  44. package/dist/model/getTopCountriesResponse.d.ts.map +1 -0
  45. package/dist/model/getTopFilterAttribute.d.ts +11 -0
  46. package/dist/model/getTopFilterAttribute.d.ts.map +1 -0
  47. package/dist/model/getTopFilterAttributesResponse.d.ts +8 -0
  48. package/dist/model/getTopFilterAttributesResponse.d.ts.map +1 -0
  49. package/dist/model/getTopFilterForAttribute.d.ts +19 -0
  50. package/dist/model/getTopFilterForAttribute.d.ts.map +1 -0
  51. package/dist/model/getTopFilterForAttributeResponse.d.ts +8 -0
  52. package/dist/model/getTopFilterForAttributeResponse.d.ts.map +1 -0
  53. package/dist/model/getTopFiltersNoResultsResponse.d.ts +8 -0
  54. package/dist/model/getTopFiltersNoResultsResponse.d.ts.map +1 -0
  55. package/dist/model/getTopFiltersNoResultsValue.d.ts +15 -0
  56. package/dist/model/getTopFiltersNoResultsValue.d.ts.map +1 -0
  57. package/dist/model/getTopFiltersNoResultsValues.d.ts +12 -0
  58. package/dist/model/getTopFiltersNoResultsValues.d.ts.map +1 -0
  59. package/dist/model/getTopHitsResponse.d.ts +4 -0
  60. package/dist/model/getTopHitsResponse.d.ts.map +1 -0
  61. package/dist/model/getTopSearchesResponse.d.ts +4 -0
  62. package/dist/model/getTopSearchesResponse.d.ts.map +1 -0
  63. package/dist/model/getUsersCountResponse.d.ts +12 -0
  64. package/dist/model/getUsersCountResponse.d.ts.map +1 -0
  65. package/dist/model/index.d.ts +45 -0
  66. package/dist/model/index.d.ts.map +1 -0
  67. package/dist/model/noClickRateEvent.d.ts +19 -0
  68. package/dist/model/noClickRateEvent.d.ts.map +1 -0
  69. package/dist/model/noResultsRateEvent.d.ts +19 -0
  70. package/dist/model/noResultsRateEvent.d.ts.map +1 -0
  71. package/dist/model/orderBy.d.ts +2 -0
  72. package/dist/model/orderBy.d.ts.map +1 -0
  73. package/dist/model/searchEvent.d.ts +11 -0
  74. package/dist/model/searchEvent.d.ts.map +1 -0
  75. package/dist/model/searchNoClickEvent.d.ts +15 -0
  76. package/dist/model/searchNoClickEvent.d.ts.map +1 -0
  77. package/dist/model/searchNoResultEvent.d.ts +15 -0
  78. package/dist/model/searchNoResultEvent.d.ts.map +1 -0
  79. package/dist/model/topCountry.d.ts +11 -0
  80. package/dist/model/topCountry.d.ts.map +1 -0
  81. package/dist/model/topHit.d.ts +11 -0
  82. package/dist/model/topHit.d.ts.map +1 -0
  83. package/dist/model/topHitWithAnalytics.d.ts +31 -0
  84. package/dist/model/topHitWithAnalytics.d.ts.map +1 -0
  85. package/dist/model/topHitsResponse.d.ts +8 -0
  86. package/dist/model/topHitsResponse.d.ts.map +1 -0
  87. package/dist/model/topHitsResponseWithAnalytics.d.ts +8 -0
  88. package/dist/model/topHitsResponseWithAnalytics.d.ts.map +1 -0
  89. package/dist/model/topSearch.d.ts +15 -0
  90. package/dist/model/topSearch.d.ts.map +1 -0
  91. package/dist/model/topSearchWithAnalytics.d.ts +39 -0
  92. package/dist/model/topSearchWithAnalytics.d.ts.map +1 -0
  93. package/dist/model/topSearchesResponse.d.ts +8 -0
  94. package/dist/model/topSearchesResponse.d.ts.map +1 -0
  95. package/dist/model/topSearchesResponseWithAnalytics.d.ts +8 -0
  96. package/dist/model/topSearchesResponseWithAnalytics.d.ts.map +1 -0
  97. package/dist/model/userWithDate.d.ts +11 -0
  98. package/dist/model/userWithDate.d.ts.map +1 -0
  99. package/dist/src/analyticsClient.d.ts +319 -0
  100. package/dist/src/analyticsClient.d.ts.map +1 -0
  101. package/index.d.ts +2 -0
  102. package/index.js +1 -1
  103. package/model/averageClickEvent.ts +18 -0
  104. package/model/clickPosition.ts +13 -0
  105. package/model/clickThroughRateEvent.ts +23 -0
  106. package/model/clientMethodProps.ts +530 -0
  107. package/model/conversionRateEvent.ts +23 -0
  108. package/model/direction.ts +3 -0
  109. package/model/errorBase.ts +8 -0
  110. package/model/getAverageClickPositionResponse.ts +20 -0
  111. package/model/getClickPositionsResponse.ts +10 -0
  112. package/model/getClickThroughRateResponse.ts +25 -0
  113. package/model/getConversationRateResponse.ts +25 -0
  114. package/model/getNoClickRateResponse.ts +25 -0
  115. package/model/getNoResultsRateResponse.ts +25 -0
  116. package/model/getSearchesCountResponse.ts +15 -0
  117. package/model/getSearchesNoClicksResponse.ts +10 -0
  118. package/model/getSearchesNoResultsResponse.ts +10 -0
  119. package/model/getStatusResponse.ts +8 -0
  120. package/model/getTopCountriesResponse.ts +10 -0
  121. package/model/getTopFilterAttribute.ts +13 -0
  122. package/model/getTopFilterAttributesResponse.ts +10 -0
  123. package/model/getTopFilterForAttribute.ts +23 -0
  124. package/model/getTopFilterForAttributeResponse.ts +10 -0
  125. package/model/getTopFiltersNoResultsResponse.ts +10 -0
  126. package/model/getTopFiltersNoResultsValue.ts +18 -0
  127. package/model/getTopFiltersNoResultsValues.ts +15 -0
  128. package/model/getTopHitsResponse.ts +6 -0
  129. package/model/getTopSearchesResponse.ts +8 -0
  130. package/model/getUsersCountResponse.ts +15 -0
  131. package/model/index.ts +46 -0
  132. package/model/noClickRateEvent.ts +23 -0
  133. package/model/noResultsRateEvent.ts +23 -0
  134. package/model/orderBy.ts +7 -0
  135. package/model/searchEvent.ts +13 -0
  136. package/model/searchNoClickEvent.ts +18 -0
  137. package/model/searchNoResultEvent.ts +18 -0
  138. package/model/topCountry.ts +13 -0
  139. package/model/topHit.ts +13 -0
  140. package/model/topHitWithAnalytics.ts +38 -0
  141. package/model/topHitsResponse.ts +10 -0
  142. package/model/topHitsResponseWithAnalytics.ts +10 -0
  143. package/model/topSearch.ts +18 -0
  144. package/model/topSearchWithAnalytics.ts +48 -0
  145. package/model/topSearchesResponse.ts +10 -0
  146. package/model/topSearchesResponseWithAnalytics.ts +10 -0
  147. package/model/userWithDate.ts +13 -0
  148. package/package.json +27 -14
  149. package/dist/client-analytics.d.ts +0 -233
  150. package/dist/client-analytics.esm.js +0 -71
@@ -0,0 +1,530 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { Direction } from './direction';
4
+ import type { OrderBy } from './orderBy';
5
+
6
+ /**
7
+ * Properties for the `del` method.
8
+ */
9
+ export type DelProps = {
10
+ /**
11
+ * The path of the API endpoint to target, anything after the /1 needs to be specified.
12
+ */
13
+ path: string;
14
+ /**
15
+ * Query parameters to be applied to the current query.
16
+ */
17
+ parameters?: Record<string, any>;
18
+ };
19
+
20
+ /**
21
+ * Properties for the `get` method.
22
+ */
23
+ export type GetProps = {
24
+ /**
25
+ * The path of the API endpoint to target, anything after the /1 needs to be specified.
26
+ */
27
+ path: string;
28
+ /**
29
+ * Query parameters to be applied to the current query.
30
+ */
31
+ parameters?: Record<string, any>;
32
+ };
33
+
34
+ /**
35
+ * Properties for the `getAverageClickPosition` method.
36
+ */
37
+ export type GetAverageClickPositionProps = {
38
+ /**
39
+ * The index name to target.
40
+ */
41
+ index: string;
42
+ /**
43
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
44
+ */
45
+ startDate?: string;
46
+ /**
47
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
48
+ */
49
+ endDate?: string;
50
+ /**
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.
52
+ */
53
+ tags?: string;
54
+ };
55
+
56
+ /**
57
+ * Properties for the `getClickPositions` method.
58
+ */
59
+ export type GetClickPositionsProps = {
60
+ /**
61
+ * The index name to target.
62
+ */
63
+ index: string;
64
+ /**
65
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
66
+ */
67
+ startDate?: string;
68
+ /**
69
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
70
+ */
71
+ endDate?: string;
72
+ /**
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.
74
+ */
75
+ tags?: string;
76
+ };
77
+
78
+ /**
79
+ * Properties for the `getClickThroughRate` method.
80
+ */
81
+ export type GetClickThroughRateProps = {
82
+ /**
83
+ * The index name to target.
84
+ */
85
+ index: string;
86
+ /**
87
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
88
+ */
89
+ startDate?: string;
90
+ /**
91
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
92
+ */
93
+ endDate?: string;
94
+ /**
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.
96
+ */
97
+ tags?: string;
98
+ };
99
+
100
+ /**
101
+ * Properties for the `getConversationRate` method.
102
+ */
103
+ export type GetConversationRateProps = {
104
+ /**
105
+ * The index name to target.
106
+ */
107
+ index: string;
108
+ /**
109
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
110
+ */
111
+ startDate?: string;
112
+ /**
113
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
114
+ */
115
+ endDate?: string;
116
+ /**
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.
118
+ */
119
+ tags?: string;
120
+ };
121
+
122
+ /**
123
+ * Properties for the `getNoClickRate` method.
124
+ */
125
+ export type GetNoClickRateProps = {
126
+ /**
127
+ * The index name to target.
128
+ */
129
+ index: string;
130
+ /**
131
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
132
+ */
133
+ startDate?: string;
134
+ /**
135
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
136
+ */
137
+ endDate?: string;
138
+ /**
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.
140
+ */
141
+ tags?: string;
142
+ };
143
+
144
+ /**
145
+ * Properties for the `getNoResultsRate` method.
146
+ */
147
+ export type GetNoResultsRateProps = {
148
+ /**
149
+ * The index name to target.
150
+ */
151
+ index: string;
152
+ /**
153
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
154
+ */
155
+ startDate?: string;
156
+ /**
157
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
158
+ */
159
+ endDate?: string;
160
+ /**
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.
162
+ */
163
+ tags?: string;
164
+ };
165
+
166
+ /**
167
+ * Properties for the `getSearchesCount` method.
168
+ */
169
+ export type GetSearchesCountProps = {
170
+ /**
171
+ * The index name to target.
172
+ */
173
+ index: string;
174
+ /**
175
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
176
+ */
177
+ startDate?: string;
178
+ /**
179
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
180
+ */
181
+ endDate?: string;
182
+ /**
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.
184
+ */
185
+ tags?: string;
186
+ };
187
+
188
+ /**
189
+ * Properties for the `getSearchesNoClicks` method.
190
+ */
191
+ export type GetSearchesNoClicksProps = {
192
+ /**
193
+ * The index name to target.
194
+ */
195
+ index: string;
196
+ /**
197
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
198
+ */
199
+ startDate?: string;
200
+ /**
201
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
202
+ */
203
+ endDate?: string;
204
+ /**
205
+ * Number of records to return. Limit is the size of the page.
206
+ */
207
+ limit?: number;
208
+ /**
209
+ * Position of the starting record. Used for paging. 0 is the first record.
210
+ */
211
+ offset?: number;
212
+ /**
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.
214
+ */
215
+ tags?: string;
216
+ };
217
+
218
+ /**
219
+ * Properties for the `getSearchesNoResults` method.
220
+ */
221
+ export type GetSearchesNoResultsProps = {
222
+ /**
223
+ * The index name to target.
224
+ */
225
+ index: string;
226
+ /**
227
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
228
+ */
229
+ startDate?: string;
230
+ /**
231
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
232
+ */
233
+ endDate?: string;
234
+ /**
235
+ * Number of records to return. Limit is the size of the page.
236
+ */
237
+ limit?: number;
238
+ /**
239
+ * Position of the starting record. Used for paging. 0 is the first record.
240
+ */
241
+ offset?: number;
242
+ /**
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.
244
+ */
245
+ tags?: string;
246
+ };
247
+
248
+ /**
249
+ * Properties for the `getStatus` method.
250
+ */
251
+ export type GetStatusProps = {
252
+ /**
253
+ * The index name to target.
254
+ */
255
+ index: string;
256
+ };
257
+
258
+ /**
259
+ * Properties for the `getTopCountries` method.
260
+ */
261
+ export type GetTopCountriesProps = {
262
+ /**
263
+ * The index name to target.
264
+ */
265
+ index: string;
266
+ /**
267
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
268
+ */
269
+ startDate?: string;
270
+ /**
271
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
272
+ */
273
+ endDate?: string;
274
+ /**
275
+ * Number of records to return. Limit is the size of the page.
276
+ */
277
+ limit?: number;
278
+ /**
279
+ * Position of the starting record. Used for paging. 0 is the first record.
280
+ */
281
+ offset?: number;
282
+ /**
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.
284
+ */
285
+ tags?: string;
286
+ };
287
+
288
+ /**
289
+ * Properties for the `getTopFilterAttributes` method.
290
+ */
291
+ export type GetTopFilterAttributesProps = {
292
+ /**
293
+ * The index name to target.
294
+ */
295
+ index: string;
296
+ /**
297
+ * The query term to search for. Must match the exact user input.
298
+ */
299
+ search?: string;
300
+ /**
301
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
302
+ */
303
+ startDate?: string;
304
+ /**
305
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
306
+ */
307
+ endDate?: string;
308
+ /**
309
+ * Number of records to return. Limit is the size of the page.
310
+ */
311
+ limit?: number;
312
+ /**
313
+ * Position of the starting record. Used for paging. 0 is the first record.
314
+ */
315
+ offset?: number;
316
+ /**
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.
318
+ */
319
+ tags?: string;
320
+ };
321
+
322
+ /**
323
+ * Properties for the `getTopFilterForAttribute` method.
324
+ */
325
+ export type GetTopFilterForAttributeProps = {
326
+ /**
327
+ * The exact name of the attribute.
328
+ */
329
+ attribute: string;
330
+ /**
331
+ * The index name to target.
332
+ */
333
+ index: string;
334
+ /**
335
+ * The query term to search for. Must match the exact user input.
336
+ */
337
+ search?: string;
338
+ /**
339
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
340
+ */
341
+ startDate?: string;
342
+ /**
343
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
344
+ */
345
+ endDate?: string;
346
+ /**
347
+ * Number of records to return. Limit is the size of the page.
348
+ */
349
+ limit?: number;
350
+ /**
351
+ * Position of the starting record. Used for paging. 0 is the first record.
352
+ */
353
+ offset?: number;
354
+ /**
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.
356
+ */
357
+ tags?: string;
358
+ };
359
+
360
+ /**
361
+ * Properties for the `getTopFiltersNoResults` method.
362
+ */
363
+ export type GetTopFiltersNoResultsProps = {
364
+ /**
365
+ * The index name to target.
366
+ */
367
+ index: string;
368
+ /**
369
+ * The query term to search for. Must match the exact user input.
370
+ */
371
+ search?: string;
372
+ /**
373
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
374
+ */
375
+ startDate?: string;
376
+ /**
377
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
378
+ */
379
+ endDate?: string;
380
+ /**
381
+ * Number of records to return. Limit is the size of the page.
382
+ */
383
+ limit?: number;
384
+ /**
385
+ * Position of the starting record. Used for paging. 0 is the first record.
386
+ */
387
+ offset?: number;
388
+ /**
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.
390
+ */
391
+ tags?: string;
392
+ };
393
+
394
+ /**
395
+ * Properties for the `getTopHits` method.
396
+ */
397
+ export type GetTopHitsProps = {
398
+ /**
399
+ * The index name to target.
400
+ */
401
+ index: string;
402
+ /**
403
+ * The query term to search for. Must match the exact user input.
404
+ */
405
+ search?: string;
406
+ /**
407
+ * Whether to include the click-through and conversion rates for a search.
408
+ */
409
+ clickAnalytics?: boolean;
410
+ /**
411
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
412
+ */
413
+ startDate?: string;
414
+ /**
415
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
416
+ */
417
+ endDate?: string;
418
+ /**
419
+ * Number of records to return. Limit is the size of the page.
420
+ */
421
+ limit?: number;
422
+ /**
423
+ * Position of the starting record. Used for paging. 0 is the first record.
424
+ */
425
+ offset?: number;
426
+ /**
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.
428
+ */
429
+ tags?: string;
430
+ };
431
+
432
+ /**
433
+ * Properties for the `getTopSearches` method.
434
+ */
435
+ export type GetTopSearchesProps = {
436
+ /**
437
+ * The index name to target.
438
+ */
439
+ index: string;
440
+ /**
441
+ * Whether to include the click-through and conversion rates for a search.
442
+ */
443
+ clickAnalytics?: boolean;
444
+ /**
445
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
446
+ */
447
+ startDate?: string;
448
+ /**
449
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
450
+ */
451
+ endDate?: string;
452
+ /**
453
+ * Reorder the results.
454
+ */
455
+ orderBy?: OrderBy;
456
+ /**
457
+ * The sorting of the result.
458
+ */
459
+ direction?: Direction;
460
+ /**
461
+ * Number of records to return. Limit is the size of the page.
462
+ */
463
+ limit?: number;
464
+ /**
465
+ * Position of the starting record. Used for paging. 0 is the first record.
466
+ */
467
+ offset?: number;
468
+ /**
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.
470
+ */
471
+ tags?: string;
472
+ };
473
+
474
+ /**
475
+ * Properties for the `getUsersCount` method.
476
+ */
477
+ export type GetUsersCountProps = {
478
+ /**
479
+ * The index name to target.
480
+ */
481
+ index: string;
482
+ /**
483
+ * The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
484
+ */
485
+ startDate?: string;
486
+ /**
487
+ * The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
488
+ */
489
+ endDate?: string;
490
+ /**
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.
492
+ */
493
+ tags?: string;
494
+ };
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
+ };
@@ -0,0 +1,23 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type ConversionRateEvent = {
4
+ /**
5
+ * The click-through rate.
6
+ */
7
+ rate: number;
8
+
9
+ /**
10
+ * The number of tracked search click.
11
+ */
12
+ trackedSearchCount: number;
13
+
14
+ /**
15
+ * The number of converted clicks.
16
+ */
17
+ conversionCount: number;
18
+
19
+ /**
20
+ * Date of the event.
21
+ */
22
+ date: string;
23
+ };
@@ -0,0 +1,3 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ export type Direction = 'asc' | 'desc';
@@ -0,0 +1,8 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ /**
4
+ * Error.
5
+ */
6
+ export type ErrorBase = Record<string, any> & {
7
+ message?: string;
8
+ };
@@ -0,0 +1,20 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { AverageClickEvent } from './averageClickEvent';
4
+
5
+ export type GetAverageClickPositionResponse = {
6
+ /**
7
+ * The average of all the click count event.
8
+ */
9
+ average: number;
10
+
11
+ /**
12
+ * The number of click event.
13
+ */
14
+ clickCount: number;
15
+
16
+ /**
17
+ * A list of average click position with their date.
18
+ */
19
+ dates: AverageClickEvent[];
20
+ };
@@ -0,0 +1,10 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { ClickPosition } from './clickPosition';
4
+
5
+ export type GetClickPositionsResponse = {
6
+ /**
7
+ * A list of the click positions with their click count.
8
+ */
9
+ positions: ClickPosition[];
10
+ };
@@ -0,0 +1,25 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { ClickThroughRateEvent } from './clickThroughRateEvent';
4
+
5
+ export type GetClickThroughRateResponse = {
6
+ /**
7
+ * The click-through rate.
8
+ */
9
+ rate: number;
10
+
11
+ /**
12
+ * The number of click event.
13
+ */
14
+ clickCount: number;
15
+
16
+ /**
17
+ * The number of tracked search click.
18
+ */
19
+ trackedSearchCount: number;
20
+
21
+ /**
22
+ * A list of click-through rate events with their date.
23
+ */
24
+ dates: ClickThroughRateEvent[];
25
+ };
@@ -0,0 +1,25 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { ConversionRateEvent } from './conversionRateEvent';
4
+
5
+ export type GetConversationRateResponse = {
6
+ /**
7
+ * The click-through rate.
8
+ */
9
+ rate: number;
10
+
11
+ /**
12
+ * The number of tracked search click.
13
+ */
14
+ trackedSearchCount: number;
15
+
16
+ /**
17
+ * The number of converted clicks.
18
+ */
19
+ conversionCount: number;
20
+
21
+ /**
22
+ * A list of conversion events with their date.
23
+ */
24
+ dates: ConversionRateEvent[];
25
+ };
@@ -0,0 +1,25 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { NoClickRateEvent } from './noClickRateEvent';
4
+
5
+ export type GetNoClickRateResponse = {
6
+ /**
7
+ * The click-through rate.
8
+ */
9
+ rate: number;
10
+
11
+ /**
12
+ * The number of click event.
13
+ */
14
+ count: number;
15
+
16
+ /**
17
+ * The number of click event.
18
+ */
19
+ noClickCount: number;
20
+
21
+ /**
22
+ * A list of searches without clicks with their date, rate and counts.
23
+ */
24
+ dates: NoClickRateEvent[];
25
+ };
@@ -0,0 +1,25 @@
1
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
+
3
+ import type { NoResultsRateEvent } from './noResultsRateEvent';
4
+
5
+ export type GetNoResultsRateResponse = {
6
+ /**
7
+ * The click-through rate.
8
+ */
9
+ rate: number;
10
+
11
+ /**
12
+ * The number of occurrences.
13
+ */
14
+ count: number;
15
+
16
+ /**
17
+ * The number of occurrences.
18
+ */
19
+ noResultCount: number;
20
+
21
+ /**
22
+ * A list of searches without results with their date, rate and counts.
23
+ */
24
+ dates: NoResultsRateEvent[];
25
+ };