@algolia/client-analytics 5.0.0-alpha.7 → 5.0.0-alpha.71

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 +922 -922
  6. package/dist/client-analytics.esm.browser.js +1105 -1153
  7. package/dist/client-analytics.esm.node.js +922 -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/index.d.ts.map +1 -1
  67. package/dist/model/noClickRateEvent.d.ts +18 -18
  68. package/dist/model/noClickRateEvent.d.ts.map +1 -1
  69. package/dist/model/noResultsRateEvent.d.ts +18 -18
  70. package/dist/model/noResultsRateEvent.d.ts.map +1 -1
  71. package/dist/model/orderBy.d.ts +1 -1
  72. package/dist/model/orderBy.d.ts.map +1 -1
  73. package/dist/model/searchEvent.d.ts +10 -10
  74. package/dist/model/searchEvent.d.ts.map +1 -1
  75. package/dist/model/searchNoClickEvent.d.ts +14 -14
  76. package/dist/model/searchNoClickEvent.d.ts.map +1 -1
  77. package/dist/model/searchNoResultEvent.d.ts +14 -14
  78. package/dist/model/searchNoResultEvent.d.ts.map +1 -1
  79. package/dist/model/topCountry.d.ts +10 -10
  80. package/dist/model/topCountry.d.ts.map +1 -1
  81. package/dist/model/topHit.d.ts +10 -10
  82. package/dist/model/topHit.d.ts.map +1 -1
  83. package/dist/model/topHitWithAnalytics.d.ts +30 -30
  84. package/dist/model/topHitWithAnalytics.d.ts.map +1 -1
  85. package/dist/model/topHitsResponse.d.ts +7 -7
  86. package/dist/model/topHitsResponse.d.ts.map +1 -1
  87. package/dist/model/topHitsResponseWithAnalytics.d.ts +7 -7
  88. package/dist/model/topHitsResponseWithAnalytics.d.ts.map +1 -1
  89. package/dist/model/topSearch.d.ts +14 -14
  90. package/dist/model/topSearch.d.ts.map +1 -1
  91. package/dist/model/topSearchWithAnalytics.d.ts +38 -38
  92. package/dist/model/topSearchWithAnalytics.d.ts.map +1 -1
  93. package/dist/model/topSearchesResponse.d.ts +7 -7
  94. package/dist/model/topSearchesResponse.d.ts.map +1 -1
  95. package/dist/model/topSearchesResponseWithAnalytics.d.ts +7 -7
  96. package/dist/model/topSearchesResponseWithAnalytics.d.ts.map +1 -1
  97. package/dist/model/userWithDate.d.ts +10 -10
  98. package/dist/model/userWithDate.d.ts.map +1 -1
  99. package/dist/src/analyticsClient.d.ts +318 -318
  100. package/dist/src/analyticsClient.d.ts.map +1 -1
  101. package/model/averageClickEvent.ts +1 -1
  102. package/model/clickPosition.ts +1 -1
  103. package/model/clickThroughRateEvent.ts +1 -1
  104. package/model/clientMethodProps.ts +1 -1
  105. package/model/conversionRateEvent.ts +1 -1
  106. package/model/direction.ts +1 -1
  107. package/model/errorBase.ts +1 -1
  108. package/model/getAverageClickPositionResponse.ts +1 -1
  109. package/model/getClickPositionsResponse.ts +1 -1
  110. package/model/getClickThroughRateResponse.ts +1 -1
  111. package/model/getConversationRateResponse.ts +1 -1
  112. package/model/getNoClickRateResponse.ts +1 -1
  113. package/model/getNoResultsRateResponse.ts +1 -1
  114. package/model/getSearchesCountResponse.ts +1 -1
  115. package/model/getSearchesNoClicksResponse.ts +1 -1
  116. package/model/getSearchesNoResultsResponse.ts +1 -1
  117. package/model/getStatusResponse.ts +1 -1
  118. package/model/getTopCountriesResponse.ts +1 -1
  119. package/model/getTopFilterAttribute.ts +1 -1
  120. package/model/getTopFilterAttributesResponse.ts +1 -1
  121. package/model/getTopFilterForAttribute.ts +1 -1
  122. package/model/getTopFilterForAttributeResponse.ts +1 -1
  123. package/model/getTopFiltersNoResultsResponse.ts +1 -1
  124. package/model/getTopFiltersNoResultsValue.ts +1 -1
  125. package/model/getTopFiltersNoResultsValues.ts +1 -1
  126. package/model/getTopHitsResponse.ts +1 -1
  127. package/model/getTopSearchesResponse.ts +1 -1
  128. package/model/getUsersCountResponse.ts +1 -1
  129. package/model/index.ts +1 -1
  130. package/model/noClickRateEvent.ts +1 -1
  131. package/model/noResultsRateEvent.ts +1 -1
  132. package/model/orderBy.ts +1 -1
  133. package/model/searchEvent.ts +1 -1
  134. package/model/searchNoClickEvent.ts +1 -1
  135. package/model/searchNoResultEvent.ts +1 -1
  136. package/model/topCountry.ts +1 -1
  137. package/model/topHit.ts +1 -1
  138. package/model/topHitWithAnalytics.ts +1 -1
  139. package/model/topHitsResponse.ts +1 -1
  140. package/model/topHitsResponseWithAnalytics.ts +1 -1
  141. package/model/topSearch.ts +1 -1
  142. package/model/topSearchWithAnalytics.ts +1 -1
  143. package/model/topSearchesResponse.ts +1 -1
  144. package/model/topSearchesResponseWithAnalytics.ts +1 -1
  145. package/model/userWithDate.ts +1 -1
  146. package/package.json +31 -13
