@algolia/client-analytics 5.0.0-alpha.91 → 5.0.0-alpha.97

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.
@@ -4,7 +4,7 @@ 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.0.0-alpha.91';
7
+ const apiClientVersion = '5.0.0-alpha.97';
8
8
  const REGIONS = ['de', 'us'];
9
9
  function getDefaultHosts(region) {
10
10
  const url = !region
@@ -67,14 +67,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
67
67
  * This method allow you to send requests to the Algolia REST API.
68
68
  *
69
69
  * @summary Send requests to the Algolia REST API.
70
- * @param del - The del object.
71
- * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
72
- * @param del.parameters - Query parameters to apply to the current query.
70
+ * @param customDelete - The customDelete object.
71
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
72
+ * @param customDelete.parameters - Query parameters to apply to the current query.
73
73
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
74
74
  */
75
- del({ path, parameters }, requestOptions) {
75
+ customDelete({ path, parameters }, requestOptions) {
76
76
  if (!path) {
77
- throw new Error('Parameter `path` is required when calling `del`.');
77
+ throw new Error('Parameter `path` is required when calling `customDelete`.');
78
78
  }
79
79
  const requestPath = '/1{path}'.replace('{path}', path);
80
80
  const headers = {};
@@ -91,14 +91,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
91
91
  * This method allow you to send requests to the Algolia REST API.
92
92
  *
93
93
  * @summary Send requests to the Algolia REST API.
94
- * @param get - The get object.
95
- * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
96
- * @param get.parameters - Query parameters to apply to the current query.
94
+ * @param customGet - The customGet object.
95
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
96
+ * @param customGet.parameters - Query parameters to apply to the current query.
97
97
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
98
98
  */
99
- get({ path, parameters }, requestOptions) {
99
+ customGet({ path, parameters }, requestOptions) {
100
100
  if (!path) {
101
- throw new Error('Parameter `path` is required when calling `get`.');
101
+ throw new Error('Parameter `path` is required when calling `customGet`.');
102
102
  }
103
103
  const requestPath = '/1{path}'.replace('{path}', path);
104
104
  const headers = {};
@@ -111,6 +111,58 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
111
111
  };
112
112
  return transporter.request(request, requestOptions);
113
113
  },
114
+ /**
115
+ * This method allow you to send requests to the Algolia REST API.
116
+ *
117
+ * @summary Send requests to the Algolia REST API.
118
+ * @param customPost - The customPost object.
119
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
120
+ * @param customPost.parameters - Query parameters to apply to the current query.
121
+ * @param customPost.body - Parameters to send with the custom request.
122
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
123
+ */
124
+ customPost({ path, parameters, body }, requestOptions) {
125
+ if (!path) {
126
+ throw new Error('Parameter `path` is required when calling `customPost`.');
127
+ }
128
+ const requestPath = '/1{path}'.replace('{path}', path);
129
+ const headers = {};
130
+ const queryParameters = parameters ? parameters : {};
131
+ const request = {
132
+ method: 'POST',
133
+ path: requestPath,
134
+ queryParameters,
135
+ headers,
136
+ data: body ? body : {},
137
+ };
138
+ return transporter.request(request, requestOptions);
139
+ },
140
+ /**
141
+ * This method allow you to send requests to the Algolia REST API.
142
+ *
143
+ * @summary Send requests to the Algolia REST API.
144
+ * @param customPut - The customPut object.
145
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
146
+ * @param customPut.parameters - Query parameters to apply to the current query.
147
+ * @param customPut.body - Parameters to send with the custom request.
148
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
149
+ */
150
+ customPut({ path, parameters, body }, requestOptions) {
151
+ if (!path) {
152
+ throw new Error('Parameter `path` is required when calling `customPut`.');
153
+ }
154
+ const requestPath = '/1{path}'.replace('{path}', path);
155
+ const headers = {};
156
+ const queryParameters = parameters ? parameters : {};
157
+ const request = {
158
+ method: 'PUT',
159
+ path: requestPath,
160
+ queryParameters,
161
+ headers,
162
+ data: body ? body : {},
163
+ };
164
+ return transporter.request(request, requestOptions);
165
+ },
114
166
  /**
115
167
  * Return the average click position for the complete time range and for individual days. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn\'t receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
116
168
  *
@@ -845,58 +897,6 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
845
897
  };
846
898
  return transporter.request(request, requestOptions);
847
899
  },
848
- /**
849
- * This method allow you to send requests to the Algolia REST API.
850
- *
851
- * @summary Send requests to the Algolia REST API.
852
- * @param post - The post object.
853
- * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
854
- * @param post.parameters - Query parameters to apply to the current query.
855
- * @param post.body - Parameters to send with the custom request.
856
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
857
- */
858
- post({ path, parameters, body }, requestOptions) {
859
- if (!path) {
860
- throw new Error('Parameter `path` is required when calling `post`.');
861
- }
862
- const requestPath = '/1{path}'.replace('{path}', path);
863
- const headers = {};
864
- const queryParameters = parameters ? parameters : {};
865
- const request = {
866
- method: 'POST',
867
- path: requestPath,
868
- queryParameters,
869
- headers,
870
- data: body ? body : {},
871
- };
872
- return transporter.request(request, requestOptions);
873
- },
874
- /**
875
- * This method allow you to send requests to the Algolia REST API.
876
- *
877
- * @summary Send requests to the Algolia REST API.
878
- * @param put - The put object.
879
- * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
880
- * @param put.parameters - Query parameters to apply to the current query.
881
- * @param put.body - Parameters to send with the custom request.
882
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
883
- */
884
- put({ path, parameters, body }, requestOptions) {
885
- if (!path) {
886
- throw new Error('Parameter `path` is required when calling `put`.');
887
- }
888
- const requestPath = '/1{path}'.replace('{path}', path);
889
- const headers = {};
890
- const queryParameters = parameters ? parameters : {};
891
- const request = {
892
- method: 'PUT',
893
- path: requestPath,
894
- queryParameters,
895
- headers,
896
- data: body ? body : {},
897
- };
898
- return transporter.request(request, requestOptions);
899
- },
900
900
  };
901
901
  }
902
902
 
@@ -26,14 +26,35 @@ function createBrowserLocalStorageCache(options) {
26
26
  function getNamespace() {
27
27
  return JSON.parse(getStorage().getItem(namespaceKey) || '{}');
28
28
  }
29
+ function setNamespace(namespace) {
30
+ getStorage().setItem(namespaceKey, JSON.stringify(namespace));
31
+ }
32
+ function removeOutdatedCacheItems() {
33
+ const timeToLive = options.timeToLive ? options.timeToLive * 1000 : null;
34
+ const namespace = getNamespace();
35
+ const filteredNamespaceWithoutOldFormattedCacheItems = Object.fromEntries(Object.entries(namespace).filter(([, cacheItem]) => {
36
+ return cacheItem.timestamp !== undefined;
37
+ }));
38
+ setNamespace(filteredNamespaceWithoutOldFormattedCacheItems);
39
+ if (!timeToLive) {
40
+ return;
41
+ }
42
+ const filteredNamespaceWithoutExpiredItems = Object.fromEntries(Object.entries(filteredNamespaceWithoutOldFormattedCacheItems).filter(([, cacheItem]) => {
43
+ const currentTimestamp = new Date().getTime();
44
+ const isExpired = cacheItem.timestamp + timeToLive < currentTimestamp;
45
+ return !isExpired;
46
+ }));
47
+ setNamespace(filteredNamespaceWithoutExpiredItems);
48
+ }
29
49
  return {
30
50
  get(key, defaultValue, events = {
31
51
  miss: () => Promise.resolve()
32
52
  }) {
33
53
  return Promise.resolve().then(() => {
34
- const keyAsString = JSON.stringify(key);
35
- const value = getNamespace()[keyAsString];
36
- return Promise.all([value || defaultValue(), value !== undefined]);
54
+ removeOutdatedCacheItems();
55
+ return getNamespace()[JSON.stringify(key)];
56
+ }).then(value => {
57
+ return Promise.all([value ? value.value : defaultValue(), value !== undefined]);
37
58
  }).then(([value, exists]) => {
38
59
  return Promise.all([value, exists || events.miss(value)]);
39
60
  }).then(([value]) => value);
@@ -41,7 +62,10 @@ function createBrowserLocalStorageCache(options) {
41
62
  set(key, value) {
42
63
  return Promise.resolve().then(() => {
43
64
  const namespace = getNamespace();
44
- namespace[JSON.stringify(key)] = value;
65
+ namespace[JSON.stringify(key)] = {
66
+ timestamp: new Date().getTime(),
67
+ value
68
+ };
45
69
  getStorage().setItem(namespaceKey, JSON.stringify(namespace));
46
70
  return value;
47
71
  });
@@ -171,6 +195,20 @@ function createStatefulHost(host, status = 'up') {
171
195
  };
172
196
  }
173
197
 
198
+ function _toPrimitive(t, r) {
199
+ if ("object" != typeof t || !t) return t;
200
+ var e = t[Symbol.toPrimitive];
201
+ if (void 0 !== e) {
202
+ var i = e.call(t, r || "default");
203
+ if ("object" != typeof i) return i;
204
+ throw new TypeError("@@toPrimitive must return a primitive value.");
205
+ }
206
+ return ("string" === r ? String : Number)(t);
207
+ }
208
+ function _toPropertyKey(t) {
209
+ var i = _toPrimitive(t, "string");
210
+ return "symbol" == typeof i ? i : String(i);
211
+ }
174
212
  function _defineProperty(obj, key, value) {
175
213
  key = _toPropertyKey(key);
176
214
  if (key in obj) {
@@ -185,20 +223,6 @@ function _defineProperty(obj, key, value) {
185
223
  }
186
224
  return obj;
187
225
  }
188
- function _toPrimitive(input, hint) {
189
- if (typeof input !== "object" || input === null) return input;
190
- var prim = input[Symbol.toPrimitive];
191
- if (prim !== undefined) {
192
- var res = prim.call(input, hint || "default");
193
- if (typeof res !== "object") return res;
194
- throw new TypeError("@@toPrimitive must return a primitive value.");
195
- }
196
- return (hint === "string" ? String : Number)(input);
197
- }
198
- function _toPropertyKey(arg) {
199
- var key = _toPrimitive(arg, "string");
200
- return typeof key === "symbol" ? key : String(key);
201
- }
202
226
 
203
227
  class AlgoliaError extends Error {
204
228
  constructor(message, name) {
@@ -219,7 +243,7 @@ class ErrorWithStackTrace extends AlgoliaError {
219
243
  }
220
244
  class RetryError extends ErrorWithStackTrace {
221
245
  constructor(stackTrace) {
222
- super('Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.', stackTrace, 'RetryError');
246
+ super('Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.', stackTrace, 'RetryError');
223
247
  }
224
248
  }
225
249
  class ApiError extends ErrorWithStackTrace {
@@ -662,7 +686,7 @@ function createXhrRequester() {
662
686
  }
663
687
 
664
688
  // 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.
665
- const apiClientVersion = '5.0.0-alpha.91';
689
+ const apiClientVersion = '5.0.0-alpha.97';
666
690
  const REGIONS = ['de', 'us'];
667
691
  function getDefaultHosts(region) {
668
692
  const url = !region
@@ -725,14 +749,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
725
749
  * This method allow you to send requests to the Algolia REST API.
726
750
  *
727
751
  * @summary Send requests to the Algolia REST API.
728
- * @param del - The del object.
729
- * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
730
- * @param del.parameters - Query parameters to apply to the current query.
752
+ * @param customDelete - The customDelete object.
753
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
754
+ * @param customDelete.parameters - Query parameters to apply to the current query.
731
755
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
732
756
  */
733
- del({ path, parameters }, requestOptions) {
757
+ customDelete({ path, parameters }, requestOptions) {
734
758
  if (!path) {
735
- throw new Error('Parameter `path` is required when calling `del`.');
759
+ throw new Error('Parameter `path` is required when calling `customDelete`.');
736
760
  }
737
761
  const requestPath = '/1{path}'.replace('{path}', path);
738
762
  const headers = {};
@@ -749,14 +773,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
749
773
  * This method allow you to send requests to the Algolia REST API.
750
774
  *
751
775
  * @summary Send requests to the Algolia REST API.
752
- * @param get - The get object.
753
- * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
754
- * @param get.parameters - Query parameters to apply to the current query.
776
+ * @param customGet - The customGet object.
777
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
778
+ * @param customGet.parameters - Query parameters to apply to the current query.
755
779
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
756
780
  */
757
- get({ path, parameters }, requestOptions) {
781
+ customGet({ path, parameters }, requestOptions) {
758
782
  if (!path) {
759
- throw new Error('Parameter `path` is required when calling `get`.');
783
+ throw new Error('Parameter `path` is required when calling `customGet`.');
760
784
  }
761
785
  const requestPath = '/1{path}'.replace('{path}', path);
762
786
  const headers = {};
@@ -769,6 +793,58 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
769
793
  };
770
794
  return transporter.request(request, requestOptions);
771
795
  },
796
+ /**
797
+ * This method allow you to send requests to the Algolia REST API.
798
+ *
799
+ * @summary Send requests to the Algolia REST API.
800
+ * @param customPost - The customPost object.
801
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
802
+ * @param customPost.parameters - Query parameters to apply to the current query.
803
+ * @param customPost.body - Parameters to send with the custom request.
804
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
805
+ */
806
+ customPost({ path, parameters, body }, requestOptions) {
807
+ if (!path) {
808
+ throw new Error('Parameter `path` is required when calling `customPost`.');
809
+ }
810
+ const requestPath = '/1{path}'.replace('{path}', path);
811
+ const headers = {};
812
+ const queryParameters = parameters ? parameters : {};
813
+ const request = {
814
+ method: 'POST',
815
+ path: requestPath,
816
+ queryParameters,
817
+ headers,
818
+ data: body ? body : {},
819
+ };
820
+ return transporter.request(request, requestOptions);
821
+ },
822
+ /**
823
+ * This method allow you to send requests to the Algolia REST API.
824
+ *
825
+ * @summary Send requests to the Algolia REST API.
826
+ * @param customPut - The customPut object.
827
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
828
+ * @param customPut.parameters - Query parameters to apply to the current query.
829
+ * @param customPut.body - Parameters to send with the custom request.
830
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
831
+ */
832
+ customPut({ path, parameters, body }, requestOptions) {
833
+ if (!path) {
834
+ throw new Error('Parameter `path` is required when calling `customPut`.');
835
+ }
836
+ const requestPath = '/1{path}'.replace('{path}', path);
837
+ const headers = {};
838
+ const queryParameters = parameters ? parameters : {};
839
+ const request = {
840
+ method: 'PUT',
841
+ path: requestPath,
842
+ queryParameters,
843
+ headers,
844
+ data: body ? body : {},
845
+ };
846
+ return transporter.request(request, requestOptions);
847
+ },
772
848
  /**
773
849
  * Return the average click position for the complete time range and for individual days. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn\'t receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
774
850
  *
@@ -1503,58 +1579,6 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1503
1579
  };
1504
1580
  return transporter.request(request, requestOptions);
1505
1581
  },
1506
- /**
1507
- * This method allow you to send requests to the Algolia REST API.
1508
- *
1509
- * @summary Send requests to the Algolia REST API.
1510
- * @param post - The post object.
1511
- * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
1512
- * @param post.parameters - Query parameters to apply to the current query.
1513
- * @param post.body - Parameters to send with the custom request.
1514
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1515
- */
1516
- post({ path, parameters, body }, requestOptions) {
1517
- if (!path) {
1518
- throw new Error('Parameter `path` is required when calling `post`.');
1519
- }
1520
- const requestPath = '/1{path}'.replace('{path}', path);
1521
- const headers = {};
1522
- const queryParameters = parameters ? parameters : {};
1523
- const request = {
1524
- method: 'POST',
1525
- path: requestPath,
1526
- queryParameters,
1527
- headers,
1528
- data: body ? body : {},
1529
- };
1530
- return transporter.request(request, requestOptions);
1531
- },
1532
- /**
1533
- * This method allow you to send requests to the Algolia REST API.
1534
- *
1535
- * @summary Send requests to the Algolia REST API.
1536
- * @param put - The put object.
1537
- * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
1538
- * @param put.parameters - Query parameters to apply to the current query.
1539
- * @param put.body - Parameters to send with the custom request.
1540
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1541
- */
1542
- put({ path, parameters, body }, requestOptions) {
1543
- if (!path) {
1544
- throw new Error('Parameter `path` is required when calling `put`.');
1545
- }
1546
- const requestPath = '/1{path}'.replace('{path}', path);
1547
- const headers = {};
1548
- const queryParameters = parameters ? parameters : {};
1549
- const request = {
1550
- method: 'PUT',
1551
- path: requestPath,
1552
- queryParameters,
1553
- headers,
1554
- data: body ? body : {},
1555
- };
1556
- return transporter.request(request, requestOptions);
1557
- },
1558
1582
  };
1559
1583
  }
1560
1584
 
@@ -2,7 +2,7 @@ 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.0.0-alpha.91';
5
+ const apiClientVersion = '5.0.0-alpha.97';
6
6
  const REGIONS = ['de', 'us'];
7
7
  function getDefaultHosts(region) {
8
8
  const url = !region
@@ -65,14 +65,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
65
65
  * This method allow you to send requests to the Algolia REST API.
66
66
  *
67
67
  * @summary Send requests to the Algolia REST API.
68
- * @param del - The del object.
69
- * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
70
- * @param del.parameters - Query parameters to apply to the current query.
68
+ * @param customDelete - The customDelete object.
69
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
70
+ * @param customDelete.parameters - Query parameters to apply to the current query.
71
71
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
72
72
  */
73
- del({ path, parameters }, requestOptions) {
73
+ customDelete({ path, parameters }, requestOptions) {
74
74
  if (!path) {
75
- throw new Error('Parameter `path` is required when calling `del`.');
75
+ throw new Error('Parameter `path` is required when calling `customDelete`.');
76
76
  }
77
77
  const requestPath = '/1{path}'.replace('{path}', path);
78
78
  const headers = {};
@@ -89,14 +89,14 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
89
89
  * This method allow you to send requests to the Algolia REST API.
90
90
  *
91
91
  * @summary Send requests to the Algolia REST API.
92
- * @param get - The get object.
93
- * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
94
- * @param get.parameters - Query parameters to apply to the current query.
92
+ * @param customGet - The customGet object.
93
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
94
+ * @param customGet.parameters - Query parameters to apply to the current query.
95
95
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
96
96
  */
97
- get({ path, parameters }, requestOptions) {
97
+ customGet({ path, parameters }, requestOptions) {
98
98
  if (!path) {
99
- throw new Error('Parameter `path` is required when calling `get`.');
99
+ throw new Error('Parameter `path` is required when calling `customGet`.');
100
100
  }
101
101
  const requestPath = '/1{path}'.replace('{path}', path);
102
102
  const headers = {};
@@ -109,6 +109,58 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
109
109
  };
110
110
  return transporter.request(request, requestOptions);
111
111
  },
112
+ /**
113
+ * This method allow you to send requests to the Algolia REST API.
114
+ *
115
+ * @summary Send requests to the Algolia REST API.
116
+ * @param customPost - The customPost object.
117
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
118
+ * @param customPost.parameters - Query parameters to apply to the current query.
119
+ * @param customPost.body - Parameters to send with the custom request.
120
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
121
+ */
122
+ customPost({ path, parameters, body }, requestOptions) {
123
+ if (!path) {
124
+ throw new Error('Parameter `path` is required when calling `customPost`.');
125
+ }
126
+ const requestPath = '/1{path}'.replace('{path}', path);
127
+ const headers = {};
128
+ const queryParameters = parameters ? parameters : {};
129
+ const request = {
130
+ method: 'POST',
131
+ path: requestPath,
132
+ queryParameters,
133
+ headers,
134
+ data: body ? body : {},
135
+ };
136
+ return transporter.request(request, requestOptions);
137
+ },
138
+ /**
139
+ * This method allow you to send requests to the Algolia REST API.
140
+ *
141
+ * @summary Send requests to the Algolia REST API.
142
+ * @param customPut - The customPut object.
143
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
144
+ * @param customPut.parameters - Query parameters to apply to the current query.
145
+ * @param customPut.body - Parameters to send with the custom request.
146
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
147
+ */
148
+ customPut({ path, parameters, body }, requestOptions) {
149
+ if (!path) {
150
+ throw new Error('Parameter `path` is required when calling `customPut`.');
151
+ }
152
+ const requestPath = '/1{path}'.replace('{path}', path);
153
+ const headers = {};
154
+ const queryParameters = parameters ? parameters : {};
155
+ const request = {
156
+ method: 'PUT',
157
+ path: requestPath,
158
+ queryParameters,
159
+ headers,
160
+ data: body ? body : {},
161
+ };
162
+ return transporter.request(request, requestOptions);
163
+ },
112
164
  /**
113
165
  * Return the average click position for the complete time range and for individual days. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn\'t receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
114
166
  *
@@ -843,58 +895,6 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
843
895
  };
844
896
  return transporter.request(request, requestOptions);
845
897
  },
846
- /**
847
- * This method allow you to send requests to the Algolia REST API.
848
- *
849
- * @summary Send requests to the Algolia REST API.
850
- * @param post - The post object.
851
- * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
852
- * @param post.parameters - Query parameters to apply to the current query.
853
- * @param post.body - Parameters to send with the custom request.
854
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
855
- */
856
- post({ path, parameters, body }, requestOptions) {
857
- if (!path) {
858
- throw new Error('Parameter `path` is required when calling `post`.');
859
- }
860
- const requestPath = '/1{path}'.replace('{path}', path);
861
- const headers = {};
862
- const queryParameters = parameters ? parameters : {};
863
- const request = {
864
- method: 'POST',
865
- path: requestPath,
866
- queryParameters,
867
- headers,
868
- data: body ? body : {},
869
- };
870
- return transporter.request(request, requestOptions);
871
- },
872
- /**
873
- * This method allow you to send requests to the Algolia REST API.
874
- *
875
- * @summary Send requests to the Algolia REST API.
876
- * @param put - The put object.
877
- * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
878
- * @param put.parameters - Query parameters to apply to the current query.
879
- * @param put.body - Parameters to send with the custom request.
880
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
881
- */
882
- put({ path, parameters, body }, requestOptions) {
883
- if (!path) {
884
- throw new Error('Parameter `path` is required when calling `put`.');
885
- }
886
- const requestPath = '/1{path}'.replace('{path}', path);
887
- const headers = {};
888
- const queryParameters = parameters ? parameters : {};
889
- const request = {
890
- method: 'PUT',
891
- path: requestPath,
892
- queryParameters,
893
- headers,
894
- data: body ? body : {},
895
- };
896
- return transporter.request(request, requestOptions);
897
- },
898
898
  };
899
899
  }
900
900
 
@@ -1,2 +1,2 @@
1
- /*! client-analytics.umd.js | 5.0.0-alpha.91 | © 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)||"{}")}return{get:(e,t,r={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>{const r=JSON.stringify(e),i=o()[r];return Promise.all([i||t(),void 0!==i])})).then((([e,t])=>Promise.all([e,t||r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const s=o();return s[JSON.stringify(e)]=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||null===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:String(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, contact support@algolia.com.",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=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r])}`)).join("&")}(r);let o=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return i.length&&(o+=`?${i}`),o}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 p({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:i,algoliaAgent:o,timeouts:a,requester:n,requestsCache:d,responsesCache:p}){async function f(d,p,f=!0){const v=[],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,p),y=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,p.headers),w="GET"===d.method?{...d.data,...p.data}:{},P={...i,...d.queryParameters,...w};if(o.value&&(P["x-algolia-agent"]=o.value),p&&p.queryParameters)for(const e of Object.keys(p.queryParameters))p.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(p.queryParameters[e])?P[e]=p.queryParameters[e].toString():P[e]=p.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)))}(v));let o=p.timeout;void 0===o&&(o=f?a.read:a.write);const w={data:S,headers:y,method:d.method,url:h(i,d.path,P),connectTimeout:r(q,a.connect),responseTimeout:r(q,o)},T=t=>{const r={request:w,response:t,host:i,triesLeft:e.length};return v.push(r),r},x=await n.send(w);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~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,v)},T=e.filter((e=>"readWrite"===e.accept||(f?"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 f(e,t,o);const s=()=>f(e,t);if(!0!==(t.cacheable||e.cacheable))return s();const a={request:e,requestOptions:t,transporter:{queryParameters:i,headers:r}};return p.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=>p.set(a,e)})},requestsCache:d,responsesCache:p}}function f({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 v="5.0.0-alpha.91",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=p({hosts:(d=o,[{url:d?"analytics.{region}.algolia.com".replace("{region}",d):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]),...s,algoliaAgent:f({algoliaAgents:i,client:"Analytics",version:v}),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})},del({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `del`.");const i={method:"DELETE",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return n.request(i,r)},get({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `get`.");const i={method:"GET",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return n.request(i,r)},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)},getConversationRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getConversationRate`.");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)},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,startDate:i,endDate:o,limit:s,offset:a,tags:d},c){if(!e)throw new Error("Parameter `index` is required when calling `getTopHits`.");const u={};void 0!==e&&(u.index=e.toString()),void 0!==t&&(u.search=t.toString()),void 0!==r&&(u.clickAnalytics=r.toString()),void 0!==i&&(u.startDate=i.toString()),void 0!==o&&(u.endDate=o.toString()),void 0!==s&&(u.limit=s.toString()),void 0!==a&&(u.offset=a.toString()),void 0!==d&&(u.tags=d.toString());const l={method:"GET",path:"/2/hits",queryParameters:u,headers:{}};return n.request(l,c)},getTopSearches({index:e,clickAnalytics:t,startDate:r,endDate:i,orderBy:o,direction:s,limit:a,offset:d,tags:c},u){if(!e)throw new Error("Parameter `index` is required when calling `getTopSearches`.");const l={};void 0!==e&&(l.index=e.toString()),void 0!==t&&(l.clickAnalytics=t.toString()),void 0!==r&&(l.startDate=r.toString()),void 0!==i&&(l.endDate=i.toString()),void 0!==o&&(l.orderBy=o.toString()),void 0!==s&&(l.direction=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/searches",queryParameters:l,headers:{}};return n.request(g,u)},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)},post({path:e,parameters:t,body:r},i){if(!e)throw new Error("Parameter `path` is required when calling `post`.");const o={method:"POST",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return n.request(o,i)},put({path:e,parameters:t,body:r},i){if(!e)throw new Error("Parameter `path` is required when calling `put`.");const o={method:"PUT",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return n.request(o,i)}}}({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:`${v}-${e}`}),i()]}),...a})},e.apiClientVersion=v}));
1
+ /*! client-analytics.umd.js | 5.0.0-alpha.97 | © 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){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:String(t)}function n(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class c extends Error{constructor(e,t){super(e),n(this,"name","AlgoliaError"),t&&(this.name=t)}}class d extends c{constructor(e,t,r){super(e,r),n(this,"stackTrace",void 0),this.stackTrace=t}}class u extends d{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.",e,"RetryError")}}class l extends d{constructor(e,t,r,i="ApiError"){super(e,r,i),n(this,"status",void 0),this.status=t}}class g extends c{constructor(e,t){super(e,"DeserializationError"),n(this,"response",void 0),this.response=t}}class h extends l{constructor(e,t,r,i){super(e,t,i,"DetailedApiError"),n(this,"error",void 0),this.error=r}}function m(e,t,r){const i=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r])}`)).join("&")}(r);let o=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return i.length&&(o+=`?${i}`),o}function p(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 f({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:i,algoliaAgent:o,timeouts:a,requester:n,requestsCache:c,responsesCache:d}){async function f(c,d,f=!0){const v=[],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)}(c,d),y=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,c.headers,d.headers),w="GET"===c.method?{...c.data,...d.data}:{},P={...i,...c.queryParameters,...w};if(o.value&&(P["x-algolia-agent"]=o.value),d&&d.queryParameters)for(const e of Object.keys(d.queryParameters))d.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(d.queryParameters[e])?P[e]=d.queryParameters[e].toString():P[e]=d.queryParameters[e];let q=0;const D=async(e,r)=>{const i=e.pop();if(void 0===i)throw new u(function(e){return e.map((e=>p(e)))}(v));let o=d.timeout;void 0===o&&(o=f?a.read:a.write);const w={data:S,headers:y,method:c.method,url:m(i,c.path,P),connectTimeout:r(q,a.connect),responseTimeout:r(q,o)},T=t=>{const r={request:w,response:t,host:i,triesLeft:e.length};return v.push(r),r},x=await n.send(w);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(x)){const o=T(x);return x.isTimedOut&&q++,console.log("Retryable failure",p(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 g(t.message,e)}}(x);throw T(x),function({content:e,status:t},r){try{const i=JSON.parse(e);return"error"in i?new h(i.message,t,i.error,r):new l(i.message,t,r)}catch(e){}return new l(e,t,r)}(x,v)},T=e.filter((e=>"readWrite"===e.accept||(f?"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 f(e,t,o);const s=()=>f(e,t);if(!0!==(t.cacheable||e.cacheable))return s();const a={request:e,requestOptions:t,transporter:{queryParameters:i,headers:r}};return d.get(a,(()=>c.get(a,(()=>c.set(a,s()).then((e=>Promise.all([c.delete(a),e])),(e=>Promise.all([c.delete(a),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>d.set(a,e)})},requestsCache:c,responsesCache:d}}function v({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 S="5.0.0-alpha.97",y=["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||!y.includes(s)))throw new Error(`\`region\` must be one of the following: ${y.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=f({hosts:(c=o,[{url:c?"analytics.{region}.algolia.com".replace("{region}",c):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]),...s,algoliaAgent:v({algoliaAgents:i,client:"Analytics",version:S}),baseHeaders:{"content-type":"text/plain",...a.headers(),...s.baseHeaders},baseQueryParameters:{...a.queryParameters(),...s.baseQueryParameters}});var c;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:"/1{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:"/1{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:"/1{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:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return n.request(o,i)},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)},getConversationRate({index:e,startDate:t,endDate:r,tags:i},o){if(!e)throw new Error("Parameter `index` is required when calling `getConversationRate`.");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)},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 c={};void 0!==e&&(c.index=e.toString()),void 0!==t&&(c.startDate=t.toString()),void 0!==r&&(c.endDate=r.toString()),void 0!==i&&(c.limit=i.toString()),void 0!==o&&(c.offset=o.toString()),void 0!==s&&(c.tags=s.toString());const d={method:"GET",path:"/2/searches/noClicks",queryParameters:c,headers:{}};return n.request(d,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 c={};void 0!==e&&(c.index=e.toString()),void 0!==t&&(c.startDate=t.toString()),void 0!==r&&(c.endDate=r.toString()),void 0!==i&&(c.limit=i.toString()),void 0!==o&&(c.offset=o.toString()),void 0!==s&&(c.tags=s.toString());const d={method:"GET",path:"/2/searches/noResults",queryParameters:c,headers:{}};return n.request(d,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 c={};void 0!==e&&(c.index=e.toString()),void 0!==t&&(c.startDate=t.toString()),void 0!==r&&(c.endDate=r.toString()),void 0!==i&&(c.limit=i.toString()),void 0!==o&&(c.offset=o.toString()),void 0!==s&&(c.tags=s.toString());const d={method:"GET",path:"/2/countries",queryParameters:c,headers:{}};return n.request(d,a)},getTopFilterAttributes({index:e,search:t,startDate:r,endDate:i,limit:o,offset:s,tags:a},c){if(!e)throw new Error("Parameter `index` is required when calling `getTopFilterAttributes`.");const d={};void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.search=t.toString()),void 0!==r&&(d.startDate=r.toString()),void 0!==i&&(d.endDate=i.toString()),void 0!==o&&(d.limit=o.toString()),void 0!==s&&(d.offset=s.toString()),void 0!==a&&(d.tags=a.toString());const u={method:"GET",path:"/2/filters",queryParameters:d,headers:{}};return n.request(u,c)},getTopFilterForAttribute({attribute:e,index:t,search:r,startDate:i,endDate:o,limit:s,offset:a,tags:c},d){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!==c&&(l.tags=c.toString());const g={method:"GET",path:u,queryParameters:l,headers:{}};return n.request(g,d)},getTopFiltersNoResults({index:e,search:t,startDate:r,endDate:i,limit:o,offset:s,tags:a},c){if(!e)throw new Error("Parameter `index` is required when calling `getTopFiltersNoResults`.");const d={};void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.search=t.toString()),void 0!==r&&(d.startDate=r.toString()),void 0!==i&&(d.endDate=i.toString()),void 0!==o&&(d.limit=o.toString()),void 0!==s&&(d.offset=s.toString()),void 0!==a&&(d.tags=a.toString());const u={method:"GET",path:"/2/filters/noResults",queryParameters:d,headers:{}};return n.request(u,c)},getTopHits({index:e,search:t,clickAnalytics:r,startDate:i,endDate:o,limit:s,offset:a,tags:c},d){if(!e)throw new Error("Parameter `index` is required when calling `getTopHits`.");const u={};void 0!==e&&(u.index=e.toString()),void 0!==t&&(u.search=t.toString()),void 0!==r&&(u.clickAnalytics=r.toString()),void 0!==i&&(u.startDate=i.toString()),void 0!==o&&(u.endDate=o.toString()),void 0!==s&&(u.limit=s.toString()),void 0!==a&&(u.offset=a.toString()),void 0!==c&&(u.tags=c.toString());const l={method:"GET",path:"/2/hits",queryParameters:u,headers:{}};return n.request(l,d)},getTopSearches({index:e,clickAnalytics:t,startDate:r,endDate:i,orderBy:o,direction:s,limit:a,offset:c,tags:d},u){if(!e)throw new Error("Parameter `index` is required when calling `getTopSearches`.");const l={};void 0!==e&&(l.index=e.toString()),void 0!==t&&(l.clickAnalytics=t.toString()),void 0!==r&&(l.startDate=r.toString()),void 0!==i&&(l.endDate=i.toString()),void 0!==o&&(l.orderBy=o.toString()),void 0!==s&&(l.direction=s.toString()),void 0!==a&&(l.limit=a.toString()),void 0!==c&&(l.offset=c.toString()),void 0!==d&&(l.tags=d.toString());const g={method:"GET",path:"/2/searches",queryParameters:l,headers:{}};return n.request(g,u)},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:`${S}-${e}`}),i()]}),...a})},e.apiClientVersion=S}));
@@ -1,9 +1,9 @@
1
1
  import type { Direction } from './direction';
2
2
  import type { OrderBy } from './orderBy';
3
3
  /**
4
- * Properties for the `del` method.
4
+ * Properties for the `customDelete` method.
5
5
  */
6
- export type DelProps = {
6
+ export type CustomDeleteProps = {
7
7
  /**
8
8
  * Path of the endpoint, anything after \"/1\" must be specified.
9
9
  */
@@ -14,9 +14,9 @@ export type DelProps = {
14
14
  parameters?: Record<string, any>;
15
15
  };
16
16
  /**
17
- * Properties for the `get` method.
17
+ * Properties for the `customGet` method.
18
18
  */
19
- export type GetProps = {
19
+ export type CustomGetProps = {
20
20
  /**
21
21
  * Path of the endpoint, anything after \"/1\" must be specified.
22
22
  */
@@ -26,6 +26,40 @@ export type GetProps = {
26
26
  */
27
27
  parameters?: Record<string, any>;
28
28
  };
29
+ /**
30
+ * Properties for the `customPost` method.
31
+ */
32
+ export type CustomPostProps = {
33
+ /**
34
+ * Path of the endpoint, anything after \"/1\" must be specified.
35
+ */
36
+ path: string;
37
+ /**
38
+ * Query parameters to apply to the current query.
39
+ */
40
+ parameters?: Record<string, any>;
41
+ /**
42
+ * Parameters to send with the custom request.
43
+ */
44
+ body?: Record<string, any>;
45
+ };
46
+ /**
47
+ * Properties for the `customPut` method.
48
+ */
49
+ export type CustomPutProps = {
50
+ /**
51
+ * Path of the endpoint, anything after \"/1\" must be specified.
52
+ */
53
+ path: string;
54
+ /**
55
+ * Query parameters to apply to the current query.
56
+ */
57
+ parameters?: Record<string, any>;
58
+ /**
59
+ * Parameters to send with the custom request.
60
+ */
61
+ body?: Record<string, any>;
62
+ };
29
63
  /**
30
64
  * Properties for the `getAverageClickPosition` method.
31
65
  */
@@ -471,38 +505,4 @@ export type GetUsersCountProps = {
471
505
  */
472
506
  tags?: string;
473
507
  };
474
- /**
475
- * Properties for the `post` method.
476
- */
477
- export type PostProps = {
478
- /**
479
- * Path of the endpoint, anything after \"/1\" must be specified.
480
- */
481
- path: string;
482
- /**
483
- * Query parameters to apply to the current query.
484
- */
485
- parameters?: Record<string, any>;
486
- /**
487
- * Parameters to send with the custom request.
488
- */
489
- body?: Record<string, any>;
490
- };
491
- /**
492
- * Properties for the `put` method.
493
- */
494
- export type PutProps = {
495
- /**
496
- * Path of the endpoint, anything after \"/1\" must be specified.
497
- */
498
- path: string;
499
- /**
500
- * Query parameters to apply to the current query.
501
- */
502
- parameters?: Record<string, any>;
503
- /**
504
- * Parameters to send with the custom request.
505
- */
506
- body?: Record<string, any>;
507
- };
508
508
  //# sourceMappingURL=clientMethodProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clientMethod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AE,MAAM,CAAC;CACf,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
2
- import type { DelProps, GetProps, GetAverageClickPositionProps, GetClickPositionsProps, GetClickThroughRateProps, GetConversationRateProps, GetNoClickRateProps, GetNoResultsRateProps, GetSearchesCountProps, GetSearchesNoClicksProps, GetSearchesNoResultsProps, GetStatusProps, GetTopCountriesProps, GetTopFilterAttributesProps, GetTopFilterForAttributeProps, GetTopFiltersNoResultsProps, GetTopHitsProps, GetTopSearchesProps, GetUsersCountProps, PostProps, PutProps } from '../model/clientMethodProps';
2
+ import type { CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, GetAverageClickPositionProps, GetClickPositionsProps, GetClickThroughRateProps, GetConversationRateProps, GetNoClickRateProps, GetNoResultsRateProps, GetSearchesCountProps, GetSearchesNoClicksProps, GetSearchesNoResultsProps, GetStatusProps, GetTopCountriesProps, GetTopFilterAttributesProps, GetTopFilterForAttributeProps, GetTopFiltersNoResultsProps, GetTopHitsProps, GetTopSearchesProps, GetUsersCountProps } from '../model/clientMethodProps';
3
3
  import type { GetAverageClickPositionResponse } from '../model/getAverageClickPositionResponse';
4
4
  import type { GetClickPositionsResponse } from '../model/getClickPositionsResponse';
5
5
  import type { GetClickThroughRateResponse } from '../model/getClickThroughRateResponse';
@@ -17,7 +17,7 @@ import type { GetTopFiltersNoResultsResponse } from '../model/getTopFiltersNoRes
17
17
  import type { GetTopHitsResponse } from '../model/getTopHitsResponse';
18
18
  import type { GetTopSearchesResponse } from '../model/getTopSearchesResponse';
19
19
  import type { GetUsersCountResponse } from '../model/getUsersCountResponse';
20
- export declare const apiClientVersion = "5.0.0-alpha.91";
20
+ export declare const apiClientVersion = "5.0.0-alpha.97";
21
21
  export declare const REGIONS: readonly ["de", "us"];
22
22
  export type Region = (typeof REGIONS)[number];
23
23
  export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
@@ -47,22 +47,44 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
47
47
  * This method allow you to send requests to the Algolia REST API.
48
48
  *
49
49
  * @summary Send requests to the Algolia REST API.
50
- * @param del - The del object.
51
- * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
52
- * @param del.parameters - Query parameters to apply to the current query.
50
+ * @param customDelete - The customDelete object.
51
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
52
+ * @param customDelete.parameters - Query parameters to apply to the current query.
53
53
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
54
54
  */
55
- del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
55
+ customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
56
56
  /**
57
57
  * This method allow you to send requests to the Algolia REST API.
58
58
  *
59
59
  * @summary Send requests to the Algolia REST API.
60
- * @param get - The get object.
61
- * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
62
- * @param get.parameters - Query parameters to apply to the current query.
60
+ * @param customGet - The customGet object.
61
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
62
+ * @param customGet.parameters - Query parameters to apply to the current query.
63
63
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
64
64
  */
65
- get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
65
+ customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
66
+ /**
67
+ * This method allow you to send requests to the Algolia REST API.
68
+ *
69
+ * @summary Send requests to the Algolia REST API.
70
+ * @param customPost - The customPost object.
71
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
72
+ * @param customPost.parameters - Query parameters to apply to the current query.
73
+ * @param customPost.body - Parameters to send with the custom request.
74
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
75
+ */
76
+ customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
77
+ /**
78
+ * This method allow you to send requests to the Algolia REST API.
79
+ *
80
+ * @summary Send requests to the Algolia REST API.
81
+ * @param customPut - The customPut object.
82
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
83
+ * @param customPut.parameters - Query parameters to apply to the current query.
84
+ * @param customPut.body - Parameters to send with the custom request.
85
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
86
+ */
87
+ customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
66
88
  /**
67
89
  * Return the average click position for the complete time range and for individual days. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn\'t receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
68
90
  *
@@ -289,28 +311,6 @@ export declare function createAnalyticsClient({ appId: appIdOption, apiKey: apiK
289
311
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
290
312
  */
291
313
  getUsersCount({ index, startDate, endDate, tags }: GetUsersCountProps, requestOptions?: RequestOptions): Promise<GetUsersCountResponse>;
292
- /**
293
- * This method allow you to send requests to the Algolia REST API.
294
- *
295
- * @summary Send requests to the Algolia REST API.
296
- * @param post - The post object.
297
- * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
298
- * @param post.parameters - Query parameters to apply to the current query.
299
- * @param post.body - Parameters to send with the custom request.
300
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
301
- */
302
- post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
303
- /**
304
- * This method allow you to send requests to the Algolia REST API.
305
- *
306
- * @summary Send requests to the Algolia REST API.
307
- * @param put - The put object.
308
- * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
309
- * @param put.parameters - Query parameters to apply to the current query.
310
- * @param put.body - Parameters to send with the custom request.
311
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
312
- */
313
- put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
314
314
  };
315
315
  /**
316
316
  * The client type.
@@ -1 +1 @@
1
- {"version":3,"file":"analyticsClient.d.ts","sourceRoot":"","sources":["../../src/analyticsClient.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,mBAAmB,EAInB,cAAc,EAEf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EACV,QAAQ,EACR,QAAQ,EACR,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,cAAc,EACd,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACT,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAChG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;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A6CnC;;;;;;;;;;;;;OAaG;wFAUE,2BAA2B,mBACb,cAAc,GAC9B,QAAQ,8BAA8B,CAAC;IAiD1C;;;;;;;;;;;;;;OAcG;qGAWE,6BAA6B,mBACf,cAAc,GAC9B,QAAQ,gCAAgC,CAAC;IA0D5C;;;;;;;;;;;;;OAaG;wFAUE,2BAA2B,mBACb,cAAc,GAC9B,QAAQ,8BAA8B,CAAC;IAiD1C;;;;;;;;;;;;;;OAcG;4FAWE,eAAe,mBACD,cAAc,GAC9B,QAAQ,kBAAkB,CAAC;IAqD9B;;;;;;;;;;;;;;;OAeG;4GAYE,mBAAmB,mBACL,cAAc,GAC9B,QAAQ,sBAAsB,CAAC;IAyDlC;;;;;;;;;;OAUG;uDAEoC,kBAAkB,mBACtC,cAAc,GAC9B,QAAQ,qBAAqB,CAAC;EAqCpC;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -4,9 +4,9 @@ import type { Direction } from './direction';
4
4
  import type { OrderBy } from './orderBy';
5
5
 
6
6
  /**
7
- * Properties for the `del` method.
7
+ * Properties for the `customDelete` method.
8
8
  */
9
- export type DelProps = {
9
+ export type CustomDeleteProps = {
10
10
  /**
11
11
  * Path of the endpoint, anything after \"/1\" must be specified.
12
12
  */
@@ -18,9 +18,9 @@ export type DelProps = {
18
18
  };
19
19
 
20
20
  /**
21
- * Properties for the `get` method.
21
+ * Properties for the `customGet` method.
22
22
  */
23
- export type GetProps = {
23
+ export type CustomGetProps = {
24
24
  /**
25
25
  * Path of the endpoint, anything after \"/1\" must be specified.
26
26
  */
@@ -31,6 +31,42 @@ export type GetProps = {
31
31
  parameters?: Record<string, any>;
32
32
  };
33
33
 
34
+ /**
35
+ * Properties for the `customPost` method.
36
+ */
37
+ export type CustomPostProps = {
38
+ /**
39
+ * Path of the endpoint, anything after \"/1\" must be specified.
40
+ */
41
+ path: string;
42
+ /**
43
+ * Query parameters to apply to the current query.
44
+ */
45
+ parameters?: Record<string, any>;
46
+ /**
47
+ * Parameters to send with the custom request.
48
+ */
49
+ body?: Record<string, any>;
50
+ };
51
+
52
+ /**
53
+ * Properties for the `customPut` method.
54
+ */
55
+ export type CustomPutProps = {
56
+ /**
57
+ * Path of the endpoint, anything after \"/1\" must be specified.
58
+ */
59
+ path: string;
60
+ /**
61
+ * Query parameters to apply to the current query.
62
+ */
63
+ parameters?: Record<string, any>;
64
+ /**
65
+ * Parameters to send with the custom request.
66
+ */
67
+ body?: Record<string, any>;
68
+ };
69
+
34
70
  /**
35
71
  * Properties for the `getAverageClickPosition` method.
36
72
  */
@@ -492,39 +528,3 @@ export type GetUsersCountProps = {
492
528
  */
493
529
  tags?: string;
494
530
  };
495
-
496
- /**
497
- * Properties for the `post` method.
498
- */
499
- export type PostProps = {
500
- /**
501
- * Path of the endpoint, anything after \"/1\" must be specified.
502
- */
503
- path: string;
504
- /**
505
- * Query parameters to apply to the current query.
506
- */
507
- parameters?: Record<string, any>;
508
- /**
509
- * Parameters to send with the custom request.
510
- */
511
- body?: Record<string, any>;
512
- };
513
-
514
- /**
515
- * Properties for the `put` method.
516
- */
517
- export type PutProps = {
518
- /**
519
- * Path of the endpoint, anything after \"/1\" must be specified.
520
- */
521
- path: string;
522
- /**
523
- * Query parameters to apply to the current query.
524
- */
525
- parameters?: Record<string, any>;
526
- /**
527
- * Parameters to send with the custom request.
528
- */
529
- body?: Record<string, any>;
530
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/client-analytics",
3
- "version": "5.0.0-alpha.91",
3
+ "version": "5.0.0-alpha.97",
4
4
  "description": "JavaScript client for client-analytics",
5
5
  "repository": "algolia/algoliasearch-client-javascript",
6
6
  "license": "MIT",
@@ -39,14 +39,14 @@
39
39
  "clean": "rm -rf ./dist || true"
40
40
  },
41
41
  "dependencies": {
42
- "@algolia/client-common": "5.0.0-alpha.92",
43
- "@algolia/requester-browser-xhr": "5.0.0-alpha.92",
44
- "@algolia/requester-node-http": "5.0.0-alpha.92"
42
+ "@algolia/client-common": "5.0.0-alpha.98",
43
+ "@algolia/requester-browser-xhr": "5.0.0-alpha.98",
44
+ "@algolia/requester-node-http": "5.0.0-alpha.98"
45
45
  },
46
46
  "devDependencies": {
47
- "@types/node": "20.9.0",
48
- "rollup": "4.3.0",
49
- "typescript": "5.2.2"
47
+ "@types/node": "20.11.1",
48
+ "rollup": "4.9.5",
49
+ "typescript": "5.3.3"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">= 14.0.0"