@algolia/client-analytics 5.1.1 → 5.2.2

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 (38) hide show
  1. package/README.md +1 -1
  2. package/dist/builds/browser.d.ts +10 -10
  3. package/dist/builds/browser.d.ts.map +1 -1
  4. package/dist/builds/node.d.ts +10 -10
  5. package/dist/builds/node.d.ts.map +1 -1
  6. package/dist/client-analytics.cjs +9 -14
  7. package/dist/client-analytics.esm.browser.js +18 -24
  8. package/dist/client-analytics.esm.node.js +9 -14
  9. package/dist/client-analytics.umd.js +2 -2
  10. package/dist/model/clientMethodProps.d.ts +2 -2
  11. package/dist/model/clientMethodProps.d.ts.map +1 -1
  12. package/dist/model/{currenciesValue.d.ts → currencyCode.d.ts} +2 -2
  13. package/dist/model/currencyCode.d.ts.map +1 -0
  14. package/dist/model/dailyRevenue.d.ts +2 -2
  15. package/dist/model/dailyRevenue.d.ts.map +1 -1
  16. package/dist/model/getRevenue.d.ts +2 -2
  17. package/dist/model/getRevenue.d.ts.map +1 -1
  18. package/dist/model/getTopHitsResponse.d.ts.map +1 -1
  19. package/dist/model/index.d.ts +1 -1
  20. package/dist/model/index.d.ts.map +1 -1
  21. package/dist/model/orderBy.d.ts.map +1 -1
  22. package/dist/model/topHitWithRevenueAnalytics.d.ts +2 -2
  23. package/dist/model/topHitWithRevenueAnalytics.d.ts.map +1 -1
  24. package/dist/model/topSearchWithRevenueAnalytics.d.ts +2 -2
  25. package/dist/model/topSearchWithRevenueAnalytics.d.ts.map +1 -1
  26. package/dist/src/analyticsClient.d.ts +11 -11
  27. package/dist/src/analyticsClient.d.ts.map +1 -1
  28. package/model/clientMethodProps.ts +2 -2
  29. package/model/{currenciesValue.ts → currencyCode.ts} +1 -1
  30. package/model/dailyRevenue.ts +2 -2
  31. package/model/getRevenue.ts +2 -2
  32. package/model/getTopHitsResponse.ts +1 -4
  33. package/model/index.ts +1 -1
  34. package/model/orderBy.ts +1 -5
  35. package/model/topHitWithRevenueAnalytics.ts +2 -2
  36. package/model/topSearchWithRevenueAnalytics.ts +2 -2
  37. package/package.json +7 -7
  38. package/dist/model/currenciesValue.d.ts.map +0 -1
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  <a href="https://npmjs.org/package/@algolia/client-analytics"><img src="https://img.shields.io/npm/v/@algolia/client-analytics.svg?style=flat-square" alt="NPM version"></img></a>
10
10
  <a href="http://npm-stat.com/charts.html?package=@algolia/client-analytics"><img src="https://img.shields.io/npm/dm/@algolia/client-analytics.svg?style=flat-square" alt="NPM downloads"></a>
11
11
  <a href="https://www.jsdelivr.com/package/npm/@algolia/client-analytics"><img src="https://data.jsdelivr.com/v1/package/npm/@algolia/client-analytics/badge" alt="jsDelivr Downloads"></img></a>
12
- <a href="LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat-square" alt="License"></a>
12
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat-square" alt="License"></a>
13
13
  </p>
14
14
  </p>
15
15
 