@@ -1,319 +1,319 @@
1
- import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
2
- import type { DelProps, GetProps, GetAverageClickPositionProps, GetClickPositionsProps, GetClickThroughRateProps, GetConversationRateProps, GetNoClickRateProps, GetNoResultsRateProps, GetSearchesCountProps, GetSearchesNoClicksProps, GetSearchesNoResultsProps, GetStatusProps, GetTopCountriesProps, GetTopFilterAttributesProps, GetTopFilterForAttributeProps, GetTopFiltersNoResultsProps, GetTopHitsProps, GetTopSearchesProps, GetUsersCountProps, PostProps, PutProps } from '../model/clientMethodProps';
3
- import type { GetAverageClickPositionResponse } from '../model/getAverageClickPositionResponse';
4
- import type { GetClickPositionsResponse } from '../model/getClickPositionsResponse';
5
- import type { GetClickThroughRateResponse } from '../model/getClickThroughRateResponse';
6
- import type { GetConversationRateResponse } from '../model/getConversationRateResponse';
7
- import type { GetNoClickRateResponse } from '../model/getNoClickRateResponse';
8
- import type { GetNoResultsRateResponse } from '../model/getNoResultsRateResponse';
9
- import type { GetSearchesCountResponse } from '../model/getSearchesCountResponse';
10
- import type { GetSearchesNoClicksResponse } from '../model/getSearchesNoClicksResponse';
11
- import type { GetSearchesNoResultsResponse } from '../model/getSearchesNoResultsResponse';
12
- import type { GetStatusResponse } from '../model/getStatusResponse';
13
- import type { GetTopCountriesResponse } from '../model/getTopCountriesResponse';
14
- import type { GetTopFilterAttributesResponse } from '../model/getTopFilterAttributesResponse';
15
- import type { GetTopFilterForAttributeResponse } from '../model/getTopFilterForAttributeResponse';
16
- import type { GetTopFiltersNoResultsResponse } from '../model/getTopFiltersNoResultsResponse';
17
- import type { GetTopHitsResponse } from '../model/getTopHitsResponse';
18
- import type { GetTopSearchesResponse } from '../model/getTopSearchesResponse';
19
- import type { GetUsersCountResponse } from '../model/getUsersCountResponse';
20
- export declare const apiClientVersion = "5.0.0-alpha.7";
21
- export declare const REGIONS: readonly ["de", "us"];
22
- export declare type Region = typeof REGIONS[number];
23
- export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
24
- region?: Region;
25
- }): {
26
- transporter: import("@algolia/client-common").Transporter;
27
- /**
28
- * The `appId` currently in use.
29
- */
30
- appId: string;
31
- /**
32
- * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
33
- */
34
- clearCache(): Promise<void>;
35
- /**
36
- * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
37
- */
38
- readonly _ua: string;
39
- /**
40
- * Adds a `segment` to the `x-algolia-agent` sent with every requests.
41
- *
42
- * @param segment - The algolia agent (user-agent) segment to add.
43
- * @param version - The version of the agent.
44
- */
45
- addAlgoliaAgent(segment: string, version?: string): void;
46
- /**
47
- * This method allow you to send requests to the Algolia REST API.
48
- *
49
- * @summary Send requests to the Algolia REST API.
50
- * @param del - The del object.
51
- * @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
52
- * @param del.parameters - Query parameters to be applied to the current query.
53
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
54
- */
55
- del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
56
- /**
57
- * This method allow you to send requests to the Algolia REST API.
58
- *
59
- * @summary Send requests to the Algolia REST API.
60
- * @param get - The get object.
61
- * @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
62
- * @param get.parameters - Query parameters to be applied to the current query.
63
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
64
- */
65
- get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
66
- /**
67
- * Returns the average click position. The endpoint returns a value for the complete given time range, as well as a value per day.
68
- *
69
- * @summary Get average click position.
70
- * @param getAverageClickPosition - The getAverageClickPosition object.
71
- * @param getAverageClickPosition.index - The index name to target.
72
- * @param getAverageClickPosition.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
73
- * @param getAverageClickPosition.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
74
- * @param getAverageClickPosition.tags - 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.
75
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
76
- */
77
- getAverageClickPosition({ index, startDate, endDate, tags }: GetAverageClickPositionProps, requestOptions?: RequestOptions): Promise<GetAverageClickPositionResponse>;
78
- /**
79
- * Returns the distribution of clicks per range of positions. If the groups all have a count of 0, it means Algolia didn’t receive any click events for the queries with the clickAnalytics search parameter set to true. The count is 0 until Algolia receives at least one click event.
80
- *
81
- * @summary Get clicks per positions.
82
- * @param getClickPositions - The getClickPositions object.
83
- * @param getClickPositions.index - The index name to target.
84
- * @param getClickPositions.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
85
- * @param getClickPositions.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
86
- * @param getClickPositions.tags - 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
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
88
- */
89
- getClickPositions({ index, startDate, endDate, tags }: GetClickPositionsProps, requestOptions?: RequestOptions): Promise<GetClickPositionsResponse>;
90
- /**
91
- * Returns a click-through rate (CTR). The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of clicks and searches used to compute the rates.
92
- *
93
- * @summary Get click-through rate (CTR).
94
- * @param getClickThroughRate - The getClickThroughRate object.
95
- * @param getClickThroughRate.index - The index name to target.
96
- * @param getClickThroughRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
97
- * @param getClickThroughRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
98
- * @param getClickThroughRate.tags - 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.
99
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
100
- */
101
- getClickThroughRate({ index, startDate, endDate, tags }: GetClickThroughRateProps, requestOptions?: RequestOptions): Promise<GetClickThroughRateResponse>;
102
- /**
103
- * Returns a conversion rate (CR). The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of conversion and searches used to compute the rates.
104
- *
105
- * @summary Get conversion rate (CR).
106
- * @param getConversationRate - The getConversationRate object.
107
- * @param getConversationRate.index - The index name to target.
108
- * @param getConversationRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
109
- * @param getConversationRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
110
- * @param getConversationRate.tags - 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.
111
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
112
- */
113
- getConversationRate({ index, startDate, endDate, tags }: GetConversationRateProps, requestOptions?: RequestOptions): Promise<GetConversationRateResponse>;
114
- /**
115
- * Returns the rate at which searches didn\'t lead to any clicks. The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of searches and searches without clicks.
116
- *
117
- * @summary Get no click rate.
118
- * @param getNoClickRate - The getNoClickRate object.
119
- * @param getNoClickRate.index - The index name to target.
120
- * @param getNoClickRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
121
- * @param getNoClickRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
122
- * @param getNoClickRate.tags - 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.
123
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
124
- */
125
- getNoClickRate({ index, startDate, endDate, tags }: GetNoClickRateProps, requestOptions?: RequestOptions): Promise<GetNoClickRateResponse>;
126
- /**
127
- * Returns the rate at which searches didn\'t return any results. The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of searches and searches without results used to compute the rates.
128
- *
129
- * @summary Get no results rate.
130
- * @param getNoResultsRate - The getNoResultsRate object.
131
- * @param getNoResultsRate.index - The index name to target.
132
- * @param getNoResultsRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
133
- * @param getNoResultsRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
134
- * @param getNoResultsRate.tags - 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.
135
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
136
- */
137
- getNoResultsRate({ index, startDate, endDate, tags }: GetNoResultsRateProps, requestOptions?: RequestOptions): Promise<GetNoResultsRateResponse>;
138
- /**
139
- * Returns the number of searches across the given time range. The endpoint returns a value for the complete given time range, as well as a value per day.
140
- *
141
- * @summary Get searches count.
142
- * @param getSearchesCount - The getSearchesCount object.
143
- * @param getSearchesCount.index - The index name to target.
144
- * @param getSearchesCount.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
145
- * @param getSearchesCount.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
146
- * @param getSearchesCount.tags - 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.
147
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
148
- */
149
- getSearchesCount({ index, startDate, endDate, tags }: GetSearchesCountProps, requestOptions?: RequestOptions): Promise<GetSearchesCountResponse>;
150
- /**
151
- * Returns top searches that didn\'t lead to any clicks. Limited to the 1000 most frequent ones. For each search, also returns the average number of found hits.
152
- *
153
- * @summary Get top searches with no clicks.
154
- * @param getSearchesNoClicks - The getSearchesNoClicks object.
155
- * @param getSearchesNoClicks.index - The index name to target.
156
- * @param getSearchesNoClicks.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
157
- * @param getSearchesNoClicks.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
158
- * @param getSearchesNoClicks.limit - Number of records to return. Limit is the size of the page.
159
- * @param getSearchesNoClicks.offset - Position of the starting record. Used for paging. 0 is the first record.
160
- * @param getSearchesNoClicks.tags - 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.
161
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
162
- */
163
- getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }: GetSearchesNoClicksProps, requestOptions?: RequestOptions): Promise<GetSearchesNoClicksResponse>;
164
- /**
165
- * Returns top searches that didn\'t return any results. Limited to the 1000 most frequent ones.
166
- *
167
- * @summary Get top searches with no results.
168
- * @param getSearchesNoResults - The getSearchesNoResults object.
169
- * @param getSearchesNoResults.index - The index name to target.
170
- * @param getSearchesNoResults.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
171
- * @param getSearchesNoResults.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
172
- * @param getSearchesNoResults.limit - Number of records to return. Limit is the size of the page.
173
- * @param getSearchesNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
174
- * @param getSearchesNoResults.tags - 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
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
176
- */
177
- getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }: GetSearchesNoResultsProps, requestOptions?: RequestOptions): Promise<GetSearchesNoResultsResponse>;
178
- /**
179
- * Returns the latest update time of the analytics API for a given index. If the index has been recently created and/or no search has been performed yet the updated time will be null.
180
- *
181
- * @summary Get Analytics API status.
182
- * @param getStatus - The getStatus object.
183
- * @param getStatus.index - The index name to target.
184
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
185
- */
186
- getStatus({ index }: GetStatusProps, requestOptions?: RequestOptions): Promise<GetStatusResponse>;
187
- /**
188
- * Returns top countries. Limited to the 1000 most frequent ones.
189
- *
190
- * @summary Get top countries.
191
- * @param getTopCountries - The getTopCountries object.
192
- * @param getTopCountries.index - The index name to target.
193
- * @param getTopCountries.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
194
- * @param getTopCountries.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
195
- * @param getTopCountries.limit - Number of records to return. Limit is the size of the page.
196
- * @param getTopCountries.offset - Position of the starting record. Used for paging. 0 is the first record.
197
- * @param getTopCountries.tags - 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.
198
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
199
- */
200
- getTopCountries({ index, startDate, endDate, limit, offset, tags }: GetTopCountriesProps, requestOptions?: RequestOptions): Promise<GetTopCountriesResponse>;
201
- /**
202
- * Returns top filter attributes. Limited to the 1000 most used filters.
203
- *
204
- * @summary Get top filter attributes.
205
- * @param getTopFilterAttributes - The getTopFilterAttributes object.
206
- * @param getTopFilterAttributes.index - The index name to target.
207
- * @param getTopFilterAttributes.search - The query term to search for. Must match the exact user input.
208
- * @param getTopFilterAttributes.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
209
- * @param getTopFilterAttributes.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
210
- * @param getTopFilterAttributes.limit - Number of records to return. Limit is the size of the page.
211
- * @param getTopFilterAttributes.offset - Position of the starting record. Used for paging. 0 is the first record.
212
- * @param getTopFilterAttributes.tags - 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.
213
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
214
- */
215
- getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }: GetTopFilterAttributesProps, requestOptions?: RequestOptions): Promise<GetTopFilterAttributesResponse>;
216
- /**
217
- * Returns top filters for the given attribute. Limited to the 1000 most used filters.
218
- *
219
- * @summary Get top filters for the an attribute.
220
- * @param getTopFilterForAttribute - The getTopFilterForAttribute object.
221
- * @param getTopFilterForAttribute.attribute - The exact name of the attribute.
222
- * @param getTopFilterForAttribute.index - The index name to target.
223
- * @param getTopFilterForAttribute.search - The query term to search for. Must match the exact user input.
224
- * @param getTopFilterForAttribute.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
225
- * @param getTopFilterForAttribute.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
226
- * @param getTopFilterForAttribute.limit - Number of records to return. Limit is the size of the page.
227
- * @param getTopFilterForAttribute.offset - Position of the starting record. Used for paging. 0 is the first record.
228
- * @param getTopFilterForAttribute.tags - 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.
229
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
230
- */
231
- getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }: GetTopFilterForAttributeProps, requestOptions?: RequestOptions): Promise<GetTopFilterForAttributeResponse>;
232
- /**
233
- * Returns top filters with no results. Limited to the 1000 most used filters.
234
- *
235
- * @summary Get top filters for a no result search.
236
- * @param getTopFiltersNoResults - The getTopFiltersNoResults object.
237
- * @param getTopFiltersNoResults.index - The index name to target.
238
- * @param getTopFiltersNoResults.search - The query term to search for. Must match the exact user input.
239
- * @param getTopFiltersNoResults.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
240
- * @param getTopFiltersNoResults.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
241
- * @param getTopFiltersNoResults.limit - Number of records to return. Limit is the size of the page.
242
- * @param getTopFiltersNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
243
- * @param getTopFiltersNoResults.tags - 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
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
245
- */
246
- getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }: GetTopFiltersNoResultsProps, requestOptions?: RequestOptions): Promise<GetTopFiltersNoResultsResponse>;
247
- /**
248
- * Returns top hits. Limited to the 1000 most frequent ones.
249
- *
250
- * @summary Get top hits.
251
- * @param getTopHits - The getTopHits object.
252
- * @param getTopHits.index - The index name to target.
253
- * @param getTopHits.search - The query term to search for. Must match the exact user input.
254
- * @param getTopHits.clickAnalytics - Whether to include the click-through and conversion rates for a search.
255
- * @param getTopHits.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
256
- * @param getTopHits.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
257
- * @param getTopHits.limit - Number of records to return. Limit is the size of the page.
258
- * @param getTopHits.offset - Position of the starting record. Used for paging. 0 is the first record.
259
- * @param getTopHits.tags - 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.
260
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
261
- */
262
- getTopHits({ index, search, clickAnalytics, startDate, endDate, limit, offset, tags, }: GetTopHitsProps, requestOptions?: RequestOptions): Promise<GetTopHitsResponse>;
263
- /**
264
- * Returns top searches. Limited to the 1000 most frequent ones. For each search, also returns the average number of hits returned.
265
- *
266
- * @summary Get top searches.
267
- * @param getTopSearches - The getTopSearches object.
268
- * @param getTopSearches.index - The index name to target.
269
- * @param getTopSearches.clickAnalytics - Whether to include the click-through and conversion rates for a search.
270
- * @param getTopSearches.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
271
- * @param getTopSearches.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
272
- * @param getTopSearches.orderBy - Reorder the results.
273
- * @param getTopSearches.direction - The sorting of the result.
274
- * @param getTopSearches.limit - Number of records to return. Limit is the size of the page.
275
- * @param getTopSearches.offset - Position of the starting record. Used for paging. 0 is the first record.
276
- * @param getTopSearches.tags - 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.
277
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
278
- */
279
- getTopSearches({ index, clickAnalytics, startDate, endDate, orderBy, direction, limit, offset, tags, }: GetTopSearchesProps, requestOptions?: RequestOptions): Promise<GetTopSearchesResponse>;
280
- /**
281
- * Returns the distinct count of users across the given time range. The endpoint returns a value for the complete given time range, as well as a value per day.
282
- *
283
- * @summary Get users count.
284
- * @param getUsersCount - The getUsersCount object.
285
- * @param getUsersCount.index - The index name to target.
286
- * @param getUsersCount.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
287
- * @param getUsersCount.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
288
- * @param getUsersCount.tags - 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.
289
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
290
- */
291
- getUsersCount({ index, startDate, endDate, tags }: GetUsersCountProps, requestOptions?: RequestOptions): Promise<GetUsersCountResponse>;
292
- /**
293
- * This method allow you to send requests to the Algolia REST API.
294
- *
295
- * @summary Send requests to the Algolia REST API.
296
- * @param post - The post object.
297
- * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
298
- * @param post.parameters - Query parameters to be applied to the current query.
299
- * @param post.body - The parameters to send with the custom request.
300
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
301
- */
302
- post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
303
- /**
304
- * This method allow you to send requests to the Algolia REST API.
305
- *
306
- * @summary Send requests to the Algolia REST API.
307
- * @param put - The put object.
308
- * @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
309
- * @param put.parameters - Query parameters to be applied to the current query.
310
- * @param put.body - The parameters to send with the custom request.
311
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
312
- */
313
- put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
314
- };
315
- /**
316
- * The client type.
317
- */
318
- export declare type AnalyticsClient = ReturnType<typeof createAnalyticsClient>;
1
+ import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
2
+ import type { DelProps, GetProps, GetAverageClickPositionProps, GetClickPositionsProps, GetClickThroughRateProps, GetConversationRateProps, GetNoClickRateProps, GetNoResultsRateProps, GetSearchesCountProps, GetSearchesNoClicksProps, GetSearchesNoResultsProps, GetStatusProps, GetTopCountriesProps, GetTopFilterAttributesProps, GetTopFilterForAttributeProps, GetTopFiltersNoResultsProps, GetTopHitsProps, GetTopSearchesProps, GetUsersCountProps, PostProps, PutProps } from '../model/clientMethodProps';
3
+ import type { GetAverageClickPositionResponse } from '../model/getAverageClickPositionResponse';
4
+ import type { GetClickPositionsResponse } from '../model/getClickPositionsResponse';
5
+ import type { GetClickThroughRateResponse } from '../model/getClickThroughRateResponse';
6
+ import type { GetConversationRateResponse } from '../model/getConversationRateResponse';
7
+ import type { GetNoClickRateResponse } from '../model/getNoClickRateResponse';
8
+ import type { GetNoResultsRateResponse } from '../model/getNoResultsRateResponse';
9
+ import type { GetSearchesCountResponse } from '../model/getSearchesCountResponse';
10
+ import type { GetSearchesNoClicksResponse } from '../model/getSearchesNoClicksResponse';
11
+ import type { GetSearchesNoResultsResponse } from '../model/getSearchesNoResultsResponse';
12
+ import type { GetStatusResponse } from '../model/getStatusResponse';
13
+ import type { GetTopCountriesResponse } from '../model/getTopCountriesResponse';
14
+ import type { GetTopFilterAttributesResponse } from '../model/getTopFilterAttributesResponse';
15
+ import type { GetTopFilterForAttributeResponse } from '../model/getTopFilterForAttributeResponse';
16
+ import type { GetTopFiltersNoResultsResponse } from '../model/getTopFiltersNoResultsResponse';
17
+ import type { GetTopHitsResponse } from '../model/getTopHitsResponse';
18
+ import type { GetTopSearchesResponse } from '../model/getTopSearchesResponse';
19
+ import type { GetUsersCountResponse } from '../model/getUsersCountResponse';
20
+ export declare const apiClientVersion = "5.0.0-alpha.71";
21
+ export declare const REGIONS: readonly ["de", "us"];
22
+ export type Region = (typeof REGIONS)[number];
23
+ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
24
+ region?: Region;
25
+ }): {
26
+ transporter: import("@algolia/client-common").Transporter;
27
+ /**
28
+ * The `appId` currently in use.
29
+ */
30
+ appId: string;
31
+ /**
32
+ * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
33
+ */
34
+ clearCache(): Promise<void>;
35
+ /**
36
+ * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
37
+ */
38
+ readonly _ua: string;
39
+ /**
40
+ * Adds a `segment` to the `x-algolia-agent` sent with every requests.
41
+ *
42
+ * @param segment - The algolia agent (user-agent) segment to add.
43
+ * @param version - The version of the agent.
44
+ */
45
+ addAlgoliaAgent(segment: string, version?: string): void;
46
+ /**
47
+ * This method allow you to send requests to the Algolia REST API.
48
+ *
49
+ * @summary Send requests to the Algolia REST API.
50
+ * @param del - The del object.
51
+ * @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
52
+ * @param del.parameters - Query parameters to be applied to the current query.
53
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
54
+ */
55
+ del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
56
+ /**
57
+ * This method allow you to send requests to the Algolia REST API.
58
+ *
59
+ * @summary Send requests to the Algolia REST API.
60
+ * @param get - The get object.
61
+ * @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
62
+ * @param get.parameters - Query parameters to be applied to the current query.
63
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
64
+ */
65
+ get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
66
+ /**
67
+ * Returns the average click position. The endpoint returns a value for the complete given time range, as well as a value per day.
68
+ *
69
+ * @summary Get average click position.
70
+ * @param getAverageClickPosition - The getAverageClickPosition object.
71
+ * @param getAverageClickPosition.index - The index name to target.
72
+ * @param getAverageClickPosition.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
73
+ * @param getAverageClickPosition.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
74
+ * @param getAverageClickPosition.tags - 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.
75
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
76
+ */
77
+ getAverageClickPosition({ index, startDate, endDate, tags }: GetAverageClickPositionProps, requestOptions?: RequestOptions): Promise<GetAverageClickPositionResponse>;
78
+ /**
79
+ * Returns the distribution of clicks per range of positions. If the groups all have a count of 0, it means Algolia didn’t receive any click events for the queries with the clickAnalytics search parameter set to true. The count is 0 until Algolia receives at least one click event.
80
+ *
81
+ * @summary Get clicks per positions.
82
+ * @param getClickPositions - The getClickPositions object.
83
+ * @param getClickPositions.index - The index name to target.
84
+ * @param getClickPositions.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
85
+ * @param getClickPositions.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
86
+ * @param getClickPositions.tags - 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
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
88
+ */
89
+ getClickPositions({ index, startDate, endDate, tags }: GetClickPositionsProps, requestOptions?: RequestOptions): Promise<GetClickPositionsResponse>;
90
+ /**
91
+ * Returns a click-through rate (CTR). The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of clicks and searches used to compute the rates.
92
+ *
93
+ * @summary Get click-through rate (CTR).
94
+ * @param getClickThroughRate - The getClickThroughRate object.
95
+ * @param getClickThroughRate.index - The index name to target.
96
+ * @param getClickThroughRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
97
+ * @param getClickThroughRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
98
+ * @param getClickThroughRate.tags - 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.
99
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
100
+ */
101
+ getClickThroughRate({ index, startDate, endDate, tags }: GetClickThroughRateProps, requestOptions?: RequestOptions): Promise<GetClickThroughRateResponse>;
102
+ /**
103
+ * Returns a conversion rate (CR). The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of conversion and searches used to compute the rates.
104
+ *
105
+ * @summary Get conversion rate (CR).
106
+ * @param getConversationRate - The getConversationRate object.
107
+ * @param getConversationRate.index - The index name to target.
108
+ * @param getConversationRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
109
+ * @param getConversationRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
110
+ * @param getConversationRate.tags - 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.
111
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
112
+ */
113
+ getConversationRate({ index, startDate, endDate, tags }: GetConversationRateProps, requestOptions?: RequestOptions): Promise<GetConversationRateResponse>;
114
+ /**
115
+ * Returns the rate at which searches didn\'t lead to any clicks. The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of searches and searches without clicks.
116
+ *
117
+ * @summary Get no click rate.
118
+ * @param getNoClickRate - The getNoClickRate object.
119
+ * @param getNoClickRate.index - The index name to target.
120
+ * @param getNoClickRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
121
+ * @param getNoClickRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
122
+ * @param getNoClickRate.tags - 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.
123
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
124
+ */
125
+ getNoClickRate({ index, startDate, endDate, tags }: GetNoClickRateProps, requestOptions?: RequestOptions): Promise<GetNoClickRateResponse>;
126
+ /**
127
+ * Returns the rate at which searches didn\'t return any results. The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of searches and searches without results used to compute the rates.
128
+ *
129
+ * @summary Get no results rate.
130
+ * @param getNoResultsRate - The getNoResultsRate object.
131
+ * @param getNoResultsRate.index - The index name to target.
132
+ * @param getNoResultsRate.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
133
+ * @param getNoResultsRate.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
134
+ * @param getNoResultsRate.tags - 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.
135
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
136
+ */
137
+ getNoResultsRate({ index, startDate, endDate, tags }: GetNoResultsRateProps, requestOptions?: RequestOptions): Promise<GetNoResultsRateResponse>;
138
+ /**
139
+ * Returns the number of searches across the given time range. The endpoint returns a value for the complete given time range, as well as a value per day.
140
+ *
141
+ * @summary Get searches count.
142
+ * @param getSearchesCount - The getSearchesCount object.
143
+ * @param getSearchesCount.index - The index name to target.
144
+ * @param getSearchesCount.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
145
+ * @param getSearchesCount.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
146
+ * @param getSearchesCount.tags - 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.
147
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
148
+ */
149
+ getSearchesCount({ index, startDate, endDate, tags }: GetSearchesCountProps, requestOptions?: RequestOptions): Promise<GetSearchesCountResponse>;
150
+ /**
151
+ * Returns top searches that didn\'t lead to any clicks. Limited to the 1000 most frequent ones. For each search, also returns the average number of found hits.
152
+ *
153
+ * @summary Get top searches with no clicks.
154
+ * @param getSearchesNoClicks - The getSearchesNoClicks object.
155
+ * @param getSearchesNoClicks.index - The index name to target.
156
+ * @param getSearchesNoClicks.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
157
+ * @param getSearchesNoClicks.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
158
+ * @param getSearchesNoClicks.limit - Number of records to return. Limit is the size of the page.
159
+ * @param getSearchesNoClicks.offset - Position of the starting record. Used for paging. 0 is the first record.
160
+ * @param getSearchesNoClicks.tags - 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.
161
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
162
+ */
163
+ getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }: GetSearchesNoClicksProps, requestOptions?: RequestOptions): Promise<GetSearchesNoClicksResponse>;
164
+ /**
165
+ * Returns top searches that didn\'t return any results. Limited to the 1000 most frequent ones.
166
+ *
167
+ * @summary Get top searches with no results.
168
+ * @param getSearchesNoResults - The getSearchesNoResults object.
169
+ * @param getSearchesNoResults.index - The index name to target.
170
+ * @param getSearchesNoResults.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
171
+ * @param getSearchesNoResults.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
172
+ * @param getSearchesNoResults.limit - Number of records to return. Limit is the size of the page.
173
+ * @param getSearchesNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
174
+ * @param getSearchesNoResults.tags - 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
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
176
+ */
177
+ getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }: GetSearchesNoResultsProps, requestOptions?: RequestOptions): Promise<GetSearchesNoResultsResponse>;
178
+ /**
179
+ * Returns the latest update time of the analytics API for a given index. If the index has been recently created and/or no search has been performed yet the updated time will be null.
180
+ *
181
+ * @summary Get Analytics API status.
182
+ * @param getStatus - The getStatus object.
183
+ * @param getStatus.index - The index name to target.
184
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
185
+ */
186
+ getStatus({ index }: GetStatusProps, requestOptions?: RequestOptions): Promise<GetStatusResponse>;
187
+ /**
188
+ * Returns top countries. Limited to the 1000 most frequent ones.
189
+ *
190
+ * @summary Get top countries.
191
+ * @param getTopCountries - The getTopCountries object.
192
+ * @param getTopCountries.index - The index name to target.
193
+ * @param getTopCountries.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
194
+ * @param getTopCountries.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
195
+ * @param getTopCountries.limit - Number of records to return. Limit is the size of the page.
196
+ * @param getTopCountries.offset - Position of the starting record. Used for paging. 0 is the first record.
197
+ * @param getTopCountries.tags - 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.
198
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
199
+ */
200
+ getTopCountries({ index, startDate, endDate, limit, offset, tags }: GetTopCountriesProps, requestOptions?: RequestOptions): Promise<GetTopCountriesResponse>;
201
+ /**
202
+ * Returns top filter attributes. Limited to the 1000 most used filters.
203
+ *
204
+ * @summary Get top filter attributes.
205
+ * @param getTopFilterAttributes - The getTopFilterAttributes object.
206
+ * @param getTopFilterAttributes.index - The index name to target.
207
+ * @param getTopFilterAttributes.search - The query term to search for. Must match the exact user input.
208
+ * @param getTopFilterAttributes.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
209
+ * @param getTopFilterAttributes.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
210
+ * @param getTopFilterAttributes.limit - Number of records to return. Limit is the size of the page.
211
+ * @param getTopFilterAttributes.offset - Position of the starting record. Used for paging. 0 is the first record.
212
+ * @param getTopFilterAttributes.tags - 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.
213
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
214
+ */
215
+ getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }: GetTopFilterAttributesProps, requestOptions?: RequestOptions): Promise<GetTopFilterAttributesResponse>;
216
+ /**
217
+ * Returns top filters for the given attribute. Limited to the 1000 most used filters.
218
+ *
219
+ * @summary Get top filters for the an attribute.
220
+ * @param getTopFilterForAttribute - The getTopFilterForAttribute object.
221
+ * @param getTopFilterForAttribute.attribute - The exact name of the attribute.
222
+ * @param getTopFilterForAttribute.index - The index name to target.
223
+ * @param getTopFilterForAttribute.search - The query term to search for. Must match the exact user input.
224
+ * @param getTopFilterForAttribute.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
225
+ * @param getTopFilterForAttribute.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
226
+ * @param getTopFilterForAttribute.limit - Number of records to return. Limit is the size of the page.
227
+ * @param getTopFilterForAttribute.offset - Position of the starting record. Used for paging. 0 is the first record.
228
+ * @param getTopFilterForAttribute.tags - 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.
229
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
230
+ */
231
+ getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }: GetTopFilterForAttributeProps, requestOptions?: RequestOptions): Promise<GetTopFilterForAttributeResponse>;
232
+ /**
233
+ * Returns top filters with no results. Limited to the 1000 most used filters.
234
+ *
235
+ * @summary Get top filters for a no result search.
236
+ * @param getTopFiltersNoResults - The getTopFiltersNoResults object.
237
+ * @param getTopFiltersNoResults.index - The index name to target.
238
+ * @param getTopFiltersNoResults.search - The query term to search for. Must match the exact user input.
239
+ * @param getTopFiltersNoResults.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
240
+ * @param getTopFiltersNoResults.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
241
+ * @param getTopFiltersNoResults.limit - Number of records to return. Limit is the size of the page.
242
+ * @param getTopFiltersNoResults.offset - Position of the starting record. Used for paging. 0 is the first record.
243
+ * @param getTopFiltersNoResults.tags - 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
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
245
+ */
246
+ getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }: GetTopFiltersNoResultsProps, requestOptions?: RequestOptions): Promise<GetTopFiltersNoResultsResponse>;
247
+ /**
248
+ * Returns top hits. Limited to the 1000 most frequent ones.
249
+ *
250
+ * @summary Get top hits.
251
+ * @param getTopHits - The getTopHits object.
252
+ * @param getTopHits.index - The index name to target.
253
+ * @param getTopHits.search - The query term to search for. Must match the exact user input.
254
+ * @param getTopHits.clickAnalytics - Whether to include the click-through and conversion rates for a search.
255
+ * @param getTopHits.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
256
+ * @param getTopHits.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
257
+ * @param getTopHits.limit - Number of records to return. Limit is the size of the page.
258
+ * @param getTopHits.offset - Position of the starting record. Used for paging. 0 is the first record.
259
+ * @param getTopHits.tags - 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.
260
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
261
+ */
262
+ getTopHits({ index, search, clickAnalytics, startDate, endDate, limit, offset, tags, }: GetTopHitsProps, requestOptions?: RequestOptions): Promise<GetTopHitsResponse>;
263
+ /**
264
+ * Returns top searches. Limited to the 1000 most frequent ones. For each search, also returns the average number of hits returned.
265
+ *
266
+ * @summary Get top searches.
267
+ * @param getTopSearches - The getTopSearches object.
268
+ * @param getTopSearches.index - The index name to target.
269
+ * @param getTopSearches.clickAnalytics - Whether to include the click-through and conversion rates for a search.
270
+ * @param getTopSearches.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
271
+ * @param getTopSearches.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
272
+ * @param getTopSearches.orderBy - Reorder the results.
273
+ * @param getTopSearches.direction - The sorting of the result.
274
+ * @param getTopSearches.limit - Number of records to return. Limit is the size of the page.
275
+ * @param getTopSearches.offset - Position of the starting record. Used for paging. 0 is the first record.
276
+ * @param getTopSearches.tags - 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.
277
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
278
+ */
279
+ getTopSearches({ index, clickAnalytics, startDate, endDate, orderBy, direction, limit, offset, tags, }: GetTopSearchesProps, requestOptions?: RequestOptions): Promise<GetTopSearchesResponse>;
280
+ /**
281
+ * Returns the distinct count of users across the given time range. The endpoint returns a value for the complete given time range, as well as a value per day.
282
+ *
283
+ * @summary Get users count.
284
+ * @param getUsersCount - The getUsersCount object.
285
+ * @param getUsersCount.index - The index name to target.
286
+ * @param getUsersCount.startDate - The lower bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
287
+ * @param getUsersCount.endDate - The upper bound timestamp (a date, a string like \"2006-01-02\") of the period to analyze.
288
+ * @param getUsersCount.tags - 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.
289
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
290
+ */
291
+ getUsersCount({ index, startDate, endDate, tags }: GetUsersCountProps, requestOptions?: RequestOptions): Promise<GetUsersCountResponse>;
292
+ /**
293
+ * This method allow you to send requests to the Algolia REST API.
294
+ *
295
+ * @summary Send requests to the Algolia REST API.
296
+ * @param post - The post object.
297
+ * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
298
+ * @param post.parameters - Query parameters to be applied to the current query.
299
+ * @param post.body - The parameters to send with the custom request.
300
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
301
+ */
302
+ post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
303
+ /**
304
+ * This method allow you to send requests to the Algolia REST API.
305
+ *
306
+ * @summary Send requests to the Algolia REST API.
307
+ * @param put - The put object.
308
+ * @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
309
+ * @param put.parameters - Query parameters to be applied to the current query.
310
+ * @param put.body - The parameters to send with the custom request.
311
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
312
+ */
313
+ put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
314
+ };
315
+ /**
316
+ * The client type.
317
+ */
318
+ export type AnalyticsClient = ReturnType<typeof createAnalyticsClient>;
319
319
  //# sourceMappingURL=analyticsClient.d.ts.map