@algolia/client-analytics 5.0.0-alpha.108 → 5.0.0-alpha.109
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 -3
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +6 -3
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/client-analytics.cjs +181 -53
- package/dist/client-analytics.esm.browser.js +182 -54
- package/dist/client-analytics.esm.node.js +181 -53
- package/dist/client-analytics.umd.js +2 -2
- package/dist/model/clickPositionsInner.d.ts +14 -0
- package/dist/model/clickPositionsInner.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +96 -25
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/currenciesValue.d.ts +14 -0
- package/dist/model/currenciesValue.d.ts.map +1 -0
- package/dist/model/dailyAddToCartRates.d.ts +19 -0
- package/dist/model/dailyAddToCartRates.d.ts.map +1 -0
- package/dist/model/dailyAverageClicks.d.ts +15 -0
- package/dist/model/dailyAverageClicks.d.ts.map +1 -0
- package/dist/model/dailyClickThroughRates.d.ts +19 -0
- package/dist/model/dailyClickThroughRates.d.ts.map +1 -0
- package/dist/model/dailyConversionRates.d.ts +19 -0
- package/dist/model/dailyConversionRates.d.ts.map +1 -0
- package/dist/model/dailyNoClickRates.d.ts +19 -0
- package/dist/model/dailyNoClickRates.d.ts.map +1 -0
- package/dist/model/dailyNoResultsRates.d.ts +19 -0
- package/dist/model/dailyNoResultsRates.d.ts.map +1 -0
- package/dist/model/dailyPurchaseRates.d.ts +19 -0
- package/dist/model/dailyPurchaseRates.d.ts.map +1 -0
- package/dist/model/dailyRevenue.d.ts +12 -0
- package/dist/model/dailyRevenue.d.ts.map +1 -0
- package/dist/model/dailySearches.d.ts +11 -0
- package/dist/model/dailySearches.d.ts.map +1 -0
- package/dist/model/dailySearchesNoClicks.d.ts +15 -0
- package/dist/model/dailySearchesNoClicks.d.ts.map +1 -0
- package/dist/model/dailySearchesNoResults.d.ts +15 -0
- package/dist/model/dailySearchesNoResults.d.ts.map +1 -0
- package/dist/model/dailyUsers.d.ts +11 -0
- package/dist/model/dailyUsers.d.ts.map +1 -0
- package/dist/model/getAddToCartRateResponse.d.ts +20 -0
- package/dist/model/getAddToCartRateResponse.d.ts.map +1 -0
- package/dist/model/getAverageClickPositionResponse.d.ts +6 -6
- package/dist/model/getAverageClickPositionResponse.d.ts.map +1 -1
- package/dist/model/getClickPositionsResponse.d.ts +3 -3
- package/dist/model/getClickPositionsResponse.d.ts.map +1 -1
- package/dist/model/getClickThroughRateResponse.d.ts +8 -8
- package/dist/model/getClickThroughRateResponse.d.ts.map +1 -1
- package/dist/model/getConversionRateResponse.d.ts +20 -0
- package/dist/model/getConversionRateResponse.d.ts.map +1 -0
- package/dist/model/getNoClickRateResponse.d.ts +6 -6
- package/dist/model/getNoClickRateResponse.d.ts.map +1 -1
- package/dist/model/getNoResultsRateResponse.d.ts +6 -6
- package/dist/model/getNoResultsRateResponse.d.ts.map +1 -1
- package/dist/model/getPurchaseRateResponse.d.ts +20 -0
- package/dist/model/getPurchaseRateResponse.d.ts.map +1 -0
- package/dist/model/getRevenue.d.ts +13 -0
- package/dist/model/getRevenue.d.ts.map +1 -0
- package/dist/model/getSearchesCountResponse.d.ts +3 -3
- package/dist/model/getSearchesCountResponse.d.ts.map +1 -1
- package/dist/model/getSearchesNoClicksResponse.d.ts +3 -3
- package/dist/model/getSearchesNoClicksResponse.d.ts.map +1 -1
- package/dist/model/getSearchesNoResultsResponse.d.ts +3 -3
- package/dist/model/getSearchesNoResultsResponse.d.ts.map +1 -1
- package/dist/model/getStatusResponse.d.ts +2 -2
- package/dist/model/getStatusResponse.d.ts.map +1 -1
- package/dist/model/getTopCountriesResponse.d.ts +1 -1
- package/dist/model/getTopFilterAttributesResponse.d.ts +1 -1
- package/dist/model/getTopFilterForAttribute.d.ts +2 -4
- package/dist/model/getTopFilterForAttribute.d.ts.map +1 -1
- package/dist/model/getTopFiltersNoResultsResponse.d.ts +2 -2
- package/dist/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
- package/dist/model/getTopFiltersNoResultsValue.d.ts +2 -4
- package/dist/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
- package/dist/model/getTopHitsResponse.d.ts +2 -1
- package/dist/model/getTopHitsResponse.d.ts.map +1 -1
- package/dist/model/getTopSearchesResponse.d.ts +2 -1
- package/dist/model/getTopSearchesResponse.d.ts.map +1 -1
- package/dist/model/getUsersCountResponse.d.ts +4 -4
- package/dist/model/getUsersCountResponse.d.ts.map +1 -1
- package/dist/model/index.d.ts +23 -11
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/operator.d.ts +5 -0
- package/dist/model/operator.d.ts.map +1 -0
- package/dist/model/orderBy.d.ts +1 -1
- package/dist/model/topCountry.d.ts +1 -1
- package/dist/model/topHit.d.ts +1 -1
- package/dist/model/topHitWithAnalytics.d.ts +9 -9
- package/dist/model/topHitWithAnalytics.d.ts.map +1 -1
- package/dist/model/topHitWithRevenueAnalytics.d.ts +52 -0
- package/dist/model/topHitWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/model/topHitsResponse.d.ts +1 -1
- package/dist/model/topHitsResponseWithAnalytics.d.ts +1 -1
- package/dist/model/topHitsResponseWithRevenueAnalytics.d.ts +8 -0
- package/dist/model/topHitsResponseWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/model/topSearch.d.ts +2 -2
- package/dist/model/topSearchWithAnalytics.d.ts +17 -12
- package/dist/model/topSearchWithAnalytics.d.ts.map +1 -1
- package/dist/model/topSearchWithRevenueAnalytics.d.ts +65 -0
- package/dist/model/topSearchWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/model/topSearchesResponse.d.ts +1 -1
- package/dist/model/topSearchesResponseWithAnalytics.d.ts +1 -1
- package/dist/model/topSearchesResponseWithRevenueAnalytics.d.ts +8 -0
- package/dist/model/topSearchesResponseWithRevenueAnalytics.d.ts.map +1 -0
- package/dist/src/analyticsClient.d.ts +97 -50
- package/dist/src/analyticsClient.d.ts.map +1 -1
- package/model/clickPositionsInner.ts +16 -0
- package/model/clientMethodProps.ts +99 -25
- package/model/currenciesValue.ts +16 -0
- package/model/dailyAddToCartRates.ts +23 -0
- package/model/dailyAverageClicks.ts +18 -0
- package/model/dailyClickThroughRates.ts +23 -0
- package/model/dailyConversionRates.ts +23 -0
- package/model/dailyNoClickRates.ts +23 -0
- package/model/dailyNoResultsRates.ts +23 -0
- package/model/dailyPurchaseRates.ts +23 -0
- package/model/dailyRevenue.ts +15 -0
- package/model/{searchEvent.ts → dailySearches.ts} +2 -2
- package/model/{searchNoResultEvent.ts → dailySearchesNoClicks.ts} +3 -3
- package/model/{searchNoClickEvent.ts → dailySearchesNoResults.ts} +3 -3
- package/model/{userWithDate.ts → dailyUsers.ts} +3 -3
- package/model/getAddToCartRateResponse.ts +25 -0
- package/model/getAverageClickPositionResponse.ts +6 -6
- package/model/getClickPositionsResponse.ts +3 -3
- package/model/getClickThroughRateResponse.ts +8 -8
- package/model/getConversionRateResponse.ts +25 -0
- package/model/getNoClickRateResponse.ts +6 -6
- package/model/getNoResultsRateResponse.ts +6 -6
- package/model/getPurchaseRateResponse.ts +25 -0
- package/model/getRevenue.ts +16 -0
- package/model/getSearchesCountResponse.ts +3 -3
- package/model/getSearchesNoClicksResponse.ts +3 -3
- package/model/getSearchesNoResultsResponse.ts +3 -3
- package/model/getStatusResponse.ts +2 -2
- package/model/getTopCountriesResponse.ts +1 -1
- package/model/getTopFilterAttributesResponse.ts +1 -1
- package/model/getTopFilterForAttribute.ts +3 -4
- package/model/getTopFiltersNoResultsResponse.ts +2 -2
- package/model/getTopFiltersNoResultsValue.ts +3 -4
- package/model/getTopHitsResponse.ts +5 -1
- package/model/getTopSearchesResponse.ts +3 -1
- package/model/getUsersCountResponse.ts +4 -4
- package/model/index.ts +23 -11
- package/model/operator.ts +6 -0
- package/model/orderBy.ts +1 -1
- package/model/topCountry.ts +1 -1
- package/model/topHit.ts +1 -1
- package/model/topHitWithAnalytics.ts +9 -9
- package/model/topHitWithRevenueAnalytics.ts +65 -0
- package/model/topHitsResponse.ts +1 -1
- package/model/topHitsResponseWithAnalytics.ts +1 -1
- package/model/topHitsResponseWithRevenueAnalytics.ts +10 -0
- package/model/topSearch.ts +2 -2
- package/model/topSearchWithAnalytics.ts +19 -12
- package/model/topSearchWithRevenueAnalytics.ts +81 -0
- package/model/topSearchesResponse.ts +1 -1
- package/model/topSearchesResponseWithAnalytics.ts +1 -1
- package/model/topSearchesResponseWithRevenueAnalytics.ts +10 -0
- package/package.json +6 -6
- package/dist/model/averageClickEvent.d.ts +0 -15
- package/dist/model/averageClickEvent.d.ts.map +0 -1
- package/dist/model/clickPosition.d.ts +0 -11
- package/dist/model/clickPosition.d.ts.map +0 -1
- package/dist/model/clickThroughRateEvent.d.ts +0 -19
- package/dist/model/clickThroughRateEvent.d.ts.map +0 -1
- package/dist/model/conversionRateEvent.d.ts +0 -19
- package/dist/model/conversionRateEvent.d.ts.map +0 -1
- package/dist/model/getConversationRateResponse.d.ts +0 -20
- package/dist/model/getConversationRateResponse.d.ts.map +0 -1
- package/dist/model/noClickRateEvent.d.ts +0 -19
- package/dist/model/noClickRateEvent.d.ts.map +0 -1
- package/dist/model/noResultsRateEvent.d.ts +0 -19
- package/dist/model/noResultsRateEvent.d.ts.map +0 -1
- package/dist/model/searchEvent.d.ts +0 -11
- package/dist/model/searchEvent.d.ts.map +0 -1
- package/dist/model/searchNoClickEvent.d.ts +0 -15
- package/dist/model/searchNoClickEvent.d.ts.map +0 -1
- package/dist/model/searchNoResultEvent.d.ts +0 -15
- package/dist/model/searchNoResultEvent.d.ts.map +0 -1
- package/dist/model/userWithDate.d.ts +0 -11
- package/dist/model/userWithDate.d.ts.map +0 -1
- package/model/averageClickEvent.ts +0 -18
- package/model/clickPosition.ts +0 -13
- package/model/clickThroughRateEvent.ts +0 -23
- package/model/conversionRateEvent.ts +0 -23
- package/model/getConversationRateResponse.ts +0 -25
- package/model/noClickRateEvent.ts +0 -23
- package/model/noResultsRateEvent.ts +0 -23
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { DailyClickThroughRates } from './dailyClickThroughRates';
|
|
4
4
|
|
|
5
5
|
export type GetClickThroughRateResponse = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
|
|
8
8
|
*/
|
|
9
|
-
rate: number;
|
|
9
|
+
rate: number | null;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Number of
|
|
12
|
+
* Number of clicks associated with this search.
|
|
13
13
|
*/
|
|
14
14
|
clickCount: number;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Number of tracked searches.
|
|
17
|
+
* Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
|
|
18
18
|
*/
|
|
19
|
-
trackedSearchCount: number
|
|
19
|
+
trackedSearchCount: number;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Daily click-through rates.
|
|
23
23
|
*/
|
|
24
|
-
dates:
|
|
24
|
+
dates: DailyClickThroughRates[];
|
|
25
25
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { DailyConversionRates } from './dailyConversionRates';
|
|
4
|
+
|
|
5
|
+
export type GetConversionRateResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
|
|
8
|
+
*/
|
|
9
|
+
rate: number | null;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
|
|
13
|
+
*/
|
|
14
|
+
trackedSearchCount: number;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Number of conversions from this search.
|
|
18
|
+
*/
|
|
19
|
+
conversionCount: number;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Daily conversion rates.
|
|
23
|
+
*/
|
|
24
|
+
dates: DailyConversionRates[];
|
|
25
|
+
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { DailyNoClickRates } from './dailyNoClickRates';
|
|
4
4
|
|
|
5
5
|
export type GetNoClickRateResponse = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* No click rate, calculated as number of tracked searches without any click divided by the number of tracked searches.
|
|
8
8
|
*/
|
|
9
9
|
rate: number;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Number of
|
|
12
|
+
* Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
|
|
13
13
|
*/
|
|
14
14
|
count: number;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Number of click
|
|
17
|
+
* Number of times this search was returned as a result without any click.
|
|
18
18
|
*/
|
|
19
19
|
noClickCount: number;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Daily no click rates.
|
|
23
23
|
*/
|
|
24
|
-
dates:
|
|
24
|
+
dates: DailyNoClickRates[];
|
|
25
25
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { DailyNoResultsRates } from './dailyNoResultsRates';
|
|
4
4
|
|
|
5
5
|
export type GetNoResultsRateResponse = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* No results rate, calculated as number of searches with zero results divided by the total number of searches.
|
|
8
8
|
*/
|
|
9
9
|
rate: number;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Number of
|
|
12
|
+
* Number of searches.
|
|
13
13
|
*/
|
|
14
14
|
count: number;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Number of
|
|
17
|
+
* Number of searches without any results.
|
|
18
18
|
*/
|
|
19
19
|
noResultCount: number;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Daily no results rates.
|
|
23
23
|
*/
|
|
24
|
-
dates:
|
|
24
|
+
dates: DailyNoResultsRates[];
|
|
25
25
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { DailyPurchaseRates } from './dailyPurchaseRates';
|
|
4
|
+
|
|
5
|
+
export type GetPurchaseRateResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* Purchase rate, calculated as number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
|
|
8
|
+
*/
|
|
9
|
+
rate: number | null;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
|
|
13
|
+
*/
|
|
14
|
+
trackedSearchCount: number;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Number of purchase events from this search.
|
|
18
|
+
*/
|
|
19
|
+
purchaseCount: number;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Daily purchase rates.
|
|
23
|
+
*/
|
|
24
|
+
dates: DailyPurchaseRates[];
|
|
25
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { CurrenciesValue } from './currenciesValue';
|
|
4
|
+
import type { DailyRevenue } from './dailyRevenue';
|
|
5
|
+
|
|
6
|
+
export type GetRevenue = {
|
|
7
|
+
/**
|
|
8
|
+
* Revenue associated with this search, broken-down by currencies.
|
|
9
|
+
*/
|
|
10
|
+
currencies: Record<string, CurrenciesValue>;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Daily revenue.
|
|
14
|
+
*/
|
|
15
|
+
dates: DailyRevenue[];
|
|
16
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { DailySearches } from './dailySearches';
|
|
4
4
|
|
|
5
5
|
export type GetSearchesCountResponse = {
|
|
6
6
|
/**
|
|
@@ -9,7 +9,7 @@ export type GetSearchesCountResponse = {
|
|
|
9
9
|
count: number;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Daily number of searches.
|
|
13
13
|
*/
|
|
14
|
-
dates:
|
|
14
|
+
dates: DailySearches[];
|
|
15
15
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { DailySearchesNoClicks } from './dailySearchesNoClicks';
|
|
4
4
|
|
|
5
5
|
export type GetSearchesNoClicksResponse = {
|
|
6
6
|
/**
|
|
7
|
-
* Searches
|
|
7
|
+
* Searches without any clicks.
|
|
8
8
|
*/
|
|
9
|
-
searches:
|
|
9
|
+
searches: DailySearchesNoClicks[];
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { DailySearchesNoResults } from './dailySearchesNoResults';
|
|
4
4
|
|
|
5
5
|
export type GetSearchesNoResultsResponse = {
|
|
6
6
|
/**
|
|
7
|
-
* Searches
|
|
7
|
+
* Searches without results.
|
|
8
8
|
*/
|
|
9
|
-
searches:
|
|
9
|
+
searches: DailySearchesNoResults[];
|
|
10
10
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export type GetStatusResponse = {
|
|
4
4
|
/**
|
|
5
|
-
* Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
5
|
+
* Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format. If null, no update was performed yet.
|
|
6
6
|
*/
|
|
7
|
-
updatedAt: string;
|
|
7
|
+
updatedAt: string | null;
|
|
8
8
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
+
import type { Operator } from './operator';
|
|
4
|
+
|
|
3
5
|
export type GetTopFilterForAttribute = {
|
|
4
6
|
/**
|
|
5
7
|
* Attribute name.
|
|
6
8
|
*/
|
|
7
9
|
attribute: string;
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
* Operator.
|
|
11
|
-
*/
|
|
12
|
-
operator: string;
|
|
11
|
+
operator: Operator;
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Attribute value.
|
|
@@ -4,7 +4,7 @@ import type { GetTopFiltersNoResultsValues } from './getTopFiltersNoResultsValue
|
|
|
4
4
|
|
|
5
5
|
export type GetTopFiltersNoResultsResponse = {
|
|
6
6
|
/**
|
|
7
|
-
* Filters with
|
|
7
|
+
* Filters for searches without any results. If null, the search term specified with the `search` parameter is not a search without results, or the `search` parameter is absent from the request.
|
|
8
8
|
*/
|
|
9
|
-
values: GetTopFiltersNoResultsValues[];
|
|
9
|
+
values: GetTopFiltersNoResultsValues[] | null;
|
|
10
10
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
+
import type { Operator } from './operator';
|
|
4
|
+
|
|
3
5
|
export type GetTopFiltersNoResultsValue = {
|
|
4
6
|
/**
|
|
5
7
|
* Attribute name.
|
|
6
8
|
*/
|
|
7
9
|
attribute: string;
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
* Operator.
|
|
11
|
-
*/
|
|
12
|
-
operator: string;
|
|
11
|
+
operator: Operator;
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Attribute value.
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import type { TopHitsResponse } from './topHitsResponse';
|
|
4
4
|
import type { TopHitsResponseWithAnalytics } from './topHitsResponseWithAnalytics';
|
|
5
|
+
import type { TopHitsResponseWithRevenueAnalytics } from './topHitsResponseWithRevenueAnalytics';
|
|
5
6
|
|
|
6
|
-
export type GetTopHitsResponse =
|
|
7
|
+
export type GetTopHitsResponse =
|
|
8
|
+
| TopHitsResponse
|
|
9
|
+
| TopHitsResponseWithAnalytics
|
|
10
|
+
| TopHitsResponseWithRevenueAnalytics;
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import type { TopSearchesResponse } from './topSearchesResponse';
|
|
4
4
|
import type { TopSearchesResponseWithAnalytics } from './topSearchesResponseWithAnalytics';
|
|
5
|
+
import type { TopSearchesResponseWithRevenueAnalytics } from './topSearchesResponseWithRevenueAnalytics';
|
|
5
6
|
|
|
6
7
|
export type GetTopSearchesResponse =
|
|
7
8
|
| TopSearchesResponse
|
|
8
|
-
| TopSearchesResponseWithAnalytics
|
|
9
|
+
| TopSearchesResponseWithAnalytics
|
|
10
|
+
| TopSearchesResponseWithRevenueAnalytics;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { DailyUsers } from './dailyUsers';
|
|
4
4
|
|
|
5
5
|
export type GetUsersCountResponse = {
|
|
6
6
|
/**
|
|
7
|
-
* Number of
|
|
7
|
+
* Number of unique users.
|
|
8
8
|
*/
|
|
9
9
|
count: number;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Daily number of unique users.
|
|
13
13
|
*/
|
|
14
|
-
dates:
|
|
14
|
+
dates: DailyUsers[];
|
|
15
15
|
};
|
package/model/index.ts
CHANGED
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
3
|
+
export * from './clickPositionsInner';
|
|
4
|
+
export * from './currenciesValue';
|
|
5
|
+
export * from './dailyAddToCartRates';
|
|
6
|
+
export * from './dailyAverageClicks';
|
|
7
|
+
export * from './dailyClickThroughRates';
|
|
8
|
+
export * from './dailyConversionRates';
|
|
9
|
+
export * from './dailyNoClickRates';
|
|
10
|
+
export * from './dailyNoResultsRates';
|
|
11
|
+
export * from './dailyPurchaseRates';
|
|
12
|
+
export * from './dailyRevenue';
|
|
13
|
+
export * from './dailySearches';
|
|
14
|
+
export * from './dailySearchesNoClicks';
|
|
15
|
+
export * from './dailySearchesNoResults';
|
|
16
|
+
export * from './dailyUsers';
|
|
7
17
|
export * from './direction';
|
|
8
18
|
export * from './errorBase';
|
|
19
|
+
export * from './getAddToCartRateResponse';
|
|
9
20
|
export * from './getAverageClickPositionResponse';
|
|
10
21
|
export * from './getClickPositionsResponse';
|
|
11
22
|
export * from './getClickThroughRateResponse';
|
|
12
|
-
export * from './
|
|
23
|
+
export * from './getConversionRateResponse';
|
|
13
24
|
export * from './getNoClickRateResponse';
|
|
14
25
|
export * from './getNoResultsRateResponse';
|
|
26
|
+
export * from './getPurchaseRateResponse';
|
|
27
|
+
export * from './getRevenue';
|
|
15
28
|
export * from './getSearchesCountResponse';
|
|
16
29
|
export * from './getSearchesNoClicksResponse';
|
|
17
30
|
export * from './getSearchesNoResultsResponse';
|
|
@@ -27,20 +40,19 @@ export * from './getTopFiltersNoResultsValues';
|
|
|
27
40
|
export * from './getTopHitsResponse';
|
|
28
41
|
export * from './getTopSearchesResponse';
|
|
29
42
|
export * from './getUsersCountResponse';
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './noResultsRateEvent';
|
|
43
|
+
export * from './operator';
|
|
32
44
|
export * from './orderBy';
|
|
33
|
-
export * from './searchEvent';
|
|
34
|
-
export * from './searchNoClickEvent';
|
|
35
|
-
export * from './searchNoResultEvent';
|
|
36
45
|
export * from './topCountry';
|
|
37
46
|
export * from './topHit';
|
|
38
47
|
export * from './topHitWithAnalytics';
|
|
48
|
+
export * from './topHitWithRevenueAnalytics';
|
|
39
49
|
export * from './topHitsResponse';
|
|
40
50
|
export * from './topHitsResponseWithAnalytics';
|
|
51
|
+
export * from './topHitsResponseWithRevenueAnalytics';
|
|
41
52
|
export * from './topSearch';
|
|
42
53
|
export * from './topSearchWithAnalytics';
|
|
54
|
+
export * from './topSearchWithRevenueAnalytics';
|
|
43
55
|
export * from './topSearchesResponse';
|
|
44
56
|
export * from './topSearchesResponseWithAnalytics';
|
|
45
|
-
export * from './
|
|
57
|
+
export * from './topSearchesResponseWithRevenueAnalytics';
|
|
46
58
|
export * from './clientMethodProps';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Character that characterizes how the filter is applied. For example, for a facet filter `facet:value`, `:` is the operator. For a numeric filter `count>50`, `>` is the operator.
|
|
5
|
+
*/
|
|
6
|
+
export type Operator = ':' | '!=' | '<' | '<=' | '=' | '>' | '>=';
|
package/model/orderBy.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Attribute by which to order the response items. If the `clickAnalytics` parameter is false, only `searchCount` is available.
|
|
5
5
|
*/
|
|
6
6
|
export type OrderBy =
|
|
7
7
|
| 'averageClickPosition'
|
package/model/topCountry.ts
CHANGED
package/model/topHit.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export type TopHitWithAnalytics = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Object ID of a record that\'s returned as a search result.
|
|
6
6
|
*/
|
|
7
7
|
hit: string;
|
|
8
8
|
|
|
@@ -12,27 +12,27 @@ export type TopHitWithAnalytics = {
|
|
|
12
12
|
count: number;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
|
|
16
16
|
*/
|
|
17
|
-
clickThroughRate: number;
|
|
17
|
+
clickThroughRate: number | null;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
|
|
21
21
|
*/
|
|
22
|
-
conversionRate: number;
|
|
22
|
+
conversionRate: number | null;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* Number of tracked searches.
|
|
25
|
+
* Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
trackedHitCount: number;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Number of
|
|
30
|
+
* Number of clicks associated with this search.
|
|
31
31
|
*/
|
|
32
32
|
clickCount: number;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* Number of
|
|
35
|
+
* Number of conversions from this search.
|
|
36
36
|
*/
|
|
37
37
|
conversionCount: number;
|
|
38
38
|
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { CurrenciesValue } from './currenciesValue';
|
|
4
|
+
|
|
5
|
+
export type TopHitWithRevenueAnalytics = {
|
|
6
|
+
/**
|
|
7
|
+
* Object ID of a record that\'s returned as a search result.
|
|
8
|
+
*/
|
|
9
|
+
hit: string;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Number of occurrences.
|
|
13
|
+
*/
|
|
14
|
+
count: number;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
|
|
18
|
+
*/
|
|
19
|
+
clickThroughRate: number | null;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
|
|
23
|
+
*/
|
|
24
|
+
conversionRate: number | null;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
|
|
28
|
+
*/
|
|
29
|
+
trackedHitCount: number;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Number of clicks associated with this search.
|
|
33
|
+
*/
|
|
34
|
+
clickCount: number;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Number of conversions from this search.
|
|
38
|
+
*/
|
|
39
|
+
conversionCount: number;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Add-to-cart rate, calculated as number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
|
|
43
|
+
*/
|
|
44
|
+
addToCartRate: number | null;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Number of add-to-cart events from this search.
|
|
48
|
+
*/
|
|
49
|
+
addToCartCount: number;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Purchase rate, calculated as number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
|
|
53
|
+
*/
|
|
54
|
+
purchaseRate: number | null;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Number of purchase events from this search.
|
|
58
|
+
*/
|
|
59
|
+
purchaseCount: number;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Revenue associated with this search, broken-down by currencies.
|
|
63
|
+
*/
|
|
64
|
+
currencies: Record<string, CurrenciesValue>;
|
|
65
|
+
};
|
package/model/topHitsResponse.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { TopHitWithRevenueAnalytics } from './topHitWithRevenueAnalytics';
|
|
4
|
+
|
|
5
|
+
export type TopHitsResponseWithRevenueAnalytics = {
|
|
6
|
+
/**
|
|
7
|
+
* Most frequent search results with click, conversion, and revenue metrics.
|
|
8
|
+
*/
|
|
9
|
+
hits: TopHitWithRevenueAnalytics[];
|
|
10
|
+
};
|
package/model/topSearch.ts
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
export type TopSearch = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Search query.
|
|
6
6
|
*/
|
|
7
7
|
search: string;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Number of
|
|
10
|
+
* Number of searches.
|
|
11
11
|
*/
|
|
12
12
|
count: number;
|
|
13
13
|
|