@@ -12,10 +12,10 @@ export declare function analyticsClient(appId: string, apiKey: string, region?:
12
12
  clearCache(): Promise<void>;
13
13
  readonly _ua: string;
14
14
  addAlgoliaAgent(segment: string, version?: string): void;
15
- customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
16
- customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
17
- customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
18
- customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
15
+ customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
16
+ customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
17
+ customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
18
+ customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
19
19
  getAddToCartRate({ index, startDate, endDate, tags }: import("../model").GetAddToCartRateProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetAddToCartRateResponse>;
20
20
  getAverageClickPosition({ index, startDate, endDate, tags }: import("../model").GetAverageClickPositionProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetAverageClickPositionResponse>;
21
21
  getClickPositions({ index, startDate, endDate, tags }: import("../model").GetClickPositionsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetClickPositionsResponse>;
@@ -26,14 +26,14 @@ export declare function analyticsClient(appId: string, apiKey: string, region?:
26
26
  getPurchaseRate({ index, startDate, endDate, tags }: import("../model").GetPurchaseRateProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetPurchaseRateResponse>;
27
27
  getRevenue({ index, startDate, endDate, tags }: import("../model").GetRevenueProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetRevenue>;
28
28
  getSearchesCount({ index, startDate, endDate, tags }: import("../model").GetSearchesCountProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetSearchesCountResponse>;
29
- getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }: import("../model").GetSearchesNoClicksProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetSearchesNoClicksResponse>;
30
- getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }: import("../model").GetSearchesNoResultsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetSearchesNoResultsResponse>;
29
+ getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags }: import("../model").GetSearchesNoClicksProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetSearchesNoClicksResponse>;
30
+ getSearchesNoResults({ index, startDate, endDate, limit, offset, tags }: import("../model").GetSearchesNoResultsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetSearchesNoResultsResponse>;
31
31
  getStatus({ index }: import("../model").GetStatusProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetStatusResponse>;
32
32
  getTopCountries({ index, startDate, endDate, limit, offset, tags }: import("../model").GetTopCountriesProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopCountriesResponse>;
33
- getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }: import("../model").GetTopFilterAttributesProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopFilterAttributesResponse>;
34
- getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }: import("../model").GetTopFilterForAttributeProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopFilterForAttributeResponse>;
35
- getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }: import("../model").GetTopFiltersNoResultsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopFiltersNoResultsResponse>;
36
- getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags, }: import("../model").GetTopHitsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopHitsResponse>;
33
+ getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags }: import("../model").GetTopFilterAttributesProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopFilterAttributesResponse>;
34
+ getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags }: import("../model").GetTopFilterForAttributeProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopFilterForAttributeResponse>;
35
+ getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags }: import("../model").GetTopFiltersNoResultsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopFiltersNoResultsResponse>;
36
+ getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags }: import("../model").GetTopHitsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopHitsResponse>;
37
37
  getTopSearches({ index, clickAnalytics, revenueAnalytics, startDate, endDate, orderBy, direction, limit, offset, tags, }: import("../model").GetTopSearchesProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopSearchesResponse>;
38
38
  getUsersCount({ index, startDate, endDate, tags }: import("../model").GetUsersCountProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetUsersCountResponse>;
39
39
  };
@@ -1 +1 @@
1
- {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../builds/browser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAW5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAOrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAClE,cAAc,UAAU,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAGjE,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCxB"}
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../builds/browser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAW5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAClE,cAAc,UAAU,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAGjE,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCtG"}
@@ -12,10 +12,10 @@ export declare function analyticsClient(appId: string, apiKey: string, region?:
12
12
  clearCache(): Promise<void>;
13
13
  _ua: string;
14
14
  addAlgoliaAgent(segment: string, version?: string): void;
15
- customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
16
- customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
17
- customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
18
- customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, any>>;
15
+ customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
16
+ customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
17
+ customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
18
+ customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
19
19
  getAddToCartRate({ index, startDate, endDate, tags }: import("../model").GetAddToCartRateProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetAddToCartRateResponse>;
20
20
  getAverageClickPosition({ index, startDate, endDate, tags }: import("../model").GetAverageClickPositionProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetAverageClickPositionResponse>;
21
21
  getClickPositions({ index, startDate, endDate, tags }: import("../model").GetClickPositionsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetClickPositionsResponse>;
@@ -26,14 +26,14 @@ export declare function analyticsClient(appId: string, apiKey: string, region?:
26
26
  getPurchaseRate({ index, startDate, endDate, tags }: import("../model").GetPurchaseRateProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetPurchaseRateResponse>;
27
27
  getRevenue({ index, startDate, endDate, tags }: import("../model").GetRevenueProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetRevenue>;
28
28
  getSearchesCount({ index, startDate, endDate, tags }: import("../model").GetSearchesCountProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetSearchesCountResponse>;
29
- getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }: import("../model").GetSearchesNoClicksProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetSearchesNoClicksResponse>;
30
- getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }: import("../model").GetSearchesNoResultsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetSearchesNoResultsResponse>;
29
+ getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags }: import("../model").GetSearchesNoClicksProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetSearchesNoClicksResponse>;
30
+ getSearchesNoResults({ index, startDate, endDate, limit, offset, tags }: import("../model").GetSearchesNoResultsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetSearchesNoResultsResponse>;
31
31
  getStatus({ index }: import("../model").GetStatusProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetStatusResponse>;
32
32
  getTopCountries({ index, startDate, endDate, limit, offset, tags }: import("../model").GetTopCountriesProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopCountriesResponse>;
33
- getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }: import("../model").GetTopFilterAttributesProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopFilterAttributesResponse>;
34
- getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }: import("../model").GetTopFilterForAttributeProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopFilterForAttributeResponse>;
35
- getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }: import("../model").GetTopFiltersNoResultsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopFiltersNoResultsResponse>;
36
- getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags, }: import("../model").GetTopHitsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopHitsResponse>;
33
+ getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags }: import("../model").GetTopFilterAttributesProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopFilterAttributesResponse>;
34
+ getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags }: import("../model").GetTopFilterForAttributeProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopFilterForAttributeResponse>;
35
+ getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags }: import("../model").GetTopFiltersNoResultsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopFiltersNoResultsResponse>;
36
+ getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags }: import("../model").GetTopHitsProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopHitsResponse>;
37
37
  getTopSearches({ index, clickAnalytics, revenueAnalytics, startDate, endDate, orderBy, direction, limit, offset, tags, }: import("../model").GetTopSearchesProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetTopSearchesResponse>;
38
38
  getUsersCount({ index, startDate, endDate, tags }: import("../model").GetUsersCountProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetUsersCountResponse>;
39
39
  };
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../builds/node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAU5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAClE,cAAc,UAAU,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAGjE,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCxB"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../builds/node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAU5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAClE,cAAc,UAAU,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAGjE,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BtG"}
@@ -4,12 +4,10 @@ var clientCommon = require('@algolia/client-common');
4
4
  var requesterNodeHttp = require('@algolia/requester-node-http');
5
5
 
6
6
  // 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.
7
- const apiClientVersion = '5.1.1';
7
+ const apiClientVersion = '5.2.2';
8
8
  const REGIONS = ['de', 'us'];
9
9
  function getDefaultHosts(region) {
10
- const url = !region
11
- ? 'analytics.algolia.com'
12
- : 'analytics.{region}.algolia.com'.replace('{region}', region);
10
+ const url = !region ? 'analytics.algolia.com' : 'analytics.{region}.algolia.com'.replace('{region}', region);
13
11
  return [{ url, accept: 'readWrite', protocol: 'https' }];
14
12
  }
15
13
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
@@ -43,10 +41,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
43
41
  * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
44
42
  */
45
43
  clearCache() {
46
- return Promise.all([
47
- transporter.requestsCache.clear(),
48
- transporter.responsesCache.clear(),
49
- ]).then(() => undefined);
44
+ return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => undefined);
50
45
  },
51
46
  /**
52
47
  * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
@@ -574,7 +569,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
574
569
  * @param getSearchesNoClicks.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
575
570
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
576
571
  */
577
- getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
572
+ getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags }, requestOptions) {
578
573
  if (!index) {
579
574
  throw new Error('Parameter `index` is required when calling `getSearchesNoClicks`.');
580
575
  }
@@ -622,7 +617,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
622
617
  * @param getSearchesNoResults.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
623
618
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
624
619
  */
625
- getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
620
+ getSearchesNoResults({ index, startDate, endDate, limit, offset, tags }, requestOptions) {
626
621
  if (!index) {
627
622
  throw new Error('Parameter `index` is required when calling `getSearchesNoResults`.');
628
623
  }
@@ -747,7 +742,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
747
742
  * @param getTopFilterAttributes.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
748
743
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
749
744
  */
750
- getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
745
+ getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags }, requestOptions) {
751
746
  if (!index) {
752
747
  throw new Error('Parameter `index` is required when calling `getTopFilterAttributes`.');
753
748
  }
@@ -800,7 +795,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
800
795
  * @param getTopFilterForAttribute.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
801
796
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
802
797
  */
803
- getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
798
+ getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags }, requestOptions) {
804
799
  if (!attribute) {
805
800
  throw new Error('Parameter `attribute` is required when calling `getTopFilterForAttribute`.');
806
801
  }
@@ -855,7 +850,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
855
850
  * @param getTopFiltersNoResults.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
856
851
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
857
852
  */
858
- getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
853
+ getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags }, requestOptions) {
859
854
  if (!index) {
860
855
  throw new Error('Parameter `index` is required when calling `getTopFiltersNoResults`.');
861
856
  }
@@ -909,7 +904,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
909
904
  * @param getTopHits.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
910
905
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
911
906
  */
912
- getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags, }, requestOptions) {
907
+ getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags }, requestOptions) {
913
908
  if (!index) {
914
909
  throw new Error('Parameter `index` is required when calling `getTopHits`.');
915
910
  }
@@ -314,7 +314,7 @@ function deserializeFailure({
314
314
  return new DetailedApiError(parsed.message, status, parsed.error, stackFrame);
315
315
  }
316
316
  return new ApiError(parsed.message, status, stackFrame);
317
- } catch (e) {
317
+ } catch {
318
318
  // ..
319
319
  }
320
320
  return new ApiError(content, status, stackFrame);
@@ -442,14 +442,17 @@ function createTransporter({
442
442
  if (host === undefined) {
443
443
  throw new RetryError(stackTraceWithoutCredentials(stackTrace));
444
444
  }
445
- let responseTimeout = isRead ? requestOptions.timeouts?.read || timeouts.read : requestOptions.timeouts?.write || timeouts.write;
445
+ const timeout = {
446
+ ...timeouts,
447
+ ...requestOptions.timeouts
448
+ };
446
449
  const payload = {
447
450
  data,
448
451
  headers,
449
452
  method: request.method,
450
453
  url: serializeUrl(host, request.path, queryParameters),
451
- connectTimeout: getTimeout(timeoutsCount, requestOptions.timeouts?.connect || timeouts.connect),
452
- responseTimeout: getTimeout(timeoutsCount, responseTimeout)
454
+ connectTimeout: getTimeout(timeoutsCount, timeout.connect),
455
+ responseTimeout: getTimeout(timeoutsCount, isRead ? timeout.read : timeout.write)
453
456
  };
454
457
  /**
455
458
  * The stackFrame is pushed to the stackTrace so we
@@ -642,8 +645,7 @@ function createXhrRequester() {
642
645
  const connectTimeout = createTimeout(request.connectTimeout, 'Connection timeout');
643
646
  let responseTimeout;
644
647
  baseRequester.onreadystatechange = () => {
645
- if (baseRequester.readyState > baseRequester.OPENED &&
646
- responseTimeout === undefined) {
648
+ if (baseRequester.readyState > baseRequester.OPENED && responseTimeout === undefined) {
647
649
  clearTimeout(connectTimeout);
648
650
  responseTimeout = createTimeout(request.responseTimeout, 'Socket timeout');
649
651
  }
@@ -676,12 +678,10 @@ function createXhrRequester() {
676
678
  }
677
679
 
678
680
  // 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.
679
- const apiClientVersion = '5.1.1';
681
+ const apiClientVersion = '5.2.2';
680
682
  const REGIONS = ['de', 'us'];
681
683
  function getDefaultHosts(region) {
682
- const url = !region
683
- ? 'analytics.algolia.com'
684
- : 'analytics.{region}.algolia.com'.replace('{region}', region);
684
+ const url = !region ? 'analytics.algolia.com' : 'analytics.{region}.algolia.com'.replace('{region}', region);
685
685
  return [{ url, accept: 'readWrite', protocol: 'https' }];
686
686
  }
687
687
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
@@ -715,10 +715,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
715
715
  * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
716
716
  */
717
717
  clearCache() {
718
- return Promise.all([
719
- transporter.requestsCache.clear(),
720
- transporter.responsesCache.clear(),
721
- ]).then(() => undefined);
718
+ return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => undefined);
722
719
  },
723
720
  /**
724
721
  * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
@@ -1246,7 +1243,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1246
1243
  * @param getSearchesNoClicks.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
1247
1244
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1248
1245
  */
1249
- getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
1246
+ getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags }, requestOptions) {
1250
1247
  if (!index) {
1251
1248
  throw new Error('Parameter `index` is required when calling `getSearchesNoClicks`.');
1252
1249
  }
@@ -1294,7 +1291,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1294
1291
  * @param getSearchesNoResults.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
1295
1292
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1296
1293
  */
1297
- getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
1294
+ getSearchesNoResults({ index, startDate, endDate, limit, offset, tags }, requestOptions) {
1298
1295
  if (!index) {
1299
1296
  throw new Error('Parameter `index` is required when calling `getSearchesNoResults`.');
1300
1297
  }
@@ -1419,7 +1416,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1419
1416
  * @param getTopFilterAttributes.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
1420
1417
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1421
1418
  */
1422
- getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
1419
+ getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags }, requestOptions) {
1423
1420
  if (!index) {
1424
1421
  throw new Error('Parameter `index` is required when calling `getTopFilterAttributes`.');
1425
1422
  }
@@ -1472,7 +1469,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1472
1469
  * @param getTopFilterForAttribute.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
1473
1470
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1474
1471
  */
1475
- getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
1472
+ getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags }, requestOptions) {
1476
1473
  if (!attribute) {
1477
1474
  throw new Error('Parameter `attribute` is required when calling `getTopFilterForAttribute`.');
1478
1475
  }
@@ -1527,7 +1524,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1527
1524
  * @param getTopFiltersNoResults.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
1528
1525
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1529
1526
  */
1530
- getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
1527
+ getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags }, requestOptions) {
1531
1528
  if (!index) {
1532
1529
  throw new Error('Parameter `index` is required when calling `getTopFiltersNoResults`.');
1533
1530
  }
@@ -1581,7 +1578,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1581
1578
  * @param getTopHits.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
1582
1579
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1583
1580
  */
1584
- getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags, }, requestOptions) {
1581
+ getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags }, requestOptions) {
1585
1582
  if (!index) {
1586
1583
  throw new Error('Parameter `index` is required when calling `getTopHits`.');
1587
1584
  }
@@ -1757,10 +1754,7 @@ function analyticsClient(appId, apiKey, region, options) {
1757
1754
  responsesCache: createMemoryCache(),
1758
1755
  requestsCache: createMemoryCache({ serializable: false }),
1759
1756
  hostsCache: createFallbackableCache({
1760
- caches: [
1761
- createBrowserLocalStorageCache({ key: `${apiClientVersion}-${appId}` }),
1762
- createMemoryCache(),
1763
- ],
1757
+ caches: [createBrowserLocalStorageCache({ key: `${apiClientVersion}-${appId}` }), createMemoryCache()],
1764
1758
  }),
1765
1759
  ...options,
1766
1760
  });
