@algolia/client-analytics 5.7.0 → 5.8.1
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/README.md +5 -6
- package/dist/browser.d.ts +825 -834
- package/dist/builds/browser.js +144 -168
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +3 -3
- package/dist/builds/fetch.js +141 -165
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +141 -165
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +142 -166
- package/dist/builds/node.js.map +1 -1
- package/dist/fetch.d.ts +824 -832
- package/dist/node.d.cts +824 -832
- package/dist/node.d.ts +824 -832
- package/dist/src/analyticsClient.cjs +140 -164
- package/dist/src/analyticsClient.cjs.map +1 -1
- package/dist/src/analyticsClient.js +140 -164
- package/dist/src/analyticsClient.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +1 -2
- package/model/clickPosition.ts +1 -1
- package/model/clientMethodProps.ts +23 -22
- package/model/dailyRevenue.ts +1 -1
- package/model/getAddToCartRateResponse.ts +1 -1
- package/model/getAverageClickPositionResponse.ts +1 -1
- package/model/getClickPositionsResponse.ts +1 -1
- package/model/getClickThroughRateResponse.ts +1 -1
- package/model/getConversionRateResponse.ts +1 -1
- package/model/getNoClickRateResponse.ts +1 -1
- package/model/getNoResultsRateResponse.ts +1 -1
- package/model/getPurchaseRateResponse.ts +1 -1
- package/model/getRevenue.ts +2 -2
- package/model/getSearchesCountResponse.ts +1 -1
- package/model/getSearchesNoClicksResponse.ts +1 -1
- package/model/getSearchesNoResultsResponse.ts +1 -1
- package/model/getTopCountriesResponse.ts +1 -1
- package/model/getTopFilterAttributesResponse.ts +1 -1
- package/model/getTopFilterForAttributeResponse.ts +1 -1
- package/model/getTopFiltersNoResultsResponse.ts +1 -1
- package/model/getTopFiltersNoResultsValues.ts +1 -1
- package/model/getUsersCountResponse.ts +1 -1
- package/model/index.ts +5 -5
- package/model/operator.ts +1 -1
- package/model/orderBy.ts +1 -1
- package/model/topHitWithRevenueAnalytics.ts +1 -1
- package/model/topHitsResponse.ts +1 -1
- package/model/topHitsResponseWithAnalytics.ts +1 -1
- package/model/topHitsResponseWithRevenueAnalytics.ts +1 -1
- package/model/topSearchWithAnalytics.ts +1 -1
- package/model/topSearchWithRevenueAnalytics.ts +2 -2
- package/model/topSearchesResponse.ts +1 -1
- package/model/topSearchesResponseWithAnalytics.ts +1 -1
- package/model/topSearchesResponseWithRevenueAnalytics.ts +1 -1
- package/package.json +6 -6
|
@@ -6,5 +6,5 @@ export type GetTopFiltersNoResultsResponse = {
|
|
|
6
6
|
/**
|
|
7
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: Array<GetTopFiltersNoResultsValues> | null;
|
|
10
10
|
};
|
package/model/index.ts
CHANGED
|
@@ -1,6 +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
|
export * from './clickPosition';
|
|
4
|
+
export * from './clientMethodProps';
|
|
4
5
|
export * from './currencyCode';
|
|
5
6
|
export * from './dailyAddToCartRates';
|
|
6
7
|
export * from './dailyAverageClicks';
|
|
@@ -44,15 +45,14 @@ export * from './operator';
|
|
|
44
45
|
export * from './orderBy';
|
|
45
46
|
export * from './topCountry';
|
|
46
47
|
export * from './topHit';
|
|
47
|
-
export * from './topHitWithAnalytics';
|
|
48
|
-
export * from './topHitWithRevenueAnalytics';
|
|
49
48
|
export * from './topHitsResponse';
|
|
50
49
|
export * from './topHitsResponseWithAnalytics';
|
|
51
50
|
export * from './topHitsResponseWithRevenueAnalytics';
|
|
51
|
+
export * from './topHitWithAnalytics';
|
|
52
|
+
export * from './topHitWithRevenueAnalytics';
|
|
52
53
|
export * from './topSearch';
|
|
53
|
-
export * from './topSearchWithAnalytics';
|
|
54
|
-
export * from './topSearchWithRevenueAnalytics';
|
|
55
54
|
export * from './topSearchesResponse';
|
|
56
55
|
export * from './topSearchesResponseWithAnalytics';
|
|
57
56
|
export * from './topSearchesResponseWithRevenueAnalytics';
|
|
58
|
-
export * from './
|
|
57
|
+
export * from './topSearchWithAnalytics';
|
|
58
|
+
export * from './topSearchWithRevenueAnalytics';
|
package/model/operator.ts
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
/**
|
|
4
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
5
|
*/
|
|
6
|
-
export type Operator = ':' | '
|
|
6
|
+
export type Operator = ':' | '<' | '<=' | '=' | '!=' | '>' | '>=';
|
package/model/orderBy.ts
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
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
|
-
export type OrderBy = '
|
|
6
|
+
export type OrderBy = 'searchCount' | 'clickThroughRate' | 'conversionRate' | 'averageClickPosition';
|
package/model/topHitsResponse.ts
CHANGED
|
@@ -26,7 +26,7 @@ export type TopSearchWithAnalytics = {
|
|
|
26
26
|
/**
|
|
27
27
|
* List of positions in the search results and clicks associated with this search.
|
|
28
28
|
*/
|
|
29
|
-
clickPositions: ClickPosition
|
|
29
|
+
clickPositions: Array<ClickPosition>;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* 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.
|
|
@@ -27,7 +27,7 @@ export type TopSearchWithRevenueAnalytics = {
|
|
|
27
27
|
/**
|
|
28
28
|
* List of positions in the search results and clicks associated with this search.
|
|
29
29
|
*/
|
|
30
|
-
clickPositions: ClickPosition
|
|
30
|
+
clickPositions: Array<ClickPosition>;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* 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.
|
|
@@ -57,7 +57,7 @@ export type TopSearchWithRevenueAnalytics = {
|
|
|
57
57
|
/**
|
|
58
58
|
* Revenue associated with this search, broken-down by currencies.
|
|
59
59
|
*/
|
|
60
|
-
currencies:
|
|
60
|
+
currencies: { [key: string]: CurrencyCode };
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* 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.
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.
|
|
2
|
+
"version": "5.8.1",
|
|
3
3
|
"repository": {
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
"index.d.ts"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@algolia/client-common": "5.
|
|
53
|
-
"@algolia/requester-browser-xhr": "5.
|
|
54
|
-
"@algolia/requester-fetch": "5.
|
|
55
|
-
"@algolia/requester-node-http": "5.
|
|
52
|
+
"@algolia/client-common": "5.8.1",
|
|
53
|
+
"@algolia/requester-browser-xhr": "5.8.1",
|
|
54
|
+
"@algolia/requester-fetch": "5.8.1",
|
|
55
|
+
"@algolia/requester-node-http": "5.8.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@arethetypeswrong/cli": "0.16.4",
|
|
59
59
|
"@types/node": "22.7.4",
|
|
60
60
|
"publint": "0.2.11",
|
|
61
|
-
"rollup": "4.
|
|
61
|
+
"rollup": "4.24.0",
|
|
62
62
|
"tsup": "8.3.0",
|
|
63
63
|
"typescript": "5.6.2"
|
|
64
64
|
},
|