@algolia/client-analytics 5.9.1 → 5.10.0

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 (78) hide show
  1. package/README.md +4 -4
  2. package/dist/browser.d.ts +33 -33
  3. package/dist/builds/browser.js +17 -17
  4. package/dist/builds/browser.js.map +1 -1
  5. package/dist/builds/browser.min.js +1 -1
  6. package/dist/builds/browser.min.js.map +1 -1
  7. package/dist/builds/browser.umd.js +1 -1
  8. package/dist/builds/fetch.js +17 -17
  9. package/dist/builds/fetch.js.map +1 -1
  10. package/dist/builds/node.cjs +17 -17
  11. package/dist/builds/node.cjs.map +1 -1
  12. package/dist/builds/node.js +17 -17
  13. package/dist/builds/node.js.map +1 -1
  14. package/dist/fetch.d.ts +33 -33
  15. package/dist/node.d.cts +33 -33
  16. package/dist/node.d.ts +33 -33
  17. package/dist/src/analyticsClient.cjs +17 -17
  18. package/dist/src/analyticsClient.cjs.map +1 -1
  19. package/dist/src/analyticsClient.js +17 -17
  20. package/dist/src/analyticsClient.js.map +1 -1
  21. package/package.json +6 -7
  22. package/model/clickPosition.ts +0 -16
  23. package/model/clientMethodProps.ts +0 -605
  24. package/model/currencyCode.ts +0 -16
  25. package/model/dailyAddToCartRates.ts +0 -23
  26. package/model/dailyAverageClicks.ts +0 -18
  27. package/model/dailyClickThroughRates.ts +0 -23
  28. package/model/dailyConversionRates.ts +0 -23
  29. package/model/dailyNoClickRates.ts +0 -23
  30. package/model/dailyNoResultsRates.ts +0 -23
  31. package/model/dailyPurchaseRates.ts +0 -23
  32. package/model/dailyRevenue.ts +0 -15
  33. package/model/dailySearches.ts +0 -13
  34. package/model/dailySearchesNoClicks.ts +0 -18
  35. package/model/dailySearchesNoResults.ts +0 -18
  36. package/model/dailyUsers.ts +0 -13
  37. package/model/direction.ts +0 -3
  38. package/model/errorBase.ts +0 -8
  39. package/model/getAddToCartRateResponse.ts +0 -25
  40. package/model/getAverageClickPositionResponse.ts +0 -20
  41. package/model/getClickPositionsResponse.ts +0 -10
  42. package/model/getClickThroughRateResponse.ts +0 -25
  43. package/model/getConversionRateResponse.ts +0 -25
  44. package/model/getNoClickRateResponse.ts +0 -25
  45. package/model/getNoResultsRateResponse.ts +0 -25
  46. package/model/getPurchaseRateResponse.ts +0 -25
  47. package/model/getRevenue.ts +0 -16
  48. package/model/getSearchesCountResponse.ts +0 -15
  49. package/model/getSearchesNoClicksResponse.ts +0 -10
  50. package/model/getSearchesNoResultsResponse.ts +0 -10
  51. package/model/getStatusResponse.ts +0 -8
  52. package/model/getTopCountriesResponse.ts +0 -10
  53. package/model/getTopFilterAttribute.ts +0 -13
  54. package/model/getTopFilterAttributesResponse.ts +0 -10
  55. package/model/getTopFilterForAttribute.ts +0 -22
  56. package/model/getTopFilterForAttributeResponse.ts +0 -10
  57. package/model/getTopFiltersNoResultsResponse.ts +0 -10
  58. package/model/getTopFiltersNoResultsValue.ts +0 -17
  59. package/model/getTopFiltersNoResultsValues.ts +0 -15
  60. package/model/getTopHitsResponse.ts +0 -7
  61. package/model/getTopSearchesResponse.ts +0 -10
  62. package/model/getUsersCountResponse.ts +0 -15
  63. package/model/index.ts +0 -58
  64. package/model/operator.ts +0 -6
  65. package/model/orderBy.ts +0 -6
  66. package/model/topCountry.ts +0 -13
  67. package/model/topHit.ts +0 -13
  68. package/model/topHitWithAnalytics.ts +0 -38
  69. package/model/topHitWithRevenueAnalytics.ts +0 -65
  70. package/model/topHitsResponse.ts +0 -10
  71. package/model/topHitsResponseWithAnalytics.ts +0 -10
  72. package/model/topHitsResponseWithRevenueAnalytics.ts +0 -10
  73. package/model/topSearch.ts +0 -18
  74. package/model/topSearchWithAnalytics.ts +0 -55
  75. package/model/topSearchWithRevenueAnalytics.ts +0 -81
  76. package/model/topSearchesResponse.ts +0 -10
  77. package/model/topSearchesResponseWithAnalytics.ts +0 -10
  78. package/model/topSearchesResponseWithRevenueAnalytics.ts +0 -10