@@ -2,12 +2,10 @@ import { createAuth, createTransporter, getAlgoliaAgent, DEFAULT_CONNECT_TIMEOUT
2
2
  import { createHttpRequester } from '@algolia/requester-node-http';
3
3
 
4
4
  // 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.
5
- const apiClientVersion = '5.1.1';
5
+ const apiClientVersion = '5.2.2';
6
6
  const REGIONS = ['de', 'us'];
7
7
  function getDefaultHosts(region) {
8
- const url = !region
9
- ? 'analytics.algolia.com'
10
- : 'analytics.{region}.algolia.com'.replace('{region}', region);
8
+ const url = !region ? 'analytics.algolia.com' : 'analytics.{region}.algolia.com'.replace('{region}', region);
11
9
  return [{ url, accept: 'readWrite', protocol: 'https' }];
12
10
  }
13
11
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
@@ -41,10 +39,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
41
39
  * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
42
40
  */
43
41
  clearCache() {
44
- return Promise.all([
45
- transporter.requestsCache.clear(),
46
- transporter.responsesCache.clear(),
47
- ]).then(() => undefined);
42
+ return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => undefined);
48
43
  },
49
44
  /**
50
45
  * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
@@ -572,7 +567,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
572
567
  * @param getSearchesNoClicks.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
573
568
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
574
569
  */
