@algolia/client-analytics 5.0.0-alpha.73 → 5.0.0-alpha.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client-analytics.cjs.js +114 -116
- package/dist/client-analytics.esm.browser.js +114 -114
- package/dist/client-analytics.esm.node.js +114 -114
- package/dist/client-analytics.umd.js +2 -2
- package/dist/model/averageClickEvent.d.ts +3 -3
- package/dist/model/clickPosition.d.ts +2 -2
- package/dist/model/clickThroughRateEvent.d.ts +4 -4
- package/dist/model/clientMethodProps.d.ts +91 -91
- package/dist/model/conversionRateEvent.d.ts +4 -4
- package/dist/model/getAverageClickPositionResponse.d.ts +3 -3
- package/dist/model/getClickPositionsResponse.d.ts +1 -1
- package/dist/model/getClickThroughRateResponse.d.ts +4 -4
- package/dist/model/getConversationRateResponse.d.ts +4 -4
- package/dist/model/getNoClickRateResponse.d.ts +4 -4
- package/dist/model/getNoResultsRateResponse.d.ts +4 -4
- package/dist/model/getSearchesCountResponse.d.ts +2 -2
- package/dist/model/getSearchesNoClicksResponse.d.ts +1 -1
- package/dist/model/getSearchesNoResultsResponse.d.ts +1 -1
- package/dist/model/getStatusResponse.d.ts +1 -1
- package/dist/model/getTopCountriesResponse.d.ts +1 -1
- package/dist/model/getTopFilterAttribute.d.ts +2 -2
- package/dist/model/getTopFilterAttributesResponse.d.ts +1 -1
- package/dist/model/getTopFilterForAttribute.d.ts +4 -4
- package/dist/model/getTopFilterForAttributeResponse.d.ts +1 -1
- package/dist/model/getTopFiltersNoResultsResponse.d.ts +1 -1
- package/dist/model/getTopFiltersNoResultsValue.d.ts +3 -3
- package/dist/model/getTopFiltersNoResultsValues.d.ts +2 -2
- package/dist/model/getUsersCountResponse.d.ts +2 -2
- package/dist/model/noClickRateEvent.d.ts +4 -4
- package/dist/model/noResultsRateEvent.d.ts +4 -4
- package/dist/model/orderBy.d.ts +3 -0
- package/dist/model/orderBy.d.ts.map +1 -1
- package/dist/model/searchEvent.d.ts +2 -2
- package/dist/model/searchNoClickEvent.d.ts +3 -3
- package/dist/model/searchNoResultEvent.d.ts +3 -3
- package/dist/model/topCountry.d.ts +2 -2
- package/dist/model/topHit.d.ts +2 -2
- package/dist/model/topHitWithAnalytics.d.ts +7 -7
- package/dist/model/topHitsResponse.d.ts +1 -1
- package/dist/model/topHitsResponseWithAnalytics.d.ts +1 -1
- package/dist/model/topSearch.d.ts +3 -3
- package/dist/model/topSearchWithAnalytics.d.ts +9 -9
- package/dist/model/topSearchesResponse.d.ts +1 -1
- package/dist/model/topSearchesResponseWithAnalytics.d.ts +1 -1
- package/dist/model/userWithDate.d.ts +2 -2
- package/dist/src/analyticsClient.d.ts +114 -114
- package/model/averageClickEvent.ts +3 -3
- package/model/clickPosition.ts +2 -2
- package/model/clickThroughRateEvent.ts +4 -4
- package/model/clientMethodProps.ts +91 -91
- package/model/conversionRateEvent.ts +4 -4
- package/model/getAverageClickPositionResponse.ts +3 -3
- package/model/getClickPositionsResponse.ts +1 -1
- package/model/getClickThroughRateResponse.ts +4 -4
- package/model/getConversationRateResponse.ts +4 -4
- package/model/getNoClickRateResponse.ts +4 -4
- package/model/getNoResultsRateResponse.ts +4 -4
- package/model/getSearchesCountResponse.ts +2 -2
- package/model/getSearchesNoClicksResponse.ts +1 -1
- package/model/getSearchesNoResultsResponse.ts +1 -1
- package/model/getStatusResponse.ts +1 -1
- package/model/getTopCountriesResponse.ts +1 -1
- package/model/getTopFilterAttribute.ts +2 -2
- package/model/getTopFilterAttributesResponse.ts +1 -1
- package/model/getTopFilterForAttribute.ts +4 -4
- package/model/getTopFilterForAttributeResponse.ts +1 -1
- package/model/getTopFiltersNoResultsResponse.ts +1 -1
- package/model/getTopFiltersNoResultsValue.ts +3 -3
- package/model/getTopFiltersNoResultsValues.ts +2 -2
- package/model/getUsersCountResponse.ts +2 -2
- package/model/noClickRateEvent.ts +4 -4
- package/model/noResultsRateEvent.ts +4 -4
- package/model/orderBy.ts +3 -0
- package/model/searchEvent.ts +2 -2
- package/model/searchNoClickEvent.ts +3 -3
- package/model/searchNoResultEvent.ts +3 -3
- package/model/topCountry.ts +2 -2
- package/model/topHit.ts +2 -2
- package/model/topHitWithAnalytics.ts +7 -7
- package/model/topHitsResponse.ts +1 -1
- package/model/topHitsResponseWithAnalytics.ts +1 -1
- package/model/topSearch.ts +3 -3
- package/model/topSearchWithAnalytics.ts +9 -9
- package/model/topSearchesResponse.ts +1 -1
- package/model/topSearchesResponseWithAnalytics.ts +1 -1
- package/model/userWithDate.ts +2 -2
- package/package.json +8 -7
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { AverageClickEvent } from './averageClickEvent';
|
|
2
2
|
export type GetAverageClickPositionResponse = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Average count of all click events.
|
|
5
5
|
*/
|
|
6
6
|
average: number;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Number of click events.
|
|
9
9
|
*/
|
|
10
10
|
clickCount: number;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Average click positions.
|
|
13
13
|
*/
|
|
14
14
|
dates: AverageClickEvent[];
|
|
15
15
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { ClickThroughRateEvent } from './clickThroughRateEvent';
|
|
2
2
|
export type GetClickThroughRateResponse = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
5
5
|
*/
|
|
6
6
|
rate: number;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Number of click events.
|
|
9
9
|
*/
|
|
10
10
|
clickCount: number;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
|
|
13
13
|
*/
|
|
14
14
|
trackedSearchCount: number;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Click-through rate events.
|
|
17
17
|
*/
|
|
18
18
|
dates: ClickThroughRateEvent[];
|
|
19
19
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { ConversionRateEvent } from './conversionRateEvent';
|
|
2
2
|
export type GetConversationRateResponse = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
5
5
|
*/
|
|
6
6
|
rate: number;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
|
|
9
9
|
*/
|
|
10
10
|
trackedSearchCount: number;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Number of converted clicks.
|
|
13
13
|
*/
|
|
14
14
|
conversionCount: number;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Conversion events.
|
|
17
17
|
*/
|
|
18
18
|
dates: ConversionRateEvent[];
|
|
19
19
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { NoClickRateEvent } from './noClickRateEvent';
|
|
2
2
|
export type GetNoClickRateResponse = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
5
5
|
*/
|
|
6
6
|
rate: number;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Number of click events.
|
|
9
9
|
*/
|
|
10
10
|
count: number;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Number of click events.
|
|
13
13
|
*/
|
|
14
14
|
noClickCount: number;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Overall count of searches without clicks plus a daily breakdown.
|
|
17
17
|
*/
|
|
18
18
|
dates: NoClickRateEvent[];
|
|
19
19
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { NoResultsRateEvent } from './noResultsRateEvent';
|
|
2
2
|
export type GetNoResultsRateResponse = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
5
5
|
*/
|
|
6
6
|
rate: number;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Number of occurrences.
|
|
9
9
|
*/
|
|
10
10
|
count: number;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Number of occurrences.
|
|
13
13
|
*/
|
|
14
14
|
noResultCount: number;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Overall count of searches without results plus a daily breakdown.
|
|
17
17
|
*/
|
|
18
18
|
dates: NoResultsRateEvent[];
|
|
19
19
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { SearchEvent } from './searchEvent';
|
|
2
2
|
export type GetSearchesCountResponse = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Number of occurrences.
|
|
5
5
|
*/
|
|
6
6
|
count: number;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Search events with their associated dates and hit counts.
|
|
9
9
|
*/
|
|
10
10
|
dates: SearchEvent[];
|
|
11
11
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export type GetTopFilterForAttribute = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Attribute name.
|
|
4
4
|
*/
|
|
5
5
|
attribute: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Operator.
|
|
8
8
|
*/
|
|
9
9
|
operator: string;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Attribute value.
|
|
12
12
|
*/
|
|
13
13
|
value: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Number of occurrences.
|
|
16
16
|
*/
|
|
17
17
|
count: number;
|
|
18
18
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export type GetTopFiltersNoResultsValue = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Attribute name.
|
|
4
4
|
*/
|
|
5
5
|
attribute: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Operator.
|
|
8
8
|
*/
|
|
9
9
|
operator: string;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Attribute value.
|
|
12
12
|
*/
|
|
13
13
|
value: string;
|
|
14
14
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { GetTopFiltersNoResultsValue } from './getTopFiltersNoResultsValue';
|
|
2
2
|
export type GetTopFiltersNoResultsValues = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Number of occurrences.
|
|
5
5
|
*/
|
|
6
6
|
count: number;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Filters with no results.
|
|
9
9
|
*/
|
|
10
10
|
values: GetTopFiltersNoResultsValue[];
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { UserWithDate } from './userWithDate';
|
|
2
2
|
export type GetUsersCountResponse = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Number of occurrences.
|
|
5
5
|
*/
|
|
6
6
|
count: number;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* User count.
|
|
9
9
|
*/
|
|
10
10
|
dates: UserWithDate[];
|
|
11
11
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export type NoClickRateEvent = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
4
4
|
*/
|
|
5
5
|
rate: number;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Number of tracked _and_ untracked searches (where the `clickAnalytics` parameter isn\'t `true`).
|
|
8
8
|
*/
|
|
9
9
|
count: number;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Number of click events.
|
|
12
12
|
*/
|
|
13
13
|
noClickCount: number;
|
|
14
14
|
/**
|
|
15
|
-
* Date of the event.
|
|
15
|
+
* Date of the event in the format YYYY-MM-DD.
|
|
16
16
|
*/
|
|
17
17
|
date: string;
|
|
18
18
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export type NoResultsRateEvent = {
|
|
2
2
|
/**
|
|
3
|
-
* Date of the event.
|
|
3
|
+
* Date of the event in the format YYYY-MM-DD.
|
|
4
4
|
*/
|
|
5
5
|
date: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Number of occurences.
|
|
8
8
|
*/
|
|
9
9
|
noResultCount: number;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Number of tracked _and_ untracked searches (where the `clickAnalytics` parameter isn\'t `true`).
|
|
12
12
|
*/
|
|
13
13
|
count: number;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
16
16
|
*/
|
|
17
17
|
rate: number;
|
|
18
18
|
};
|
package/dist/model/orderBy.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Method for ordering results. `clickThroughRate`, `conversionRate` and `averageClickPosition` are only available if the `clickAnalytics` parameter is `true`.
|
|
3
|
+
*/
|
|
1
4
|
export type OrderBy = 'averageClickPosition' | 'clickThroughRate' | 'conversionRate' | 'searchCount';
|
|
2
5
|
//# sourceMappingURL=orderBy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orderBy.d.ts","sourceRoot":"","sources":["../../model/orderBy.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,GACf,sBAAsB,GACtB,kBAAkB,GAClB,gBAAgB,GAChB,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"orderBy.d.ts","sourceRoot":"","sources":["../../model/orderBy.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,OAAO,GACf,sBAAsB,GACtB,kBAAkB,GAClB,gBAAgB,GAChB,aAAa,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export type SearchNoClickEvent = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* User query.
|
|
4
4
|
*/
|
|
5
5
|
search: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Number of occurrences.
|
|
8
8
|
*/
|
|
9
9
|
count: number;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Number of occurrences.
|
|
12
12
|
*/
|
|
13
13
|
withFilterCount: number;
|
|
14
14
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export type SearchNoResultEvent = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* User query.
|
|
4
4
|
*/
|
|
5
5
|
search: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Number of occurrences.
|
|
8
8
|
*/
|
|
9
9
|
count: number;
|
|
10
10
|
/**
|
|
11
|
-
* Number of hits
|
|
11
|
+
* Number of hits the search query matched.
|
|
12
12
|
*/
|
|
13
13
|
nbHits: number;
|
|
14
14
|
};
|
package/dist/model/topHit.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
export type TopHitWithAnalytics = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Hit.
|
|
4
4
|
*/
|
|
5
5
|
hit: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Number of occurrences.
|
|
8
8
|
*/
|
|
9
9
|
count: number;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
12
12
|
*/
|
|
13
13
|
clickThroughRate: number;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* [Conversion rate (CR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
|
|
16
16
|
*/
|
|
17
17
|
conversionRate: number;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
|
|
20
20
|
*/
|
|
21
21
|
trackedSearchCount: number;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Number of click events.
|
|
24
24
|
*/
|
|
25
25
|
clickCount: number;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Number of converted clicks.
|
|
28
28
|
*/
|
|
29
29
|
conversionCount: number;
|
|
30
30
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export type TopSearch = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* User query.
|
|
4
4
|
*/
|
|
5
5
|
search: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Number of tracked _and_ untracked searches (where the `clickAnalytics` parameter isn\'t `true`).
|
|
8
8
|
*/
|
|
9
9
|
count: number;
|
|
10
10
|
/**
|
|
11
|
-
* Number of hits
|
|
11
|
+
* Number of hits the search query matched.
|
|
12
12
|
*/
|
|
13
13
|
nbHits: number;
|
|
14
14
|
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
export type TopSearchWithAnalytics = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* User query.
|
|
4
4
|
*/
|
|
5
5
|
search: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Number of tracked _and_ untracked searches (where the `clickAnalytics` parameter isn\'t `true`).
|
|
8
8
|
*/
|
|
9
9
|
count: number;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
|
12
12
|
*/
|
|
13
13
|
clickThroughRate: number;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Average [position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position) of clicked search result.
|
|
16
16
|
*/
|
|
17
17
|
averageClickPosition: number;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* [Conversion rate (CR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
|
|
20
20
|
*/
|
|
21
21
|
conversionRate: number;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
|
|
24
24
|
*/
|
|
25
25
|
trackedSearchCount: number;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Number of click events.
|
|
28
28
|
*/
|
|
29
29
|
clickCount: number;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Number of converted clicks.
|
|
32
32
|
*/
|
|
33
33
|
conversionCount: number;
|
|
34
34
|
/**
|
|
35
|
-
* Number of hits
|
|
35
|
+
* Number of hits the search query matched.
|
|
36
36
|
*/
|
|
37
37
|
nbHits: number;
|
|
38
38
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TopSearchWithAnalytics } from './topSearchWithAnalytics';
|
|
2
2
|
export type TopSearchesResponseWithAnalytics = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Top searches with their hits count and analytics.
|
|
5
5
|
*/
|
|
6
6
|
searches: TopSearchWithAnalytics[];
|
|
7
7
|
};
|