package/model/orderBy.ts DELETED
@@ -1,6 +0,0 @@
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
- * Attribute by which to order the response items. If the `clickAnalytics` parameter is false, only `searchCount` is available.
5
- */
6
- export type OrderBy = 'searchCount' | 'clickThroughRate' | 'conversionRate' | 'averageClickPosition';
@@ -1,13 +0,0 @@
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
- export type TopCountry = {
4
- /**
5
- * Country code.
6
- */
7
- country: string;
8
-
9
- /**
10
- * Number of occurrences.
11
- */
12
- count: number;
13
- };
package/model/topHit.ts DELETED
@@ -1,13 +0,0 @@
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
- export type TopHit = {
4
- /**
5
- * Object ID of a record that\'s returned as a search result.
6
- */
7
- hit: string;
8
-
9
- /**
10
- * Number of occurrences.
11
- */
12
- count: number;
13
- };
@@ -1,38 +0,0 @@
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
- export type TopHitWithAnalytics = {
4
- /**
5
- * Object ID of a record that\'s returned as a search result.
6
- */
7
- hit: string;
8
-
9
- /**
10
- * Number of occurrences.
11
- */
12
- count: number;
13
-
14
- /**
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
- */
17
- clickThroughRate: number | null;
18
-
19
- /**
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
- */
22
- conversionRate: number | null;
23
-
24
- /**
25
- * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
26
- */
27
- trackedHitCount: number;
28
-
29
- /**
30
- * Number of clicks associated with this search.
31
- */
32
- clickCount: number;
33
-
34
- /**
35
- * Number of conversions from this search.
36
- */
37
- conversionCount: number;
38
- };
@@ -1,65 +0,0 @@
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 { CurrencyCode } from './currencyCode';
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: { [key: string]: CurrencyCode };
65
- };
@@ -1,10 +0,0 @@
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 { TopHit } from './topHit';
4
-
5
- export type TopHitsResponse = {
6
- /**
7
- * Most frequent search results.
8
- */
9
- hits: Array<TopHit>;
10
- };
@@ -1,10 +0,0 @@
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 { TopHitWithAnalytics } from './topHitWithAnalytics';
4
-
5
- export type TopHitsResponseWithAnalytics = {
6
- /**
7
- * Most frequent search results with click and conversion metrics.
8
- */
9
- hits: Array<TopHitWithAnalytics>;
10
- };
@@ -1,10 +0,0 @@
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: Array<TopHitWithRevenueAnalytics>;
10
- };
@@ -1,18 +0,0 @@
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
- export type TopSearch = {
4
- /**
5
- * Search query.
6
- */
7
- search: string;
8
-
9
- /**
10
- * Number of searches.
11
- */
12
- count: number;
13
-
14
- /**
15
- * Number of results (hits).
16
- */
17
- nbHits: number;
18
- };
@@ -1,55 +0,0 @@
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 { ClickPosition } from './clickPosition';
4
-
5
- export type TopSearchWithAnalytics = {
6
- /**
7
- * Search query.
8
- */
9
- search: string;
10
-
11
- /**
12
- * Number of searches.
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
- * Average position of a clicked search result in the list of search results. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
23
- */
24
- averageClickPosition: number | null;
25
-
26
- /**
27
- * List of positions in the search results and clicks associated with this search.
28
- */
29
- clickPositions: Array<ClickPosition>;
30
-
31
- /**
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.
33
- */
34
- conversionRate: number | null;
35
-
36
- /**
37
- * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
38
- */
39
- trackedSearchCount: number;
40
-
41
- /**
42
- * Number of clicks associated with this search.
43
- */
44
- clickCount: number;
45
-
46
- /**
47
- * Number of conversions from this search.
48
- */
49
- conversionCount: number;
50
-
51
- /**
52
- * Number of results (hits).
53
- */
54
- nbHits: number;
55
- };
@@ -1,81 +0,0 @@
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 { ClickPosition } from './clickPosition';
4
- import type { CurrencyCode } from './currencyCode';
5
-
6
- export type TopSearchWithRevenueAnalytics = {
7
- /**
8
- * Search query.
9
- */
10
- search: string;
11
-
12
- /**
13
- * Number of searches.
14
- */
15
- count: number;
16
-
17
- /**
18
- * 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.
19
- */
20
- clickThroughRate: number | null;
21
-
22
- /**
23
- * Average position of a clicked search result in the list of search results. If null, Algolia didn\'t receive any search requests with `clickAnalytics` set to true.
24
- */
25
- averageClickPosition: number | null;
26
-
27
- /**
28
- * List of positions in the search results and clicks associated with this search.
29
- */
30
- clickPositions: Array<ClickPosition>;
31
-
32
- /**
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.
34
- */
35
- conversionRate: number | null;
36
-
37
- /**
38
- * Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
39
- */
40
- trackedSearchCount: number;
41
-
42
- /**
43
- * Number of clicks associated with this search.
44
- */
45
- clickCount: number;
46
-
47
- /**
48
- * Number of conversions from this search.
49
- */
50
- conversionCount: number;
51
-
52
- /**
53
- * Number of results (hits).
54
- */
55
- nbHits: number;
56
-
57
- /**
58
- * Revenue associated with this search, broken-down by currencies.
59
- */
60
- currencies: { [key: string]: CurrencyCode };
61
-
62
- /**
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.
64
- */
65
- addToCartRate: number | null;
66
-
67
- /**
68
- * Number of add-to-cart events from this search.
69
- */
70
- addToCartCount: number;
71
-
72
- /**
73
- * 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.
74
- */
75
- purchaseRate: number | null;
76
-
77
- /**
78
- * Number of purchase events from this search.
79
- */
80
- purchaseCount: number;
81
- };
@@ -1,10 +0,0 @@
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 { TopSearch } from './topSearch';
4
-
5
- export type TopSearchesResponse = {
6
- /**
7
- * Most popular searches and their number of search results (hits).
8
- */
9
- searches: Array<TopSearch>;
10
- };
@@ -1,10 +0,0 @@
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 { TopSearchWithAnalytics } from './topSearchWithAnalytics';
4
-
5
- export type TopSearchesResponseWithAnalytics = {
6
- /**
7
- * Most popular searches and their associated click and conversion metrics.
8
- */
9
- searches: Array<TopSearchWithAnalytics>;
10
- };
@@ -1,10 +0,0 @@
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 { TopSearchWithRevenueAnalytics } from './topSearchWithRevenueAnalytics';
4
-
5
- export type TopSearchesResponseWithRevenueAnalytics = {
6
- /**
7
- * Most popular searches, including their click and revenue metrics.
8
- */
9
- searches: Array<TopSearchWithRevenueAnalytics>;
10
- };