575
- getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
570
+ getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags }, requestOptions) {
576
571
  if (!index) {
577
572
  throw new Error('Parameter `index` is required when calling `getSearchesNoClicks`.');
578
573
  }
@@ -620,7 +615,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
620
615
  * @param getSearchesNoResults.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
621
616
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
622
617
  */
623
- getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }, requestOptions) {
618
+ getSearchesNoResults({ index, startDate, endDate, limit, offset, tags }, requestOptions) {
624
619
  if (!index) {
625
620
  throw new Error('Parameter `index` is required when calling `getSearchesNoResults`.');
626
621
  }
@@ -745,7 +740,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
745
740
  * @param getTopFilterAttributes.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
746
741
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
747
742
  */
748
- getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
743
+ getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags }, requestOptions) {
749
744
  if (!index) {
750
745
  throw new Error('Parameter `index` is required when calling `getTopFilterAttributes`.');
751
746
  }
@@ -798,7 +793,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
798
793
  * @param getTopFilterForAttribute.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
799
794
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
800
795
  */
801
- getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
796
+ getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags }, requestOptions) {
802
797
  if (!attribute) {
803
798
  throw new Error('Parameter `attribute` is required when calling `getTopFilterForAttribute`.');
804
799
  }
@@ -853,7 +848,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
853
848
  * @param getTopFiltersNoResults.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
854
849
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
855
850
  */
856
- getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }, requestOptions) {
851
+ getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags }, requestOptions) {
857
852
  if (!index) {
858
853
  throw new Error('Parameter `index` is required when calling `getTopFiltersNoResults`.');
859
854
  }
@@ -907,7 +902,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
907
902
  * @param getTopHits.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
908
903
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
909
904
  */
910
- getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags, }, requestOptions) {
905
+ getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags }, requestOptions) {
911
906
  if (!index) {
912
907
  throw new Error('Parameter `index` is required when calling `getTopHits`.');
913
908
  }
@@ -1,2 +1,2 @@
1
- /*! client-analytics.umd.js | 5.1.1 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/client-analytics"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function i(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function o(){return JSON.parse(i().getItem(r)||"{}")}function s(e){i().setItem(r,JSON.stringify(e))}return{get:(t,r,i={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=o(),i=Object.fromEntries(Object.entries(r).filter((([,e])=>void 0!==e.timestamp)));if(s(i),!t)return;s(Object.fromEntries(Object.entries(i).filter((([,e])=>{const r=(new Date).getTime();return!(e.timestamp+t<r)}))))}(),o()[JSON.stringify(t)]))).then((e=>Promise.all([e?e.value:r(),void 0!==e]))).then((([e,t])=>Promise.all([e,t||i.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const s=o();return s[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},i().setItem(r,JSON.stringify(s)),t})),delete:e=>Promise.resolve().then((()=>{const t=o();delete t[JSON.stringify(e)],i().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{i().removeItem(r)}))}}function r(e){const t=[...e.caches],i=t.shift();return void 0===i?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,o,s={miss:()=>Promise.resolve()})=>i.get(e,o,s).catch((()=>r({caches:t}).get(e,o,s))),set:(e,o)=>i.set(e,o).catch((()=>r({caches:t}).set(e,o))),delete:e=>i.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>i.clear().catch((()=>r({caches:t}).clear()))}}function i(e={serializable:!0}){let t={};return{get(r,i,o={miss:()=>Promise.resolve()}){const s=JSON.stringify(r);if(s in t)return Promise.resolve(e.serializable?JSON.parse(t[s]):t[s]);const a=i();return a.then((e=>o.miss(e))).then((()=>a))},set:(r,i)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(i):i,Promise.resolve(i)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const o=12e4;function s(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>o},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=o}}}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class n extends Error{constructor(e,t){super(e),a(this,"name","AlgoliaError"),t&&(this.name=t)}}class d extends n{constructor(e,t,r){super(e,r),a(this,"stackTrace",void 0),this.stackTrace=t}}class c extends d{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",e,"RetryError")}}class u extends d{constructor(e,t,r,i="ApiError"){super(e,r,i),a(this,"status",void 0),this.status=t}}class l extends n{constructor(e,t){super(e,"DeserializationError"),a(this,"response",void 0),this.response=t}}class g extends u{constructor(e,t,r,i){super(e,t,i,"DetailedApiError"),a(this,"error",void 0),this.error=r}}function h(e,t,r){const i=(o=r,Object.keys(o).filter((e=>void 0!==o[e])).sort().map((e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(o[e])?o[e].join(","):o[e]).replaceAll("+","%20")}`)).join("&"));var o;let s=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return i.length&&(s+=`?${i}`),s}function m(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function v({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:i,algoliaAgent:o,timeouts:a,requester:n,requestsCache:d,responsesCache:v}){async function p(d,v,p=!0){const f=[],S=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(d,v),w=function(e,t,r){const i={Accept:"application/json",...e,...t,...r},o={};return Object.keys(i).forEach((e=>{const t=i[e];o[e.toLowerCase()]=t})),o}(r,d.headers,v.headers),y="GET"===d.method?{...d.data,...v.data}:{},P={...i,...d.queryParameters,...y};if(o.value&&(P["x-algolia-agent"]=o.value),v&&v.queryParameters)for(const e of Object.keys(v.queryParameters))v.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(v.queryParameters[e])?P[e]=v.queryParameters[e].toString():P[e]=v.queryParameters[e];let q=0;const D=async(e,r)=>{const i=e.pop();if(void 0===i)throw new c(function(e){return e.map((e=>m(e)))}(f));let o=p?v.timeouts?.read||a.read:v.timeouts?.write||a.write;const y={data:S,headers:w,method:d.method,url:h(i,d.path,P),connectTimeout:r(q,v.timeouts?.connect||a.connect),responseTimeout:r(q,o)},T=t=>{const r={request:y,response:t,host:i,triesLeft:e.length};return f.push(r),r},x=await n.send(y);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&!~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(x)){const o=T(x);return x.isTimedOut&&q++,console.log("Retryable failure",m(o)),await t.set(i,s(i,x.isTimedOut?"timed out":"down")),D(e,r)}if(function({status:e}){return 2==~~(e/100)}(x))return function(e){try{return JSON.parse(e.content)}catch(t){throw new l(t.message,e)}}(x);throw T(x),function({content:e,status:t},r){try{const i=JSON.parse(e);return"error"in i?new g(i.message,t,i.error,r):new u(i.message,t,r)}catch(e){}return new u(e,t,r)}(x,f)},T=e.filter((e=>"readWrite"===e.accept||(p?"read"===e.accept:"write"===e.accept))),x=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(s(e))))))),i=r.filter((e=>e.isUp())),o=r.filter((e=>e.isTimedOut())),a=[...i,...o];return{hosts:a.length>0?a:e,getTimeout:(e,t)=>(0===o.length&&0===e?1:o.length+3+e)*t}}(T);return D([...x.hosts].reverse(),x.getTimeout)}return{hostsCache:t,requester:n,timeouts:a,algoliaAgent:o,baseHeaders:r,baseQueryParameters:i,hosts:e,request:function(e,t={}){const o=e.useReadTransporter||"GET"===e.method;if(!o)return p(e,t,o);const s=()=>p(e,t);if(!0!==(t.cacheable||e.cacheable))return s();const a={request:e,requestOptions:t,transporter:{queryParameters:i,headers:r}};return v.get(a,(()=>d.get(a,(()=>d.set(a,s()).then((e=>Promise.all([d.delete(a),e])),(e=>Promise.all([d.delete(a),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>v.set(a,e)})},requestsCache:d,responsesCache:v}}function p({algoliaAgents:e,client:t,version:r}){const i=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>i.add(e))),i}const f="5.1.1",S=["de","us"];e.analyticsClient=function(e,o,s,a){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!o||"string"!=typeof o)throw new Error("`apiKey` is missing.");if(s&&("string"!=typeof s||!S.includes(s)))throw new Error(`\`region\` must be one of the following: ${S.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:i,region:o,...s}){const a=function(e,t,r="WithinHeaders"){const i={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?i:{},queryParameters:()=>"WithinQueryParameters"===r?i:{}}}(e,t,r),n=v({hosts:(d=o,[{url:d?"analytics.{region}.algolia.com".replace("{region}",d):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]),...s,algoliaAgent:p({algoliaAgents:i,client:"Analytics",version:f}),baseHeaders:{"content-type":"text/plain",...a.headers(),...s.baseHeaders},baseQueryParameters:{...a.queryParameters(),...s.baseQueryParameters}});var d;return{transporter:n,appId:e,clearCache:()=>Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then((()=>{})),get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,t){n.algoliaAgent.add({segment:e,version:t})},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const i={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return n.request(i,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const i={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return n.request(i,r)},customPost({path:e,parameters:t,body:r},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const o={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return n.request(o,i)},customPut({path:e,parameters:t,body:r},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const o={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return n.request(o,i)},getAddToCartRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getAddToCartRate`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/conversions/addToCartRate",queryParameters:s,headers:{}};return n.request(a,o)},getAverageClickPosition({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getAverageClickPosition`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/clicks/averageClickPosition",queryParameters:s,headers:{}};return n.request(a,o)},getClickPositions({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getClickPositions`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/clicks/positions",queryParameters:s,headers:{}};return n.request(a,o)},getClickThroughRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getClickThroughRate`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/clicks/clickThroughRate",queryParameters:s,headers:{}};return n.request(a,o)},getConversionRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getConversionRate`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/conversions/conversionRate",queryParameters:s,headers:{}};return n.request(a,o)},getNoClickRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getNoClickRate`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/searches/noClickRate",queryParameters:s,headers:{}};return n.request(a,o)},getNoResultsRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getNoResultsRate`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/searches/noResultRate",queryParameters:s,headers:{}};return n.request(a,o)},getPurchaseRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getPurchaseRate`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/conversions/purchaseRate",queryParameters:s,headers:{}};return n.request(a,o)},getRevenue({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getRevenue`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/conversions/revenue",queryParameters:s,headers:{}};return n.request(a,o)},getSearchesCount({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesCount`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/searches/count",queryParameters:s,headers:{}};return n.request(a,o)},getSearchesNoClicks({index:e,startDate:t,endDate:r,limit:i,offset:o,tags:s},a){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesNoClicks`.");const d={};void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.startDate=t.toString()),void 0!==r&&(d.endDate=r.toString()),void 0!==i&&(d.limit=i.toString()),void 0!==o&&(d.offset=o.toString()),void 0!==s&&(d.tags=s.toString());const c={method:"GET",path:"/2/searches/noClicks",queryParameters:d,headers:{}};return n.request(c,a)},getSearchesNoResults({index:e,startDate:t,endDate:r,limit:i,offset:o,tags:s},a){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesNoResults`.");const d={};void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.startDate=t.toString()),void 0!==r&&(d.endDate=r.toString()),void 0!==i&&(d.limit=i.toString()),void 0!==o&&(d.offset=o.toString()),void 0!==s&&(d.tags=s.toString());const c={method:"GET",path:"/2/searches/noResults",queryParameters:d,headers:{}};return n.request(c,a)},getStatus({index:e},t){if(!e)throw new Error("Parameter `index` is required when calling `getStatus`.");const r={};void 0!==e&&(r.index=e.toString());const i={method:"GET",path:"/2/status",queryParameters:r,headers:{}};return n.request(i,t)},getTopCountries({index:e,startDate:t,endDate:r,limit:i,offset:o,tags:s},a){if(!e)throw new Error("Parameter `index` is required when calling `getTopCountries`.");const d={};void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.startDate=t.toString()),void 0!==r&&(d.endDate=r.toString()),void 0!==i&&(d.limit=i.toString()),void 0!==o&&(d.offset=o.toString()),void 0!==s&&(d.tags=s.toString());const c={method:"GET",path:"/2/countries",queryParameters:d,headers:{}};return n.request(c,a)},getTopFilterAttributes({index:e,search:t,startDate:r,endDate:i,limit:o,offset:s,tags:a},d){if(!e)throw new Error("Parameter `index` is required when calling `getTopFilterAttributes`.");const c={};void 0!==e&&(c.index=e.toString()),void 0!==t&&(c.search=t.toString()),void 0!==r&&(c.startDate=r.toString()),void 0!==i&&(c.endDate=i.toString()),void 0!==o&&(c.limit=o.toString()),void 0!==s&&(c.offset=s.toString()),void 0!==a&&(c.tags=a.toString());const u={method:"GET",path:"/2/filters",queryParameters:c,headers:{}};return n.request(u,d)},getTopFilterForAttribute({attribute:e,index:t,search:r,startDate:i,endDate:o,limit:s,offset:a,tags:d},c){if(!e)throw new Error("Parameter `attribute` is required when calling `getTopFilterForAttribute`.");if(!t)throw new Error("Parameter `index` is required when calling `getTopFilterForAttribute`.");const u="/2/filters/{attribute}".replace("{attribute}",encodeURIComponent(e)),l={};void 0!==t&&(l.index=t.toString()),void 0!==r&&(l.search=r.toString()),void 0!==i&&(l.startDate=i.toString()),void 0!==o&&(l.endDate=o.toString()),void 0!==s&&(l.limit=s.toString()),void 0!==a&&(l.offset=a.toString()),void 0!==d&&(l.tags=d.toString());const g={method:"GET",path:u,queryParameters:l,headers:{}};return n.request(g,c)},getTopFiltersNoResults({index:e,search:t,startDate:r,endDate:i,limit:o,offset:s,tags:a},d){if(!e)throw new Error("Parameter `index` is required when calling `getTopFiltersNoResults`.");const c={};void 0!==e&&(c.index=e.toString()),void 0!==t&&(c.search=t.toString()),void 0!==r&&(c.startDate=r.toString()),void 0!==i&&(c.endDate=i.toString()),void 0!==o&&(c.limit=o.toString()),void 0!==s&&(c.offset=s.toString()),void 0!==a&&(c.tags=a.toString());const u={method:"GET",path:"/2/filters/noResults",queryParameters:c,headers:{}};return n.request(u,d)},getTopHits({index:e,search:t,clickAnalytics:r,revenueAnalytics:i,startDate:o,endDate:s,limit:a,offset:d,tags:c},u){if(!e)throw new Error("Parameter `index` is required when calling `getTopHits`.");const l={};void 0!==e&&(l.index=e.toString()),void 0!==t&&(l.search=t.toString()),void 0!==r&&(l.clickAnalytics=r.toString()),void 0!==i&&(l.revenueAnalytics=i.toString()),void 0!==o&&(l.startDate=o.toString()),void 0!==s&&(l.endDate=s.toString()),void 0!==a&&(l.limit=a.toString()),void 0!==d&&(l.offset=d.toString()),void 0!==c&&(l.tags=c.toString());const g={method:"GET",path:"/2/hits",queryParameters:l,headers:{}};return n.request(g,u)},getTopSearches({index:e,clickAnalytics:t,revenueAnalytics:r,startDate:i,endDate:o,orderBy:s,direction:a,limit:d,offset:c,tags:u},l){if(!e)throw new Error("Parameter `index` is required when calling `getTopSearches`.");const g={};void 0!==e&&(g.index=e.toString()),void 0!==t&&(g.clickAnalytics=t.toString()),void 0!==r&&(g.revenueAnalytics=r.toString()),void 0!==i&&(g.startDate=i.toString()),void 0!==o&&(g.endDate=o.toString()),void 0!==s&&(g.orderBy=s.toString()),void 0!==a&&(g.direction=a.toString()),void 0!==d&&(g.limit=d.toString()),void 0!==c&&(g.offset=c.toString()),void 0!==u&&(g.tags=u.toString());const h={method:"GET",path:"/2/searches",queryParameters:g,headers:{}};return n.request(h,l)},getUsersCount({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getUsersCount`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/users/count",queryParameters:s,headers:{}};return n.request(a,o)}}}({appId:e,apiKey:o,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const i=(e,i)=>setTimeout((()=>{r.abort(),t({status:0,content:i,isTimedOut:!0})}),e),o=i(e.connectTimeout,"Connection timeout");let s;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===s&&(clearTimeout(o),s=i(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(o),clearTimeout(s),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(o),clearTimeout(s),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:i(),requestsCache:i({serializable:!1}),hostsCache:r({caches:[t({key:`${f}-${e}`}),i()]}),...a})},e.apiClientVersion=f}));
1
+ /*! client-analytics.umd.js | 5.2.2 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/client-analytics"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function i(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function o(){return JSON.parse(i().getItem(r)||"{}")}function s(e){i().setItem(r,JSON.stringify(e))}return{get:(t,r,i={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=o(),i=Object.fromEntries(Object.entries(r).filter((([,e])=>void 0!==e.timestamp)));if(s(i),!t)return;s(Object.fromEntries(Object.entries(i).filter((([,e])=>{const r=(new Date).getTime();return!(e.timestamp+t<r)}))))}(),o()[JSON.stringify(t)]))).then((e=>Promise.all([e?e.value:r(),void 0!==e]))).then((([e,t])=>Promise.all([e,t||i.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const s=o();return s[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},i().setItem(r,JSON.stringify(s)),t})),delete:e=>Promise.resolve().then((()=>{const t=o();delete t[JSON.stringify(e)],i().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{i().removeItem(r)}))}}function r(e){const t=[...e.caches],i=t.shift();return void 0===i?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,o,s={miss:()=>Promise.resolve()})=>i.get(e,o,s).catch((()=>r({caches:t}).get(e,o,s))),set:(e,o)=>i.set(e,o).catch((()=>r({caches:t}).set(e,o))),delete:e=>i.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>i.clear().catch((()=>r({caches:t}).clear()))}}function i(e={serializable:!0}){let t={};return{get(r,i,o={miss:()=>Promise.resolve()}){const s=JSON.stringify(r);if(s in t)return Promise.resolve(e.serializable?JSON.parse(t[s]):t[s]);const a=i();return a.then((e=>o.miss(e))).then((()=>a))},set:(r,i)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(i):i,Promise.resolve(i)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const o=12e4;function s(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>o},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=o}}}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class n extends Error{constructor(e,t){super(e),a(this,"name","AlgoliaError"),t&&(this.name=t)}}class d extends n{constructor(e,t,r){super(e,r),a(this,"stackTrace",void 0),this.stackTrace=t}}class c extends d{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",e,"RetryError")}}class u extends d{constructor(e,t,r,i="ApiError"){super(e,r,i),a(this,"status",void 0),this.status=t}}class l extends n{constructor(e,t){super(e,"DeserializationError"),a(this,"response",void 0),this.response=t}}class g extends u{constructor(e,t,r,i){super(e,t,i,"DetailedApiError"),a(this,"error",void 0),this.error=r}}function h(e,t,r){const i=(o=r,Object.keys(o).filter((e=>void 0!==o[e])).sort().map((e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(o[e])?o[e].join(","):o[e]).replaceAll("+","%20")}`)).join("&"));var o;let s=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return i.length&&(s+=`?${i}`),s}function m(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function v({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:i,algoliaAgent:o,timeouts:a,requester:n,requestsCache:d,responsesCache:v}){async function p(d,v,p=!0){const f=[],S=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(d,v),w=function(e,t,r){const i={Accept:"application/json",...e,...t,...r},o={};return Object.keys(i).forEach((e=>{const t=i[e];o[e.toLowerCase()]=t})),o}(r,d.headers,v.headers),y="GET"===d.method?{...d.data,...v.data}:{},P={...i,...d.queryParameters,...y};if(o.value&&(P["x-algolia-agent"]=o.value),v&&v.queryParameters)for(const e of Object.keys(v.queryParameters))v.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(v.queryParameters[e])?P[e]=v.queryParameters[e].toString():P[e]=v.queryParameters[e];let q=0;const D=async(e,r)=>{const i=e.pop();if(void 0===i)throw new c(function(e){return e.map((e=>m(e)))}(f));const o={...a,...v.timeouts},y={data:S,headers:w,method:d.method,url:h(i,d.path,P),connectTimeout:r(q,o.connect),responseTimeout:r(q,p?o.read:o.write)},T=t=>{const r={request:y,response:t,host:i,triesLeft:e.length};return f.push(r),r},x=await n.send(y);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&!~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(x)){const o=T(x);return x.isTimedOut&&q++,console.log("Retryable failure",m(o)),await t.set(i,s(i,x.isTimedOut?"timed out":"down")),D(e,r)}if(function({status:e}){return 2==~~(e/100)}(x))return function(e){try{return JSON.parse(e.content)}catch(t){throw new l(t.message,e)}}(x);throw T(x),function({content:e,status:t},r){try{const i=JSON.parse(e);return"error"in i?new g(i.message,t,i.error,r):new u(i.message,t,r)}catch{}return new u(e,t,r)}(x,f)},T=e.filter((e=>"readWrite"===e.accept||(p?"read"===e.accept:"write"===e.accept))),x=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(s(e))))))),i=r.filter((e=>e.isUp())),o=r.filter((e=>e.isTimedOut())),a=[...i,...o];return{hosts:a.length>0?a:e,getTimeout:(e,t)=>(0===o.length&&0===e?1:o.length+3+e)*t}}(T);return D([...x.hosts].reverse(),x.getTimeout)}return{hostsCache:t,requester:n,timeouts:a,algoliaAgent:o,baseHeaders:r,baseQueryParameters:i,hosts:e,request:function(e,t={}){const o=e.useReadTransporter||"GET"===e.method;if(!o)return p(e,t,o);const s=()=>p(e,t);if(!0!==(t.cacheable||e.cacheable))return s();const a={request:e,requestOptions:t,transporter:{queryParameters:i,headers:r}};return v.get(a,(()=>d.get(a,(()=>d.set(a,s()).then((e=>Promise.all([d.delete(a),e])),(e=>Promise.all([d.delete(a),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>v.set(a,e)})},requestsCache:d,responsesCache:v}}function p({algoliaAgents:e,client:t,version:r}){const i=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>i.add(e))),i}const f="5.2.2",S=["de","us"];e.analyticsClient=function(e,o,s,a){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!o||"string"!=typeof o)throw new Error("`apiKey` is missing.");if(s&&("string"!=typeof s||!S.includes(s)))throw new Error(`\`region\` must be one of the following: ${S.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:i,region:o,...s}){const a=function(e,t,r="WithinHeaders"){const i={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?i:{},queryParameters:()=>"WithinQueryParameters"===r?i:{}}}(e,t,r),n=v({hosts:(d=o,[{url:d?"analytics.{region}.algolia.com".replace("{region}",d):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]),...s,algoliaAgent:p({algoliaAgents:i,client:"Analytics",version:f}),baseHeaders:{"content-type":"text/plain",...a.headers(),...s.baseHeaders},baseQueryParameters:{...a.queryParameters(),...s.baseQueryParameters}});var d;return{transporter:n,appId:e,clearCache:()=>Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then((()=>{})),get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,t){n.algoliaAgent.add({segment:e,version:t})},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const i={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return n.request(i,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const i={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return n.request(i,r)},customPost({path:e,parameters:t,body:r},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const o={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return n.request(o,i)},customPut({path:e,parameters:t,body:r},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const o={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return n.request(o,i)},getAddToCartRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getAddToCartRate`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/conversions/addToCartRate",queryParameters:s,headers:{}};return n.request(a,o)},getAverageClickPosition({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getAverageClickPosition`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/clicks/averageClickPosition",queryParameters:s,headers:{}};return n.request(a,o)},getClickPositions({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getClickPositions`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/clicks/positions",queryParameters:s,headers:{}};return n.request(a,o)},getClickThroughRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getClickThroughRate`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/clicks/clickThroughRate",queryParameters:s,headers:{}};return n.request(a,o)},getConversionRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getConversionRate`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/conversions/conversionRate",queryParameters:s,headers:{}};return n.request(a,o)},getNoClickRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getNoClickRate`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/searches/noClickRate",queryParameters:s,headers:{}};return n.request(a,o)},getNoResultsRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getNoResultsRate`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/searches/noResultRate",queryParameters:s,headers:{}};return n.request(a,o)},getPurchaseRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getPurchaseRate`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/conversions/purchaseRate",queryParameters:s,headers:{}};return n.request(a,o)},getRevenue({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getRevenue`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/conversions/revenue",queryParameters:s,headers:{}};return n.request(a,o)},getSearchesCount({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesCount`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/searches/count",queryParameters:s,headers:{}};return n.request(a,o)},getSearchesNoClicks({index:e,startDate:t,endDate:r,limit:i,offset:o,tags:s},a){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesNoClicks`.");const d={};void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.startDate=t.toString()),void 0!==r&&(d.endDate=r.toString()),void 0!==i&&(d.limit=i.toString()),void 0!==o&&(d.offset=o.toString()),void 0!==s&&(d.tags=s.toString());const c={method:"GET",path:"/2/searches/noClicks",queryParameters:d,headers:{}};return n.request(c,a)},getSearchesNoResults({index:e,startDate:t,endDate:r,limit:i,offset:o,tags:s},a){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesNoResults`.");const d={};void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.startDate=t.toString()),void 0!==r&&(d.endDate=r.toString()),void 0!==i&&(d.limit=i.toString()),void 0!==o&&(d.offset=o.toString()),void 0!==s&&(d.tags=s.toString());const c={method:"GET",path:"/2/searches/noResults",queryParameters:d,headers:{}};return n.request(c,a)},getStatus({index:e},t){if(!e)throw new Error("Parameter `index` is required when calling `getStatus`.");const r={};void 0!==e&&(r.index=e.toString());const i={method:"GET",path:"/2/status",queryParameters:r,headers:{}};return n.request(i,t)},getTopCountries({index:e,startDate:t,endDate:r,limit:i,offset:o,tags:s},a){if(!e)throw new Error("Parameter `index` is required when calling `getTopCountries`.");const d={};void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.startDate=t.toString()),void 0!==r&&(d.endDate=r.toString()),void 0!==i&&(d.limit=i.toString()),void 0!==o&&(d.offset=o.toString()),void 0!==s&&(d.tags=s.toString());const c={method:"GET",path:"/2/countries",queryParameters:d,headers:{}};return n.request(c,a)},getTopFilterAttributes({index:e,search:t,startDate:r,endDate:i,limit:o,offset:s,tags:a},d){if(!e)throw new Error("Parameter `index` is required when calling `getTopFilterAttributes`.");const c={};void 0!==e&&(c.index=e.toString()),void 0!==t&&(c.search=t.toString()),void 0!==r&&(c.startDate=r.toString()),void 0!==i&&(c.endDate=i.toString()),void 0!==o&&(c.limit=o.toString()),void 0!==s&&(c.offset=s.toString()),void 0!==a&&(c.tags=a.toString());const u={method:"GET",path:"/2/filters",queryParameters:c,headers:{}};return n.request(u,d)},getTopFilterForAttribute({attribute:e,index:t,search:r,startDate:i,endDate:o,limit:s,offset:a,tags:d},c){if(!e)throw new Error("Parameter `attribute` is required when calling `getTopFilterForAttribute`.");if(!t)throw new Error("Parameter `index` is required when calling `getTopFilterForAttribute`.");const u="/2/filters/{attribute}".replace("{attribute}",encodeURIComponent(e)),l={};void 0!==t&&(l.index=t.toString()),void 0!==r&&(l.search=r.toString()),void 0!==i&&(l.startDate=i.toString()),void 0!==o&&(l.endDate=o.toString()),void 0!==s&&(l.limit=s.toString()),void 0!==a&&(l.offset=a.toString()),void 0!==d&&(l.tags=d.toString());const g={method:"GET",path:u,queryParameters:l,headers:{}};return n.request(g,c)},getTopFiltersNoResults({index:e,search:t,startDate:r,endDate:i,limit:o,offset:s,tags:a},d){if(!e)throw new Error("Parameter `index` is required when calling `getTopFiltersNoResults`.");const c={};void 0!==e&&(c.index=e.toString()),void 0!==t&&(c.search=t.toString()),void 0!==r&&(c.startDate=r.toString()),void 0!==i&&(c.endDate=i.toString()),void 0!==o&&(c.limit=o.toString()),void 0!==s&&(c.offset=s.toString()),void 0!==a&&(c.tags=a.toString());const u={method:"GET",path:"/2/filters/noResults",queryParameters:c,headers:{}};return n.request(u,d)},getTopHits({index:e,search:t,clickAnalytics:r,revenueAnalytics:i,startDate:o,endDate:s,limit:a,offset:d,tags:c},u){if(!e)throw new Error("Parameter `index` is required when calling `getTopHits`.");const l={};void 0!==e&&(l.index=e.toString()),void 0!==t&&(l.search=t.toString()),void 0!==r&&(l.clickAnalytics=r.toString()),void 0!==i&&(l.revenueAnalytics=i.toString()),void 0!==o&&(l.startDate=o.toString()),void 0!==s&&(l.endDate=s.toString()),void 0!==a&&(l.limit=a.toString()),void 0!==d&&(l.offset=d.toString()),void 0!==c&&(l.tags=c.toString());const g={method:"GET",path:"/2/hits",queryParameters:l,headers:{}};return n.request(g,u)},getTopSearches({index:e,clickAnalytics:t,revenueAnalytics:r,startDate:i,endDate:o,orderBy:s,direction:a,limit:d,offset:c,tags:u},l){if(!e)throw new Error("Parameter `index` is required when calling `getTopSearches`.");const g={};void 0!==e&&(g.index=e.toString()),void 0!==t&&(g.clickAnalytics=t.toString()),void 0!==r&&(g.revenueAnalytics=r.toString()),void 0!==i&&(g.startDate=i.toString()),void 0!==o&&(g.endDate=o.toString()),void 0!==s&&(g.orderBy=s.toString()),void 0!==a&&(g.direction=a.toString()),void 0!==d&&(g.limit=d.toString()),void 0!==c&&(g.offset=c.toString()),void 0!==u&&(g.tags=u.toString());const h={method:"GET",path:"/2/searches",queryParameters:g,headers:{}};return n.request(h,l)},getUsersCount({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getUsersCount`.");const s={};void 0!==e&&(s.index=e.toString()),void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==i&&(s.tags=i.toString());const a={method:"GET",path:"/2/users/count",queryParameters:s,headers:{}};return n.request(a,o)}}}({appId:e,apiKey:o,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const i=(e,i)=>setTimeout((()=>{r.abort(),t({status:0,content:i,isTimedOut:!0})}),e),o=i(e.connectTimeout,"Connection timeout");let s;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===s&&(clearTimeout(o),s=i(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(o),clearTimeout(s),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(o),clearTimeout(s),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:i(),requestsCache:i({serializable:!1}),hostsCache:r({caches:[t({key:`${f}-${e}`}),i()]}),...a})},e.apiClientVersion=f}));
@@ -41,7 +41,7 @@ export type CustomPostProps = {
41
41
  /**
42
42
  * Parameters to send with the custom request.
43
43
  */
44
- body?: Record<string, any>;
44
+ body?: Record<string, unknown>;
45
45
  };
