@algolia/client-analytics 4.14.2 → 5.0.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builds/browser.d.ts +6 -0
- package/dist/builds/browser.d.ts.map +1 -0
- package/dist/builds/node.d.ts +6 -0
- package/dist/builds/node.d.ts.map +1 -0
- package/dist/client-analytics.cjs.js +920 -65
- package/dist/client-analytics.esm.browser.js +1646 -0
- package/dist/client-analytics.esm.node.js +930 -0
- package/dist/client-analytics.umd.js +2 -0
- package/dist/model/averageClickEvent.d.ts +15 -0
- package/dist/model/averageClickEvent.d.ts.map +1 -0
- package/dist/model/clickPosition.d.ts +11 -0
- package/dist/model/clickPosition.d.ts.map +1 -0
- package/dist/model/clickThroughRateEvent.d.ts +19 -0
- package/dist/model/clickThroughRateEvent.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +508 -0
- package/dist/model/clientMethodProps.d.ts.map +1 -0
- package/dist/model/conversionRateEvent.d.ts +19 -0
- package/dist/model/conversionRateEvent.d.ts.map +1 -0
- package/dist/model/direction.d.ts +2 -0
- package/dist/model/direction.d.ts.map +1 -0
- package/dist/model/errorBase.d.ts +7 -0
- package/dist/model/errorBase.d.ts.map +1 -0
- package/dist/model/getAverageClickPositionResponse.d.ts +16 -0
- package/dist/model/getAverageClickPositionResponse.d.ts.map +1 -0
- package/dist/model/getClickPositionsResponse.d.ts +8 -0
- package/dist/model/getClickPositionsResponse.d.ts.map +1 -0
- package/dist/model/getClickThroughRateResponse.d.ts +20 -0
- package/dist/model/getClickThroughRateResponse.d.ts.map +1 -0
- package/dist/model/getConversationRateResponse.d.ts +20 -0
- package/dist/model/getConversationRateResponse.d.ts.map +1 -0
- package/dist/model/getNoClickRateResponse.d.ts +20 -0
- package/dist/model/getNoClickRateResponse.d.ts.map +1 -0
- package/dist/model/getNoResultsRateResponse.d.ts +20 -0
- package/dist/model/getNoResultsRateResponse.d.ts.map +1 -0
- package/dist/model/getSearchesCountResponse.d.ts +12 -0
- package/dist/model/getSearchesCountResponse.d.ts.map +1 -0
- package/dist/model/getSearchesNoClicksResponse.d.ts +8 -0
- package/dist/model/getSearchesNoClicksResponse.d.ts.map +1 -0
- package/dist/model/getSearchesNoResultsResponse.d.ts +8 -0
- package/dist/model/getSearchesNoResultsResponse.d.ts.map +1 -0
- package/dist/model/getStatusResponse.d.ts +7 -0
- package/dist/model/getStatusResponse.d.ts.map +1 -0
- package/dist/model/getTopCountriesResponse.d.ts +8 -0
- package/dist/model/getTopCountriesResponse.d.ts.map +1 -0
- package/dist/model/getTopFilterAttribute.d.ts +11 -0
- package/dist/model/getTopFilterAttribute.d.ts.map +1 -0
- package/dist/model/getTopFilterAttributesResponse.d.ts +8 -0
- package/dist/model/getTopFilterAttributesResponse.d.ts.map +1 -0
- package/dist/model/getTopFilterForAttribute.d.ts +19 -0
- package/dist/model/getTopFilterForAttribute.d.ts.map +1 -0
- package/dist/model/getTopFilterForAttributeResponse.d.ts +8 -0
- package/dist/model/getTopFilterForAttributeResponse.d.ts.map +1 -0
- package/dist/model/getTopFiltersNoResultsResponse.d.ts +8 -0
- package/dist/model/getTopFiltersNoResultsResponse.d.ts.map +1 -0
- package/dist/model/getTopFiltersNoResultsValue.d.ts +15 -0
- package/dist/model/getTopFiltersNoResultsValue.d.ts.map +1 -0
- package/dist/model/getTopFiltersNoResultsValues.d.ts +12 -0
- package/dist/model/getTopFiltersNoResultsValues.d.ts.map +1 -0
- package/dist/model/getTopHitsResponse.d.ts +4 -0
- package/dist/model/getTopHitsResponse.d.ts.map +1 -0
- package/dist/model/getTopSearchesResponse.d.ts +4 -0
- package/dist/model/getTopSearchesResponse.d.ts.map +1 -0
- package/dist/model/getUsersCountResponse.d.ts +12 -0
- package/dist/model/getUsersCountResponse.d.ts.map +1 -0
- package/dist/model/index.d.ts +45 -0
- package/dist/model/index.d.ts.map +1 -0
- package/dist/model/noClickRateEvent.d.ts +19 -0
- package/dist/model/noClickRateEvent.d.ts.map +1 -0
- package/dist/model/noResultsRateEvent.d.ts +19 -0
- package/dist/model/noResultsRateEvent.d.ts.map +1 -0
- package/dist/model/orderBy.d.ts +2 -0
- package/dist/model/orderBy.d.ts.map +1 -0
- package/dist/model/searchEvent.d.ts +11 -0
- package/dist/model/searchEvent.d.ts.map +1 -0
- package/dist/model/searchNoClickEvent.d.ts +15 -0
- package/dist/model/searchNoClickEvent.d.ts.map +1 -0
- package/dist/model/searchNoResultEvent.d.ts +15 -0
- package/dist/model/searchNoResultEvent.d.ts.map +1 -0
- package/dist/model/topCountry.d.ts +11 -0
- package/dist/model/topCountry.d.ts.map +1 -0
- package/dist/model/topHit.d.ts +11 -0
- package/dist/model/topHit.d.ts.map +1 -0
- package/dist/model/topHitWithAnalytics.d.ts +31 -0
- package/dist/model/topHitWithAnalytics.d.ts.map +1 -0
- package/dist/model/topHitsResponse.d.ts +8 -0
- package/dist/model/topHitsResponse.d.ts.map +1 -0
- package/dist/model/topHitsResponseWithAnalytics.d.ts +8 -0
- package/dist/model/topHitsResponseWithAnalytics.d.ts.map +1 -0
- package/dist/model/topSearch.d.ts +15 -0
- package/dist/model/topSearch.d.ts.map +1 -0
- package/dist/model/topSearchWithAnalytics.d.ts +39 -0
- package/dist/model/topSearchWithAnalytics.d.ts.map +1 -0
- package/dist/model/topSearchesResponse.d.ts +8 -0
- package/dist/model/topSearchesResponse.d.ts.map +1 -0
- package/dist/model/topSearchesResponseWithAnalytics.d.ts +8 -0
- package/dist/model/topSearchesResponseWithAnalytics.d.ts.map +1 -0
- package/dist/model/userWithDate.d.ts +11 -0
- package/dist/model/userWithDate.d.ts.map +1 -0
- package/dist/src/analyticsClient.d.ts +319 -0
- package/dist/src/analyticsClient.d.ts.map +1 -0
- package/index.d.ts +2 -0
- package/index.js +1 -1
- package/model/averageClickEvent.ts +18 -0
- package/model/clickPosition.ts +13 -0
- package/model/clickThroughRateEvent.ts +23 -0
- package/model/clientMethodProps.ts +530 -0
- package/model/conversionRateEvent.ts +23 -0
- package/model/direction.ts +3 -0
- package/model/errorBase.ts +8 -0
- package/model/getAverageClickPositionResponse.ts +20 -0
- package/model/getClickPositionsResponse.ts +10 -0
- package/model/getClickThroughRateResponse.ts +25 -0
- package/model/getConversationRateResponse.ts +25 -0
- package/model/getNoClickRateResponse.ts +25 -0
- package/model/getNoResultsRateResponse.ts +25 -0
- package/model/getSearchesCountResponse.ts +15 -0
- package/model/getSearchesNoClicksResponse.ts +10 -0
- package/model/getSearchesNoResultsResponse.ts +10 -0
- package/model/getStatusResponse.ts +8 -0
- package/model/getTopCountriesResponse.ts +10 -0
- package/model/getTopFilterAttribute.ts +13 -0
- package/model/getTopFilterAttributesResponse.ts +10 -0
- package/model/getTopFilterForAttribute.ts +23 -0
- package/model/getTopFilterForAttributeResponse.ts +10 -0
- package/model/getTopFiltersNoResultsResponse.ts +10 -0
- package/model/getTopFiltersNoResultsValue.ts +18 -0
- package/model/getTopFiltersNoResultsValues.ts +15 -0
- package/model/getTopHitsResponse.ts +6 -0
- package/model/getTopSearchesResponse.ts +8 -0
- package/model/getUsersCountResponse.ts +15 -0
- package/model/index.ts +46 -0
- package/model/noClickRateEvent.ts +23 -0
- package/model/noResultsRateEvent.ts +23 -0
- package/model/orderBy.ts +7 -0
- package/model/searchEvent.ts +13 -0
- package/model/searchNoClickEvent.ts +18 -0
- package/model/searchNoResultEvent.ts +18 -0
- package/model/topCountry.ts +13 -0
- package/model/topHit.ts +13 -0
- package/model/topHitWithAnalytics.ts +38 -0
- package/model/topHitsResponse.ts +10 -0
- package/model/topHitsResponseWithAnalytics.ts +10 -0
- package/model/topSearch.ts +18 -0
- package/model/topSearchWithAnalytics.ts +48 -0
- package/model/topSearchesResponse.ts +10 -0
- package/model/topSearchesResponseWithAnalytics.ts +10 -0
- package/model/userWithDate.ts +13 -0
- package/package.json +44 -15
- package/dist/client-analytics.d.ts +0 -233
- package/dist/client-analytics.esm.js +0 -71
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { SearchEvent } from './searchEvent';
|
|
4
|
+
|
|
5
|
+
export type GetSearchesCountResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* The number of occurrences.
|
|
8
|
+
*/
|
|
9
|
+
count: number;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A list of search events with their date and count.
|
|
13
|
+
*/
|
|
14
|
+
dates: SearchEvent[];
|
|
15
|
+
};
|
|
@@ -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 { SearchNoClickEvent } from './searchNoClickEvent';
|
|
4
|
+
|
|
5
|
+
export type GetSearchesNoClicksResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* A list of searches with no clicks and their count.
|
|
8
|
+
*/
|
|
9
|
+
searches: SearchNoClickEvent[];
|
|
10
|
+
};
|
|
@@ -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 { SearchNoResultEvent } from './searchNoResultEvent';
|
|
4
|
+
|
|
5
|
+
export type GetSearchesNoResultsResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* A list of searches with no results and their count.
|
|
8
|
+
*/
|
|
9
|
+
searches: SearchNoResultEvent[];
|
|
10
|
+
};
|
|
@@ -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 { TopCountry } from './topCountry';
|
|
4
|
+
|
|
5
|
+
export type GetTopCountriesResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* A list of countries with their count.
|
|
8
|
+
*/
|
|
9
|
+
countries: TopCountry[];
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type GetTopFilterAttribute = {
|
|
4
|
+
/**
|
|
5
|
+
* The attribute.
|
|
6
|
+
*/
|
|
7
|
+
attribute: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The number of occurrences.
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
};
|
|
@@ -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 { GetTopFilterAttribute } from './getTopFilterAttribute';
|
|
4
|
+
|
|
5
|
+
export type GetTopFilterAttributesResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* A list of attributes with their count.
|
|
8
|
+
*/
|
|
9
|
+
attributes: GetTopFilterAttribute[];
|
|
10
|
+
};
|
|
@@ -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 GetTopFilterForAttribute = {
|
|
4
|
+
/**
|
|
5
|
+
* The attribute.
|
|
6
|
+
*/
|
|
7
|
+
attribute: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The operator.
|
|
11
|
+
*/
|
|
12
|
+
operator: string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The value of the attribute.
|
|
16
|
+
*/
|
|
17
|
+
value: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The number of occurrences.
|
|
21
|
+
*/
|
|
22
|
+
count: number;
|
|
23
|
+
};
|
|
@@ -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 { GetTopFilterForAttribute } from './getTopFilterForAttribute';
|
|
4
|
+
|
|
5
|
+
export type GetTopFilterForAttributeResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* A list of filters for the given attributes.
|
|
8
|
+
*/
|
|
9
|
+
values: GetTopFilterForAttribute[];
|
|
10
|
+
};
|
|
@@ -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 { GetTopFiltersNoResultsValues } from './getTopFiltersNoResultsValues';
|
|
4
|
+
|
|
5
|
+
export type GetTopFiltersNoResultsResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* A list of filters without results.
|
|
8
|
+
*/
|
|
9
|
+
values: GetTopFiltersNoResultsValues[];
|
|
10
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type GetTopFiltersNoResultsValue = {
|
|
4
|
+
/**
|
|
5
|
+
* The attribute.
|
|
6
|
+
*/
|
|
7
|
+
attribute: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The operator.
|
|
11
|
+
*/
|
|
12
|
+
operator: string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The value of the attribute.
|
|
16
|
+
*/
|
|
17
|
+
value: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { GetTopFiltersNoResultsValue } from './getTopFiltersNoResultsValue';
|
|
4
|
+
|
|
5
|
+
export type GetTopFiltersNoResultsValues = {
|
|
6
|
+
/**
|
|
7
|
+
* The number of occurrences.
|
|
8
|
+
*/
|
|
9
|
+
count: number;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A list of filters without results.
|
|
13
|
+
*/
|
|
14
|
+
values: GetTopFiltersNoResultsValue[];
|
|
15
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { TopHitsResponse } from './topHitsResponse';
|
|
4
|
+
import type { TopHitsResponseWithAnalytics } from './topHitsResponseWithAnalytics';
|
|
5
|
+
|
|
6
|
+
export type GetTopHitsResponse = TopHitsResponse | TopHitsResponseWithAnalytics;
|
|
@@ -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
|
+
import type { TopSearchesResponse } from './topSearchesResponse';
|
|
4
|
+
import type { TopSearchesResponseWithAnalytics } from './topSearchesResponseWithAnalytics';
|
|
5
|
+
|
|
6
|
+
export type GetTopSearchesResponse =
|
|
7
|
+
| TopSearchesResponse
|
|
8
|
+
| TopSearchesResponseWithAnalytics;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { UserWithDate } from './userWithDate';
|
|
4
|
+
|
|
5
|
+
export type GetUsersCountResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* The number of occurrences.
|
|
8
|
+
*/
|
|
9
|
+
count: number;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A list of users count with their date.
|
|
13
|
+
*/
|
|
14
|
+
dates: UserWithDate[];
|
|
15
|
+
};
|
package/model/index.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export * from './averageClickEvent';
|
|
4
|
+
export * from './clickPosition';
|
|
5
|
+
export * from './clickThroughRateEvent';
|
|
6
|
+
export * from './conversionRateEvent';
|
|
7
|
+
export * from './direction';
|
|
8
|
+
export * from './errorBase';
|
|
9
|
+
export * from './getAverageClickPositionResponse';
|
|
10
|
+
export * from './getClickPositionsResponse';
|
|
11
|
+
export * from './getClickThroughRateResponse';
|
|
12
|
+
export * from './getConversationRateResponse';
|
|
13
|
+
export * from './getNoClickRateResponse';
|
|
14
|
+
export * from './getNoResultsRateResponse';
|
|
15
|
+
export * from './getSearchesCountResponse';
|
|
16
|
+
export * from './getSearchesNoClicksResponse';
|
|
17
|
+
export * from './getSearchesNoResultsResponse';
|
|
18
|
+
export * from './getStatusResponse';
|
|
19
|
+
export * from './getTopCountriesResponse';
|
|
20
|
+
export * from './getTopFilterAttribute';
|
|
21
|
+
export * from './getTopFilterAttributesResponse';
|
|
22
|
+
export * from './getTopFilterForAttribute';
|
|
23
|
+
export * from './getTopFilterForAttributeResponse';
|
|
24
|
+
export * from './getTopFiltersNoResultsResponse';
|
|
25
|
+
export * from './getTopFiltersNoResultsValue';
|
|
26
|
+
export * from './getTopFiltersNoResultsValues';
|
|
27
|
+
export * from './getTopHitsResponse';
|
|
28
|
+
export * from './getTopSearchesResponse';
|
|
29
|
+
export * from './getUsersCountResponse';
|
|
30
|
+
export * from './noClickRateEvent';
|
|
31
|
+
export * from './noResultsRateEvent';
|
|
32
|
+
export * from './orderBy';
|
|
33
|
+
export * from './searchEvent';
|
|
34
|
+
export * from './searchNoClickEvent';
|
|
35
|
+
export * from './searchNoResultEvent';
|
|
36
|
+
export * from './topCountry';
|
|
37
|
+
export * from './topHit';
|
|
38
|
+
export * from './topHitWithAnalytics';
|
|
39
|
+
export * from './topHitsResponse';
|
|
40
|
+
export * from './topHitsResponseWithAnalytics';
|
|
41
|
+
export * from './topSearch';
|
|
42
|
+
export * from './topSearchWithAnalytics';
|
|
43
|
+
export * from './topSearchesResponse';
|
|
44
|
+
export * from './topSearchesResponseWithAnalytics';
|
|
45
|
+
export * from './userWithDate';
|
|
46
|
+
export * from './clientMethodProps';
|
|
@@ -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 NoClickRateEvent = {
|
|
4
|
+
/**
|
|
5
|
+
* The click-through rate.
|
|
6
|
+
*/
|
|
7
|
+
rate: number;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The number of click event.
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The number of click event.
|
|
16
|
+
*/
|
|
17
|
+
noClickCount: number;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Date of the event.
|
|
21
|
+
*/
|
|
22
|
+
date: string;
|
|
23
|
+
};
|
|
@@ -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 NoResultsRateEvent = {
|
|
4
|
+
/**
|
|
5
|
+
* Date of the event.
|
|
6
|
+
*/
|
|
7
|
+
date: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The number of occurrences.
|
|
11
|
+
*/
|
|
12
|
+
noResultCount: number;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The number of occurrences.
|
|
16
|
+
*/
|
|
17
|
+
count: number;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The click-through rate.
|
|
21
|
+
*/
|
|
22
|
+
rate: number;
|
|
23
|
+
};
|
package/model/orderBy.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type SearchEvent = {
|
|
4
|
+
/**
|
|
5
|
+
* Date of the event.
|
|
6
|
+
*/
|
|
7
|
+
date: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The number of occurrences.
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type SearchNoClickEvent = {
|
|
4
|
+
/**
|
|
5
|
+
* The search query.
|
|
6
|
+
*/
|
|
7
|
+
search: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The number of occurrences.
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The number of occurrences.
|
|
16
|
+
*/
|
|
17
|
+
withFilterCount: number;
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type SearchNoResultEvent = {
|
|
4
|
+
/**
|
|
5
|
+
* The search query.
|
|
6
|
+
*/
|
|
7
|
+
search: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The number of occurrences.
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Number of hits that the search query matched.
|
|
16
|
+
*/
|
|
17
|
+
nbHits: number;
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type TopCountry = {
|
|
4
|
+
/**
|
|
5
|
+
* The country.
|
|
6
|
+
*/
|
|
7
|
+
country: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The number of occurrences.
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
};
|
package/model/topHit.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type TopHit = {
|
|
4
|
+
/**
|
|
5
|
+
* The hit.
|
|
6
|
+
*/
|
|
7
|
+
hit: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The number of occurrences.
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type TopHitWithAnalytics = {
|
|
4
|
+
/**
|
|
5
|
+
* The hit.
|
|
6
|
+
*/
|
|
7
|
+
hit: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The number of occurrences.
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The click-through rate.
|
|
16
|
+
*/
|
|
17
|
+
clickThroughRate: number;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The conversion rate.
|
|
21
|
+
*/
|
|
22
|
+
conversionRate: number;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The number of tracked search click.
|
|
26
|
+
*/
|
|
27
|
+
trackedSearchCount: number;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The number of click event.
|
|
31
|
+
*/
|
|
32
|
+
clickCount: number;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The number of converted clicks.
|
|
36
|
+
*/
|
|
37
|
+
conversionCount: number;
|
|
38
|
+
};
|
|
@@ -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 { TopHit } from './topHit';
|
|
4
|
+
|
|
5
|
+
export type TopHitsResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* A list of top hits with their count.
|
|
8
|
+
*/
|
|
9
|
+
hits: TopHit[];
|
|
10
|
+
};
|
|
@@ -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 { TopHitWithAnalytics } from './topHitWithAnalytics';
|
|
4
|
+
|
|
5
|
+
export type TopHitsResponseWithAnalytics = {
|
|
6
|
+
/**
|
|
7
|
+
* A list of top hits with their count and analytics.
|
|
8
|
+
*/
|
|
9
|
+
hits: TopHitWithAnalytics[];
|
|
10
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type TopSearch = {
|
|
4
|
+
/**
|
|
5
|
+
* The search query.
|
|
6
|
+
*/
|
|
7
|
+
search: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The number of occurrences.
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Number of hits that the search query matched.
|
|
16
|
+
*/
|
|
17
|
+
nbHits: number;
|
|
18
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type TopSearchWithAnalytics = {
|
|
4
|
+
/**
|
|
5
|
+
* The search query.
|
|
6
|
+
*/
|
|
7
|
+
search: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The number of occurrences.
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The click-through rate.
|
|
16
|
+
*/
|
|
17
|
+
clickThroughRate: number;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The average position of all the click count event.
|
|
21
|
+
*/
|
|
22
|
+
averageClickPosition: number;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The conversion rate.
|
|
26
|
+
*/
|
|
27
|
+
conversionRate: number;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The number of tracked search click.
|
|
31
|
+
*/
|
|
32
|
+
trackedSearchCount: number;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The number of click event.
|
|
36
|
+
*/
|
|
37
|
+
clickCount: number;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The number of converted clicks.
|
|
41
|
+
*/
|
|
42
|
+
conversionCount: number;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Number of hits that the search query matched.
|
|
46
|
+
*/
|
|
47
|
+
nbHits: number;
|
|
48
|
+
};
|
|
@@ -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 { TopSearch } from './topSearch';
|
|
4
|
+
|
|
5
|
+
export type TopSearchesResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* A list of top searches with their count.
|
|
8
|
+
*/
|
|
9
|
+
searches: TopSearch[];
|
|
10
|
+
};
|
|
@@ -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 { TopSearchWithAnalytics } from './topSearchWithAnalytics';
|
|
4
|
+
|
|
5
|
+
export type TopSearchesResponseWithAnalytics = {
|
|
6
|
+
/**
|
|
7
|
+
* A list of top searches with their count and analytics.
|
|
8
|
+
*/
|
|
9
|
+
searches: TopSearchWithAnalytics[];
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type UserWithDate = {
|
|
4
|
+
/**
|
|
5
|
+
* Date of the event.
|
|
6
|
+
*/
|
|
7
|
+
date: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The number of occurrences.
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,24 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/client-analytics",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"repository":
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git://github.com/algolia/algoliasearch-client-javascript.git"
|
|
8
|
-
},
|
|
3
|
+
"version": "5.0.0-alpha.11",
|
|
4
|
+
"description": "JavaScript client for client-analytics",
|
|
5
|
+
"repository": "algolia/algoliasearch-client-javascript",
|
|
9
6
|
"license": "MIT",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
"author": "Algolia",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"node": {
|
|
11
|
+
"import": "./dist/client-analytics.esm.node.js",
|
|
12
|
+
"module": "./dist/client-analytics.esm.node.js",
|
|
13
|
+
"require": "./dist/client-analytics.cjs.js",
|
|
14
|
+
"default": "./dist/client-analytics.cjs.js"
|
|
15
|
+
},
|
|
16
|
+
"default": {
|
|
17
|
+
"umd": "./dist/client-analytics.umd.js",
|
|
18
|
+
"module": "./dist/client-analytics.esm.browser.js",
|
|
19
|
+
"import": "./dist/client-analytics.esm.browser.js",
|
|
20
|
+
"default": "./dist/client-analytics.umd.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"./src/*": "./src/*.ts",
|
|
24
|
+
"./model": "./model/index.ts"
|
|
25
|
+
},
|
|
26
|
+
"jsdelivr": "./dist/client-analytics.umd.js",
|
|
27
|
+
"unpkg": "./dist/client-analytics.umd.js",
|
|
28
|
+
"browser": "./dist/client-analytics.umd.js",
|
|
29
|
+
"types": "./index.d.ts",
|
|
14
30
|
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"model",
|
|
15
33
|
"index.js",
|
|
16
|
-
"
|
|
34
|
+
"index.d.ts"
|
|
17
35
|
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "yarn clean && rollup --config",
|
|
38
|
+
"clean": "rm -rf ./dist || true"
|
|
39
|
+
},
|
|
18
40
|
"dependencies": {
|
|
19
|
-
"@algolia/client-common": "
|
|
20
|
-
"@algolia/
|
|
21
|
-
"@algolia/requester-
|
|
22
|
-
|
|
41
|
+
"@algolia/client-common": "5.0.0-alpha.11",
|
|
42
|
+
"@algolia/requester-browser-xhr": "5.0.0-alpha.11",
|
|
43
|
+
"@algolia/requester-node-http": "5.0.0-alpha.11"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/node": "16.11.47",
|
|
47
|
+
"rollup": "2.78.1",
|
|
48
|
+
"typescript": "4.7.4"
|
|
49
|
+
},
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">= 14.0.0"
|
|
23
52
|
}
|
|
24
53
|
}
|