46
46
  /**
47
47
  * Properties for the `customPut` method.
@@ -58,7 +58,7 @@ export type CustomPutProps = {
58
58
  /**
59
59
  * Parameters to send with the custom request.
60
60
  */
61
- body?: Record<string, any>;
61
+ body?: Record<string, unknown>;
62
62
  };
63
63
  /**
64
64
  * Properties for the `getAddToCartRate` method.
@@ -1 +1 @@
1
- {"version":3,"file":"clientMethodProps.d.ts","sourceRoot":"","sources":["../../model/clientMethodProps.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CA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C,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Currency code.
3
3
  */
4
- export type CurrenciesValue = {
4
+ export type CurrencyCode = {
5
5
  /**
6
6
  * Currency code.
7
7
  */
@@ -11,4 +11,4 @@ export type CurrenciesValue = {
11
11
  */
12
12
  revenue?: number;
13
13
  };
14
- //# sourceMappingURL=currenciesValue.d.ts.map
14
+ //# sourceMappingURL=currencyCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currencyCode.d.ts","sourceRoot":"","sources":["../../model/currencyCode.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,9 +1,9 @@
1
- import type { CurrenciesValue } from './currenciesValue';
1
+ import type { CurrencyCode } from './currencyCode';
2
2
  export type DailyRevenue = {
3
3
  /**
4
4
  * Revenue associated with this search, broken-down by currencies.
5
5
  */
6
- currencies: Record<string, CurrenciesValue>;
6
+ currencies: Record<string, CurrencyCode>;
7
7
  /**
8
8
  * Date in the format YYYY-MM-DD.
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dailyRevenue.d.ts","sourceRoot":"","sources":["../../model/dailyRevenue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAE5C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
1
+ {"version":3,"file":"dailyRevenue.d.ts","sourceRoot":"","sources":["../../model/dailyRevenue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAEzC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -1,10 +1,10 @@
1
- import type { CurrenciesValue } from './currenciesValue';
1
+ import type { CurrencyCode } from './currencyCode';
2
2
  import type { DailyRevenue } from './dailyRevenue';
3
3
  export type GetRevenue = {
4
4
  /**
5
5
  * Revenue associated with this search, broken-down by currencies.
6
6
  */
7
- currencies: Record<string, CurrenciesValue>;
7
+ currencies: Record<string, CurrencyCode>;
8
8
  /**
9
9
  * Daily revenue.
10
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getRevenue.d.ts","sourceRoot":"","sources":["../../model/getRevenue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAE5C;;OAEG;IACH,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"getRevenue.d.ts","sourceRoot":"","sources":["../../model/getRevenue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAEzC;;OAEG;IACH,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getTopHitsResponse.d.ts","sourceRoot":"","sources":["../../model/getTopHitsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAEjG,MAAM,MAAM,kBAAkB,GAC1B,eAAe,GACf,4BAA4B,GAC5B,mCAAmC,CAAC"}
1
+ {"version":3,"file":"getTopHitsResponse.d.ts","sourceRoot":"","sources":["../../model/getTopHitsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAEjG,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG,4BAA4B,GAAG,mCAAmC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export * from './clickPosition';
2
- export * from './currenciesValue';
2
+ export * from './currencyCode';
3
3
  export * from './dailyAddToCartRates';
4
4
  export * from './dailyAverageClicks';
5
5
  export * from './dailyClickThroughRates';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CA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{"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
+ {"version":3,"file":"orderBy.d.ts","sourceRoot":"","sources":["../../model/orderBy.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,sBAAsB,GAAG,kBAAkB,GAAG,gBAAgB,GAAG,aAAa,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { CurrenciesValue } from './currenciesValue';
1
+ import type { CurrencyCode } from './currencyCode';
2
2
  export type TopHitWithRevenueAnalytics = {
3
3
  /**
4
4
  * Object ID of a record that\'s returned as a search result.
@@ -47,6 +47,6 @@ export type TopHitWithRevenueAnalytics = {
47
47
  /**
48
48
  * Revenue associated with this search, broken-down by currencies.
49
49
  */
50
- currencies: Record<string, CurrenciesValue>;
50
+ currencies: Record<string, CurrencyCode>;
51
51
  };
52
52
  //# sourceMappingURL=topHitWithRevenueAnalytics.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"topHitWithRevenueAnalytics.d.ts","sourceRoot":"","sources":["../../model/topHitWithRevenueAnalytics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC7C,CAAC"}
1
+ {"version":3,"file":"topHitWithRevenueAnalytics.d.ts","sourceRoot":"","sources":["../../model/topHitWithRevenueAnalytics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CAC1C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ClickPosition } from './clickPosition';
2
- import type { CurrenciesValue } from './currenciesValue';
2
+ import type { CurrencyCode } from './currencyCode';
3
3
  export type TopSearchWithRevenueAnalytics = {
4
4
  /**
5
5
  * Search query.
@@ -44,7 +44,7 @@ export type TopSearchWithRevenueAnalytics = {
44
44
  /**
45
45
  * Revenue associated with this search, broken-down by currencies.
46
46
  */
47
- currencies: Record<string, CurrenciesValue>;
47
+ currencies: Record<string, CurrencyCode>;
48
48
  /**
49
49
  * 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.
50
50
  */
@@ -1 +1 @@
1
- {"version":3,"file":"topSearchWithRevenueAnalytics.d.ts","sourceRoot":"","sources":["../../model/topSearchWithRevenueAnalytics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,cAAc,EAAE,aAAa,EAAE,CAAC;IAEhC;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAE5C;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"topSearchWithRevenueAnalytics.d.ts","sourceRoot":"","sources":["../../model/topSearchWithRevenueAnalytics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,cAAc,EAAE,aAAa,EAAE,CAAC;IAEhC;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAEzC;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -20,7 +20,7 @@ import type { GetTopFiltersNoResultsResponse } from '../model/getTopFiltersNoRes
20
20
  import type { GetTopHitsResponse } from '../model/getTopHitsResponse';
21
21
  import type { GetTopSearchesResponse } from '../model/getTopSearchesResponse';
22
22
  import type { GetUsersCountResponse } from '../model/getUsersCountResponse';
23
- export declare const apiClientVersion = "5.1.1";
23
+ export declare const apiClientVersion = "5.2.2";
24
24
  export declare const REGIONS: readonly ["de", "us"];
25
25
  export type Region = (typeof REGIONS)[number];
26
26
  export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
@@ -54,7 +54,7 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
54
54
  * @param customDelete.parameters - Query parameters to apply to the current query.
55
55
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
56
56
  */
57
- customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
57
+ customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
58
58
  /**
59
59
  * This method allow you to send requests to the Algolia REST API.
60
60
  *
@@ -63,7 +63,7 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
63
63
  * @param customGet.parameters - Query parameters to apply to the current query.
64
64
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
65
65
  */
66
- customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
66
+ customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
67
67
  /**
68
68
  * This method allow you to send requests to the Algolia REST API.
69
69
  *
@@ -73,7 +73,7 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
73
73
  * @param customPost.body - Parameters to send with the custom request.
74
74
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
75
75
  */
76
- customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
76
+ customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
77
77
  /**
78
78
  * This method allow you to send requests to the Algolia REST API.
79
79
  *
@@ -83,7 +83,7 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
83
83
  * @param customPut.body - Parameters to send with the custom request.
84
84
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
85
85
  */
86
- customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
86
+ customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
87
87
  /**
88
88
  * Retrieves the add-to-cart rate for all of your searches with at least one add-to-cart event, including a daily breakdown. By default, the analyzed period includes the last eight days including the current day.
89
89
  *
@@ -239,7 +239,7 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
239
239
  * @param getSearchesNoClicks.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
240
240
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
241
241
  */
242
- getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags, }: GetSearchesNoClicksProps, requestOptions?: RequestOptions): Promise<GetSearchesNoClicksResponse>;
242
+ getSearchesNoClicks({ index, startDate, endDate, limit, offset, tags }: GetSearchesNoClicksProps, requestOptions?: RequestOptions): Promise<GetSearchesNoClicksResponse>;
243
243
  /**
244
244
  * Retrieves the most popular searches that didn\'t return any results.
245
245
  *
@@ -255,7 +255,7 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
255
255
  * @param getSearchesNoResults.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
256
256
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
257
257
  */
258
- getSearchesNoResults({ index, startDate, endDate, limit, offset, tags, }: GetSearchesNoResultsProps, requestOptions?: RequestOptions): Promise<GetSearchesNoResultsResponse>;
258
+ getSearchesNoResults({ index, startDate, endDate, limit, offset, tags }: GetSearchesNoResultsProps, requestOptions?: RequestOptions): Promise<GetSearchesNoResultsResponse>;
259
259
  /**
260
260
  * Retrieves the time when the Analytics data for the specified index was last updated. The Analytics data is updated every 5 minutes.
261
261
  *
@@ -299,7 +299,7 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
299
299
  * @param getTopFilterAttributes.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
300
300
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
301
301
  */
302
- getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags, }: GetTopFilterAttributesProps, requestOptions?: RequestOptions): Promise<GetTopFilterAttributesResponse>;
302
+ getTopFilterAttributes({ index, search, startDate, endDate, limit, offset, tags }: GetTopFilterAttributesProps, requestOptions?: RequestOptions): Promise<GetTopFilterAttributesResponse>;
303
303
  /**
304
304
  * Retrieves the most frequent filter (facet) values for a filter attribute. These are attributes of your records that you included in the `attributesForFaceting` setting.
305
305
  *
@@ -317,7 +317,7 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
317
317
  * @param getTopFilterForAttribute.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
318
318
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
319
319
  */
320
- getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags, }: GetTopFilterForAttributeProps, requestOptions?: RequestOptions): Promise<GetTopFilterForAttributeResponse>;
320
+ getTopFilterForAttribute({ attribute, index, search, startDate, endDate, limit, offset, tags }: GetTopFilterForAttributeProps, requestOptions?: RequestOptions): Promise<GetTopFilterForAttributeResponse>;
321
321
  /**
322
322
  * Retrieves the most frequently used filters for a search that didn\'t return any results. To get the most frequent searches without results, use the [Retrieve searches without results](#tag/search/operation/getSearchesNoResults) operation.
323
323
  *
@@ -334,7 +334,7 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
334
334
  * @param getTopFiltersNoResults.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
335
335
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
336
336
  */
337
- getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags, }: GetTopFiltersNoResultsProps, requestOptions?: RequestOptions): Promise<GetTopFiltersNoResultsResponse>;
337
+ getTopFiltersNoResults({ index, search, startDate, endDate, limit, offset, tags }: GetTopFiltersNoResultsProps, requestOptions?: RequestOptions): Promise<GetTopFiltersNoResultsResponse>;
338
338
  /**
339
339
  * Retrieves the object IDs of the most frequent search results.
340
340
  *
@@ -353,7 +353,7 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
353
353
  * @param getTopHits.tags - Tags by which to segment the analytics. You can combine multiple tags with `OR` and `AND`. Tags must be URL-encoded. For more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
354
354
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
355
355
  */
356
- getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags, }: GetTopHitsProps, requestOptions?: RequestOptions): Promise<GetTopHitsResponse>;
356
+ getTopHits({ index, search, clickAnalytics, revenueAnalytics, startDate, endDate, limit, offset, tags }: GetTopHitsProps, requestOptions?: RequestOptions): Promise<GetTopHitsResponse>;
357
357
  /**
358
358
  * Returns the most popular search terms.
359
359
  *
@@ -1 +1 @@
1
- {"version":3,"file":"analyticsClient.d.ts","sourceRoot":"","sources":["../../src/analyticsClient.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,OAAO,CAAC,8BAA8B,CAAC;IAyC1C;;;;;;;;;;;;;;;;;OAiBG;6GAE6F,eAAe,mBAC5F,cAAc,GAC9B,OAAO,CAAC,kBAAkB,CAAC;IAgD9B;;;;;;;;;;;;;;;;;;OAkBG;8HAaE,mBAAmB,mBACL,cAAc,GAC9B,OAAO,CAAC,sBAAsB,CAAC;IAkDlC;;;;;;;;;;;;OAYG;uDAEoC,kBAAkB,mBACtC,cAAc,GAC9B,OAAO,CAAC,qBAAqB,CAAC;EAiCpC"}
@@ -46,7 +46,7 @@ export type CustomPostProps = {
46
46
  /**
47
47
  * Parameters to send with the custom request.
48
48
  */
49
- body?: Record<string, any>;
49
+ body?: Record<string, unknown>;
50
50
  };
51
51
 
52
52
  /**
@@ -64,7 +64,7 @@ export type CustomPutProps = {
64
64
  /**
65
65
  * Parameters to send with the custom request.
66
66
  */
67
- body?: Record<string, any>;
67
+ body?: Record<string, unknown>;
68
68
  };
69
69
 
70
70
  /**
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Currency code.
5
5
  */
6
- export type CurrenciesValue = {
6
+ export type CurrencyCode = {
7
7
  /**
8
8
  * Currency code.
9
9
  */
@@ -1,12 +1,12 @@
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 { CurrenciesValue } from './currenciesValue';
3
+ import type { CurrencyCode } from './currencyCode';
4
4
 
5
5
  export type DailyRevenue = {
6
6
  /**
7
7
  * Revenue associated with this search, broken-down by currencies.
8
8
  */
9
- currencies: Record<string, CurrenciesValue>;
9
+ currencies: Record<string, CurrencyCode>;
10
10
 
11
11
  /**
12
12
  * Date in the format YYYY-MM-DD.
@@ -1,13 +1,13 @@
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 { CurrenciesValue } from './currenciesValue';
3
+ import type { CurrencyCode } from './currencyCode';
4
4
  import type { DailyRevenue } from './dailyRevenue';
5
5
 
6
6
  export type GetRevenue = {
7
7
  /**
8
8
  * Revenue associated with this search, broken-down by currencies.
9
9
  */
10
- currencies: Record<string, CurrenciesValue>;
10
+ currencies: Record<string, CurrencyCode>;
11
11
 
12
12
  /**
13
13
  * Daily revenue.
@@ -4,7 +4,4 @@ import type { TopHitsResponse } from './topHitsResponse';
4
4
  import type { TopHitsResponseWithAnalytics } from './topHitsResponseWithAnalytics';
5
5
  import type { TopHitsResponseWithRevenueAnalytics } from './topHitsResponseWithRevenueAnalytics';
6
6
 
7
- export type GetTopHitsResponse =
8
- | TopHitsResponse
9
- | TopHitsResponseWithAnalytics
10
- | TopHitsResponseWithRevenueAnalytics;
7
+ export type GetTopHitsResponse = TopHitsResponse | TopHitsResponseWithAnalytics | TopHitsResponseWithRevenueAnalytics;
package/model/index.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
  export * from './clickPosition';
4
- export * from './currenciesValue';
4
+ export * from './currencyCode';
5
5
  export * from './dailyAddToCartRates';
6
6
  export * from './dailyAverageClicks';
7
7
  export * from './dailyClickThroughRates';
package/model/orderBy.ts CHANGED
@@ -3,8 +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 =
7
- | 'averageClickPosition'
8
- | 'clickThroughRate'
9
- | 'conversionRate'
10
- | 'searchCount';
6
+ export type OrderBy = 'averageClickPosition' | 'clickThroughRate' | 'conversionRate' | 'searchCount';
@@ -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 { CurrenciesValue } from './currenciesValue';
3
+ import type { CurrencyCode } from './currencyCode';
4
4
 
5
5
  export type TopHitWithRevenueAnalytics = {
6
6
  /**
@@ -61,5 +61,5 @@ export type TopHitWithRevenueAnalytics = {
61
61
  /**
62
62
  * Revenue associated with this search, broken-down by currencies.
63
63
  */
64
- currencies: Record<string, CurrenciesValue>;
64
+ currencies: Record<string, CurrencyCode>;
65
65
  };
@@ -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
  import type { ClickPosition } from './clickPosition';
4
- import type { CurrenciesValue } from './currenciesValue';
4
+ import type { CurrencyCode } from './currencyCode';
5
5
 
6
6
  export type TopSearchWithRevenueAnalytics = {
7
7
  /**
@@ -57,7 +57,7 @@ export type TopSearchWithRevenueAnalytics = {
57
57
  /**
58
58
  * Revenue associated with this search, broken-down by currencies.
59
59
  */
60
- currencies: Record<string, CurrenciesValue>;
60
+ currencies: Record<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,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/client-analytics",
3
- "version": "5.1.1",
3
+ "version": "5.2.2",
4
4
  "description": "JavaScript client for client-analytics",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,7 @@
18
18
  "default": "./dist/client-analytics.cjs",
19
19
  "types": "./dist/builds/node.d.ts"
20
20
  },
21
- "default": {
21
+ "browser": {
22
22
  "umd": "./dist/client-analytics.umd.js",
23
23
  "module": "./dist/client-analytics.esm.browser.js",
24
24
  "import": "./dist/client-analytics.esm.browser.js",
@@ -44,13 +44,13 @@
44
44
  "clean": "rm -rf ./dist || true"
45
45
  },
46
46
  "dependencies": {
47
- "@algolia/client-common": "5.1.1",
48
- "@algolia/requester-browser-xhr": "5.1.1",
49
- "@algolia/requester-node-http": "5.1.1"
47
+ "@algolia/client-common": "5.2.2",
48
+ "@algolia/requester-browser-xhr": "5.2.2",
49
+ "@algolia/requester-node-http": "5.2.2"
50
50
  },
51
51
  "devDependencies": {
52
- "@types/node": "22.2.0",
53
- "rollup": "4.20.0",
52
+ "@types/node": "22.5.0",
53
+ "rollup": "4.21.0",
54
54
  "typescript": "5.5.4"
55
55
  },
56
56
  "engines": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"currenciesValue.d.ts","sourceRoot":"","sources":["../../model/currenciesValue.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}