@algolia/client-query-suggestions 5.0.0-alpha.90 → 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.
@@ -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,EACV,sBAAsB,EACtB,MAAM,EACP,MAAM,+BAA+B,CAAC;AAOvC,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,MAAM,GACP,MAAM,+BAA+B,CAAC;AACvC,cAAc,UAAU,CAAC;AAEzB,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,sBAAsB,CA0CxB"}
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,EACV,sBAAsB,EACtB,MAAM,EACP,MAAM,+BAA+B,CAAC;AAOvC,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,MAAM,GACP,MAAM,+BAA+B,CAAC;AACvC,cAAc,UAAU,CAAC;AAEzB,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,sBAAsB,CAwCxB"}
@@ -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,EACV,sBAAsB,EACtB,MAAM,EACP,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,MAAM,GACP,MAAM,+BAA+B,CAAC;AACvC,cAAc,UAAU,CAAC;AAEzB,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,sBAAsB,CAoCxB"}
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,EACV,sBAAsB,EACtB,MAAM,EACP,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,MAAM,GACP,MAAM,+BAA+B,CAAC;AACvC,cAAc,UAAU,CAAC;AAEzB,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,sBAAsB,CAkCxB"}
@@ -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.90';
7
+ const apiClientVersion = '5.0.0-alpha.97';
8
8
  const REGIONS = ['eu', 'us'];
9
9
  function getDefaultHosts(region) {
10
10
  const url = 'query-suggestions.{region}.algolia.com'.replace('{region}', region);
@@ -88,14 +88,14 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
88
88
  * This method allow you to send requests to the Algolia REST API.
89
89
  *
90
90
  * @summary Send requests to the Algolia REST API.
91
- * @param del - The del object.
92
- * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
93
- * @param del.parameters - Query parameters to apply to the current query.
91
+ * @param customDelete - The customDelete object.
92
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
93
+ * @param customDelete.parameters - Query parameters to apply to the current query.
94
94
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
95
95
  */
96
- del({ path, parameters }, requestOptions) {
96
+ customDelete({ path, parameters }, requestOptions) {
97
97
  if (!path) {
98
- throw new Error('Parameter `path` is required when calling `del`.');
98
+ throw new Error('Parameter `path` is required when calling `customDelete`.');
99
99
  }
100
100
  const requestPath = '/1{path}'.replace('{path}', path);
101
101
  const headers = {};
@@ -109,22 +109,23 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
109
109
  return transporter.request(request, requestOptions);
110
110
  },
111
111
  /**
112
- * Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
112
+ * This method allow you to send requests to the Algolia REST API.
113
113
  *
114
- * @summary Delete a configuration.
115
- * @param deleteConfig - The deleteConfig object.
116
- * @param deleteConfig.indexName - Query Suggestions index name.
114
+ * @summary Send requests to the Algolia REST API.
115
+ * @param customGet - The customGet object.
116
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
117
+ * @param customGet.parameters - Query parameters to apply to the current query.
117
118
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
118
119
  */
119
- deleteConfig({ indexName }, requestOptions) {
120
- if (!indexName) {
121
- throw new Error('Parameter `indexName` is required when calling `deleteConfig`.');
120
+ customGet({ path, parameters }, requestOptions) {
121
+ if (!path) {
122
+ throw new Error('Parameter `path` is required when calling `customGet`.');
122
123
  }
123
- const requestPath = '/1/configs/{indexName}'.replace('{indexName}', encodeURIComponent(indexName));
124
+ const requestPath = '/1{path}'.replace('{path}', path);
124
125
  const headers = {};
125
- const queryParameters = {};
126
+ const queryParameters = parameters ? parameters : {};
126
127
  const request = {
127
- method: 'DELETE',
128
+ method: 'GET',
128
129
  path: requestPath,
129
130
  queryParameters,
130
131
  headers,
@@ -135,20 +136,71 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
135
136
  * This method allow you to send requests to the Algolia REST API.
136
137
  *
137
138
  * @summary Send requests to the Algolia REST API.
138
- * @param get - The get object.
139
- * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
140
- * @param get.parameters - Query parameters to apply to the current query.
139
+ * @param customPost - The customPost object.
140
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
141
+ * @param customPost.parameters - Query parameters to apply to the current query.
142
+ * @param customPost.body - Parameters to send with the custom request.
141
143
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
142
144
  */
143
- get({ path, parameters }, requestOptions) {
145
+ customPost({ path, parameters, body }, requestOptions) {
144
146
  if (!path) {
145
- throw new Error('Parameter `path` is required when calling `get`.');
147
+ throw new Error('Parameter `path` is required when calling `customPost`.');
146
148
  }
147
149
  const requestPath = '/1{path}'.replace('{path}', path);
148
150
  const headers = {};
149
151
  const queryParameters = parameters ? parameters : {};
150
152
  const request = {
151
- method: 'GET',
153
+ method: 'POST',
154
+ path: requestPath,
155
+ queryParameters,
156
+ headers,
157
+ data: body ? body : {},
158
+ };
159
+ return transporter.request(request, requestOptions);
160
+ },
161
+ /**
162
+ * This method allow you to send requests to the Algolia REST API.
163
+ *
164
+ * @summary Send requests to the Algolia REST API.
165
+ * @param customPut - The customPut object.
166
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
167
+ * @param customPut.parameters - Query parameters to apply to the current query.
168
+ * @param customPut.body - Parameters to send with the custom request.
169
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
170
+ */
171
+ customPut({ path, parameters, body }, requestOptions) {
172
+ if (!path) {
173
+ throw new Error('Parameter `path` is required when calling `customPut`.');
174
+ }
175
+ const requestPath = '/1{path}'.replace('{path}', path);
176
+ const headers = {};
177
+ const queryParameters = parameters ? parameters : {};
178
+ const request = {
179
+ method: 'PUT',
180
+ path: requestPath,
181
+ queryParameters,
182
+ headers,
183
+ data: body ? body : {},
184
+ };
185
+ return transporter.request(request, requestOptions);
186
+ },
187
+ /**
188
+ * Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
189
+ *
190
+ * @summary Delete a configuration.
191
+ * @param deleteConfig - The deleteConfig object.
192
+ * @param deleteConfig.indexName - Query Suggestions index name.
193
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
194
+ */
195
+ deleteConfig({ indexName }, requestOptions) {
196
+ if (!indexName) {
197
+ throw new Error('Parameter `indexName` is required when calling `deleteConfig`.');
198
+ }
199
+ const requestPath = '/1/configs/{indexName}'.replace('{indexName}', encodeURIComponent(indexName));
200
+ const headers = {};
201
+ const queryParameters = {};
202
+ const request = {
203
+ method: 'DELETE',
152
204
  path: requestPath,
153
205
  queryParameters,
154
206
  headers,
@@ -242,58 +294,6 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
242
294
  };
243
295
  return transporter.request(request, requestOptions);
244
296
  },
245
- /**
246
- * This method allow you to send requests to the Algolia REST API.
247
- *
248
- * @summary Send requests to the Algolia REST API.
249
- * @param post - The post object.
250
- * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
251
- * @param post.parameters - Query parameters to apply to the current query.
252
- * @param post.body - Parameters to send with the custom request.
253
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
254
- */
255
- post({ path, parameters, body }, requestOptions) {
256
- if (!path) {
257
- throw new Error('Parameter `path` is required when calling `post`.');
258
- }
259
- const requestPath = '/1{path}'.replace('{path}', path);
260
- const headers = {};
261
- const queryParameters = parameters ? parameters : {};
262
- const request = {
263
- method: 'POST',
264
- path: requestPath,
265
- queryParameters,
266
- headers,
267
- data: body ? body : {},
268
- };
269
- return transporter.request(request, requestOptions);
270
- },
271
- /**
272
- * This method allow you to send requests to the Algolia REST API.
273
- *
274
- * @summary Send requests to the Algolia REST API.
275
- * @param put - The put object.
276
- * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
277
- * @param put.parameters - Query parameters to apply to the current query.
278
- * @param put.body - Parameters to send with the custom request.
279
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
280
- */
281
- put({ path, parameters, body }, requestOptions) {
282
- if (!path) {
283
- throw new Error('Parameter `path` is required when calling `put`.');
284
- }
285
- const requestPath = '/1{path}'.replace('{path}', path);
286
- const headers = {};
287
- const queryParameters = parameters ? parameters : {};
288
- const request = {
289
- method: 'PUT',
290
- path: requestPath,
291
- queryParameters,
292
- headers,
293
- data: body ? body : {},
294
- };
295
- return transporter.request(request, requestOptions);
296
- },
297
297
  /**
298
298
  * Update a QuerySuggestions configuration.
299
299
  *
@@ -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.90';
689
+ const apiClientVersion = '5.0.0-alpha.97';
666
690
  const REGIONS = ['eu', 'us'];
667
691
  function getDefaultHosts(region) {
668
692
  const url = 'query-suggestions.{region}.algolia.com'.replace('{region}', region);
@@ -746,14 +770,14 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
746
770
  * This method allow you to send requests to the Algolia REST API.
747
771
  *
748
772
  * @summary Send requests to the Algolia REST API.
749
- * @param del - The del object.
750
- * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
751
- * @param del.parameters - Query parameters to apply to the current query.
773
+ * @param customDelete - The customDelete object.
774
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
775
+ * @param customDelete.parameters - Query parameters to apply to the current query.
752
776
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
753
777
  */
754
- del({ path, parameters }, requestOptions) {
778
+ customDelete({ path, parameters }, requestOptions) {
755
779
  if (!path) {
756
- throw new Error('Parameter `path` is required when calling `del`.');
780
+ throw new Error('Parameter `path` is required when calling `customDelete`.');
757
781
  }
758
782
  const requestPath = '/1{path}'.replace('{path}', path);
759
783
  const headers = {};
@@ -767,22 +791,23 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
767
791
  return transporter.request(request, requestOptions);
768
792
  },
769
793
  /**
770
- * Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
794
+ * This method allow you to send requests to the Algolia REST API.
771
795
  *
772
- * @summary Delete a configuration.
773
- * @param deleteConfig - The deleteConfig object.
774
- * @param deleteConfig.indexName - Query Suggestions index name.
796
+ * @summary Send requests to the Algolia REST API.
797
+ * @param customGet - The customGet object.
798
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
799
+ * @param customGet.parameters - Query parameters to apply to the current query.
775
800
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
776
801
  */
777
- deleteConfig({ indexName }, requestOptions) {
778
- if (!indexName) {
779
- throw new Error('Parameter `indexName` is required when calling `deleteConfig`.');
802
+ customGet({ path, parameters }, requestOptions) {
803
+ if (!path) {
804
+ throw new Error('Parameter `path` is required when calling `customGet`.');
780
805
  }
781
- const requestPath = '/1/configs/{indexName}'.replace('{indexName}', encodeURIComponent(indexName));
806
+ const requestPath = '/1{path}'.replace('{path}', path);
782
807
  const headers = {};
783
- const queryParameters = {};
808
+ const queryParameters = parameters ? parameters : {};
784
809
  const request = {
785
- method: 'DELETE',
810
+ method: 'GET',
786
811
  path: requestPath,
787
812
  queryParameters,
788
813
  headers,
@@ -793,20 +818,71 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
793
818
  * This method allow you to send requests to the Algolia REST API.
794
819
  *
795
820
  * @summary Send requests to the Algolia REST API.
796
- * @param get - The get object.
797
- * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
798
- * @param get.parameters - Query parameters to apply to the current query.
821
+ * @param customPost - The customPost object.
822
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
823
+ * @param customPost.parameters - Query parameters to apply to the current query.
824
+ * @param customPost.body - Parameters to send with the custom request.
799
825
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
800
826
  */
801
- get({ path, parameters }, requestOptions) {
827
+ customPost({ path, parameters, body }, requestOptions) {
802
828
  if (!path) {
803
- throw new Error('Parameter `path` is required when calling `get`.');
829
+ throw new Error('Parameter `path` is required when calling `customPost`.');
804
830
  }
805
831
  const requestPath = '/1{path}'.replace('{path}', path);
806
832
  const headers = {};
807
833
  const queryParameters = parameters ? parameters : {};
808
834
  const request = {
809
- method: 'GET',
835
+ method: 'POST',
836
+ path: requestPath,
837
+ queryParameters,
838
+ headers,
839
+ data: body ? body : {},
840
+ };
841
+ return transporter.request(request, requestOptions);
842
+ },
843
+ /**
844
+ * This method allow you to send requests to the Algolia REST API.
845
+ *
846
+ * @summary Send requests to the Algolia REST API.
847
+ * @param customPut - The customPut object.
848
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
849
+ * @param customPut.parameters - Query parameters to apply to the current query.
850
+ * @param customPut.body - Parameters to send with the custom request.
851
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
852
+ */
853
+ customPut({ path, parameters, body }, requestOptions) {
854
+ if (!path) {
855
+ throw new Error('Parameter `path` is required when calling `customPut`.');
856
+ }
857
+ const requestPath = '/1{path}'.replace('{path}', path);
858
+ const headers = {};
859
+ const queryParameters = parameters ? parameters : {};
860
+ const request = {
861
+ method: 'PUT',
862
+ path: requestPath,
863
+ queryParameters,
864
+ headers,
865
+ data: body ? body : {},
866
+ };
867
+ return transporter.request(request, requestOptions);
868
+ },
869
+ /**
870
+ * Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
871
+ *
872
+ * @summary Delete a configuration.
873
+ * @param deleteConfig - The deleteConfig object.
874
+ * @param deleteConfig.indexName - Query Suggestions index name.
875
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
876
+ */
877
+ deleteConfig({ indexName }, requestOptions) {
878
+ if (!indexName) {
879
+ throw new Error('Parameter `indexName` is required when calling `deleteConfig`.');
880
+ }
881
+ const requestPath = '/1/configs/{indexName}'.replace('{indexName}', encodeURIComponent(indexName));
882
+ const headers = {};
883
+ const queryParameters = {};
884
+ const request = {
885
+ method: 'DELETE',
810
886
  path: requestPath,
811
887
  queryParameters,
812
888
  headers,
@@ -900,58 +976,6 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
900
976
  };
901
977
  return transporter.request(request, requestOptions);
902
978
  },
903
- /**
904
- * This method allow you to send requests to the Algolia REST API.
905
- *
906
- * @summary Send requests to the Algolia REST API.
907
- * @param post - The post object.
908
- * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
909
- * @param post.parameters - Query parameters to apply to the current query.
910
- * @param post.body - Parameters to send with the custom request.
911
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
912
- */
913
- post({ path, parameters, body }, requestOptions) {
914
- if (!path) {
915
- throw new Error('Parameter `path` is required when calling `post`.');
916
- }
917
- const requestPath = '/1{path}'.replace('{path}', path);
918
- const headers = {};
919
- const queryParameters = parameters ? parameters : {};
920
- const request = {
921
- method: 'POST',
922
- path: requestPath,
923
- queryParameters,
924
- headers,
925
- data: body ? body : {},
926
- };
927
- return transporter.request(request, requestOptions);
928
- },
929
- /**
930
- * This method allow you to send requests to the Algolia REST API.
931
- *
932
- * @summary Send requests to the Algolia REST API.
933
- * @param put - The put object.
934
- * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
935
- * @param put.parameters - Query parameters to apply to the current query.
936
- * @param put.body - Parameters to send with the custom request.
937
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
938
- */
939
- put({ path, parameters, body }, requestOptions) {
940
- if (!path) {
941
- throw new Error('Parameter `path` is required when calling `put`.');
942
- }
943
- const requestPath = '/1{path}'.replace('{path}', path);
944
- const headers = {};
945
- const queryParameters = parameters ? parameters : {};
946
- const request = {
947
- method: 'PUT',
948
- path: requestPath,
949
- queryParameters,
950
- headers,
951
- data: body ? body : {},
952
- };
953
- return transporter.request(request, requestOptions);
954
- },
955
979
  /**
956
980
  * Update a QuerySuggestions configuration.
957
981
  *
@@ -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.90';
5
+ const apiClientVersion = '5.0.0-alpha.97';
6
6
  const REGIONS = ['eu', 'us'];
7
7
  function getDefaultHosts(region) {
8
8
  const url = 'query-suggestions.{region}.algolia.com'.replace('{region}', region);
@@ -86,14 +86,14 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
86
86
  * This method allow you to send requests to the Algolia REST API.
87
87
  *
88
88
  * @summary Send requests to the Algolia REST API.
89
- * @param del - The del object.
90
- * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
91
- * @param del.parameters - Query parameters to apply to the current query.
89
+ * @param customDelete - The customDelete object.
90
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
91
+ * @param customDelete.parameters - Query parameters to apply to the current query.
92
92
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
93
93
  */
94
- del({ path, parameters }, requestOptions) {
94
+ customDelete({ path, parameters }, requestOptions) {
95
95
  if (!path) {
96
- throw new Error('Parameter `path` is required when calling `del`.');
96
+ throw new Error('Parameter `path` is required when calling `customDelete`.');
97
97
  }
98
98
  const requestPath = '/1{path}'.replace('{path}', path);
99
99
  const headers = {};
@@ -107,22 +107,23 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
107
107
  return transporter.request(request, requestOptions);
108
108
  },
109
109
  /**
110
- * Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
110
+ * This method allow you to send requests to the Algolia REST API.
111
111
  *
112
- * @summary Delete a configuration.
113
- * @param deleteConfig - The deleteConfig object.
114
- * @param deleteConfig.indexName - Query Suggestions index name.
112
+ * @summary Send requests to the Algolia REST API.
113
+ * @param customGet - The customGet object.
114
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
115
+ * @param customGet.parameters - Query parameters to apply to the current query.
115
116
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
116
117
  */
117
- deleteConfig({ indexName }, requestOptions) {
118
- if (!indexName) {
119
- throw new Error('Parameter `indexName` is required when calling `deleteConfig`.');
118
+ customGet({ path, parameters }, requestOptions) {
119
+ if (!path) {
120
+ throw new Error('Parameter `path` is required when calling `customGet`.');
120
121
  }
121
- const requestPath = '/1/configs/{indexName}'.replace('{indexName}', encodeURIComponent(indexName));
122
+ const requestPath = '/1{path}'.replace('{path}', path);
122
123
  const headers = {};
123
- const queryParameters = {};
124
+ const queryParameters = parameters ? parameters : {};
124
125
  const request = {
125
- method: 'DELETE',
126
+ method: 'GET',
126
127
  path: requestPath,
127
128
  queryParameters,
128
129
  headers,
@@ -133,20 +134,71 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
133
134
  * This method allow you to send requests to the Algolia REST API.
134
135
  *
135
136
  * @summary Send requests to the Algolia REST API.
136
- * @param get - The get object.
137
- * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
138
- * @param get.parameters - Query parameters to apply to the current query.
137
+ * @param customPost - The customPost object.
138
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
139
+ * @param customPost.parameters - Query parameters to apply to the current query.
140
+ * @param customPost.body - Parameters to send with the custom request.
139
141
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
140
142
  */
141
- get({ path, parameters }, requestOptions) {
143
+ customPost({ path, parameters, body }, requestOptions) {
142
144
  if (!path) {
143
- throw new Error('Parameter `path` is required when calling `get`.');
145
+ throw new Error('Parameter `path` is required when calling `customPost`.');
144
146
  }
145
147
  const requestPath = '/1{path}'.replace('{path}', path);
146
148
  const headers = {};
147
149
  const queryParameters = parameters ? parameters : {};
148
150
  const request = {
149
- method: 'GET',
151
+ method: 'POST',
152
+ path: requestPath,
153
+ queryParameters,
154
+ headers,
155
+ data: body ? body : {},
156
+ };
157
+ return transporter.request(request, requestOptions);
158
+ },
159
+ /**
160
+ * This method allow you to send requests to the Algolia REST API.
161
+ *
162
+ * @summary Send requests to the Algolia REST API.
163
+ * @param customPut - The customPut object.
164
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
165
+ * @param customPut.parameters - Query parameters to apply to the current query.
166
+ * @param customPut.body - Parameters to send with the custom request.
167
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
168
+ */
169
+ customPut({ path, parameters, body }, requestOptions) {
170
+ if (!path) {
171
+ throw new Error('Parameter `path` is required when calling `customPut`.');
172
+ }
173
+ const requestPath = '/1{path}'.replace('{path}', path);
174
+ const headers = {};
175
+ const queryParameters = parameters ? parameters : {};
176
+ const request = {
177
+ method: 'PUT',
178
+ path: requestPath,
179
+ queryParameters,
180
+ headers,
181
+ data: body ? body : {},
182
+ };
183
+ return transporter.request(request, requestOptions);
184
+ },
185
+ /**
186
+ * Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
187
+ *
188
+ * @summary Delete a configuration.
189
+ * @param deleteConfig - The deleteConfig object.
190
+ * @param deleteConfig.indexName - Query Suggestions index name.
191
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
192
+ */
193
+ deleteConfig({ indexName }, requestOptions) {
194
+ if (!indexName) {
195
+ throw new Error('Parameter `indexName` is required when calling `deleteConfig`.');
196
+ }
197
+ const requestPath = '/1/configs/{indexName}'.replace('{indexName}', encodeURIComponent(indexName));
198
+ const headers = {};
199
+ const queryParameters = {};
200
+ const request = {
201
+ method: 'DELETE',
150
202
  path: requestPath,
151
203
  queryParameters,
152
204
  headers,
@@ -240,58 +292,6 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
240
292
  };
241
293
  return transporter.request(request, requestOptions);
242
294
  },
243
- /**
244
- * This method allow you to send requests to the Algolia REST API.
245
- *
246
- * @summary Send requests to the Algolia REST API.
247
- * @param post - The post object.
248
- * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
249
- * @param post.parameters - Query parameters to apply to the current query.
250
- * @param post.body - Parameters to send with the custom request.
251
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
252
- */
253
- post({ path, parameters, body }, requestOptions) {
254
- if (!path) {
255
- throw new Error('Parameter `path` is required when calling `post`.');
256
- }
257
- const requestPath = '/1{path}'.replace('{path}', path);
258
- const headers = {};
259
- const queryParameters = parameters ? parameters : {};
260
- const request = {
261
- method: 'POST',
262
- path: requestPath,
263
- queryParameters,
264
- headers,
265
- data: body ? body : {},
266
- };
267
- return transporter.request(request, requestOptions);
268
- },
269
- /**
270
- * This method allow you to send requests to the Algolia REST API.
271
- *
272
- * @summary Send requests to the Algolia REST API.
273
- * @param put - The put object.
274
- * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
275
- * @param put.parameters - Query parameters to apply to the current query.
276
- * @param put.body - Parameters to send with the custom request.
277
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
278
- */
279
- put({ path, parameters, body }, requestOptions) {
280
- if (!path) {
281
- throw new Error('Parameter `path` is required when calling `put`.');
282
- }
283
- const requestPath = '/1{path}'.replace('{path}', path);
284
- const headers = {};
285
- const queryParameters = parameters ? parameters : {};
286
- const request = {
287
- method: 'PUT',
288
- path: requestPath,
289
- queryParameters,
290
- headers,
291
- data: body ? body : {},
292
- };
293
- return transporter.request(request, requestOptions);
294
- },
295
295
  /**
296
296
  * Update a QuerySuggestions configuration.
297
297
  *
@@ -1,2 +1,2 @@
1
- /*! client-query-suggestions.umd.js | 5.0.0-alpha.90 | © 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-query-suggestions"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function s(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(s().getItem(r)||"{}")}return{get:(e,t,r={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>{const r=JSON.stringify(e),s=a()[r];return Promise.all([s||t(),void 0!==s])})).then((([e,t])=>Promise.all([e,t||r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const n=a();return n[JSON.stringify(e)]=t,s().setItem(r,JSON.stringify(n)),t})),delete:e=>Promise.resolve().then((()=>{const t=a();delete t[JSON.stringify(e)],s().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{s().removeItem(r)}))}}function r(e){const t=[...e.caches],s=t.shift();return void 0===s?{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,a,n={miss:()=>Promise.resolve()})=>s.get(e,a,n).catch((()=>r({caches:t}).get(e,a,n))),set:(e,a)=>s.set(e,a).catch((()=>r({caches:t}).set(e,a))),delete:e=>s.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>s.clear().catch((()=>r({caches:t}).clear()))}}function s(e={serializable:!0}){let t={};return{get(r,s,a={miss:()=>Promise.resolve()}){const n=JSON.stringify(r);if(n in t)return Promise.resolve(e.serializable?JSON.parse(t[n]):t[n]);const o=s();return o.then((e=>a.miss(e))).then((()=>o))},set:(r,s)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const a=12e4;function n(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>a},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=a}}}function o(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 s=r.call(e,t||"default");if("object"!=typeof s)return s;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 i extends Error{constructor(e,t){super(e),o(this,"name","AlgoliaError"),t&&(this.name=t)}}class u extends i{constructor(e,t,r){super(e,r),o(this,"stackTrace",void 0),this.stackTrace=t}}class c extends u{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",e,"RetryError")}}class l extends u{constructor(e,t,r,s="ApiError"){super(e,r,s),o(this,"status",void 0),this.status=t}}class d extends i{constructor(e,t){super(e,"DeserializationError"),o(this,"response",void 0),this.response=t}}class h extends l{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),o(this,"error",void 0),this.error=r}}function m(e,t,r){const s=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 a=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return s.length&&(a+=`?${s}`),a}function g(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:s,algoliaAgent:a,timeouts:o,requester:i,requestsCache:u,responsesCache:p}){async function f(u,p,f=!0){const y=[],w=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)}(u,p),P=function(e,t,r){const s={Accept:"application/json",...e,...t,...r},a={};return Object.keys(s).forEach((e=>{const t=s[e];a[e.toLowerCase()]=t})),a}(r,u.headers,p.headers),q="GET"===u.method?{...u.data,...p.data}:{},v={...s,...u.queryParameters,...q};if(a.value&&(v["x-algolia-agent"]=a.value),p&&p.queryParameters)for(const e of Object.keys(p.queryParameters))p.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(p.queryParameters[e])?v[e]=p.queryParameters[e].toString():v[e]=p.queryParameters[e];let b=0;const T=async(e,r)=>{const s=e.pop();if(void 0===s)throw new c(function(e){return e.map((e=>g(e)))}(y));let a=p.timeout;void 0===a&&(a=f?o.read:o.write);const q={data:w,headers:P,method:u.method,url:m(s,u.path,v),connectTimeout:r(b,o.connect),responseTimeout:r(b,a)},E=t=>{const r={request:q,response:t,host:s,triesLeft:e.length};return y.push(r),r},O=await i.send(q);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)}(O)){const a=E(O);return O.isTimedOut&&b++,console.log("Retryable failure",g(a)),await t.set(s,n(s,O.isTimedOut?"timed out":"down")),T(e,r)}if(function({status:e}){return 2==~~(e/100)}(O))return function(e){try{return JSON.parse(e.content)}catch(t){throw new d(t.message,e)}}(O);throw E(O),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new h(s.message,t,s.error,r):new l(s.message,t,r)}catch(e){}return new l(e,t,r)}(O,y)},E=e.filter((e=>"readWrite"===e.accept||(f?"read"===e.accept:"write"===e.accept))),O=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(n(e))))))),s=r.filter((e=>e.isUp())),a=r.filter((e=>e.isTimedOut())),o=[...s,...a];return{hosts:o.length>0?o:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(E);return T([...O.hosts].reverse(),O.getTimeout)}return{hostsCache:t,requester:i,timeouts:o,algoliaAgent:a,baseHeaders:r,baseQueryParameters:s,hosts:e,request:function(e,t={}){const a=e.useReadTransporter||"GET"===e.method;if(!a)return f(e,t,a);const n=()=>f(e,t);if(!0!==(t.cacheable||e.cacheable))return n();const o={request:e,requestOptions:t,transporter:{queryParameters:s,headers:r}};return p.get(o,(()=>u.get(o,(()=>u.set(o,n()).then((e=>Promise.all([u.delete(o),e])),(e=>Promise.all([u.delete(o),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>p.set(o,e)})},requestsCache:u,responsesCache:p}}function f({algoliaAgents:e,client:t,version:r}){const s=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=>s.add(e))),s}const y="5.0.0-alpha.90",w=["eu","us"];e.apiClientVersion=y,e.querySuggestionsClient=function(e,a,n,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!a||"string"!=typeof a)throw new Error("`apiKey` is missing.");if(!n||n&&("string"!=typeof n||!w.includes(n)))throw new Error(`\`region\` is required and must be one of the following: ${w.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,region:a,...n}){const o=function(e,t,r="WithinHeaders"){const s={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?s:{},queryParameters:()=>"WithinQueryParameters"===r?s:{}}}(e,t,r),i=p({hosts:(u=a,[{url:"query-suggestions.{region}.algolia.com".replace("{region}",u),accept:"readWrite",protocol:"https"}]),...n,algoliaAgent:f({algoliaAgents:s,client:"QuerySuggestions",version:y}),baseHeaders:{"content-type":"text/plain",...o.headers(),...n.baseHeaders},baseQueryParameters:{...o.queryParameters(),...n.baseQueryParameters}});var u;return{transporter:i,appId:e,clearCache:()=>Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((()=>{})),get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(e,t){i.algoliaAgent.add({segment:e,version:t})},createConfig(e,t){if(!e)throw new Error("Parameter `querySuggestionsConfigurationWithIndex` is required when calling `createConfig`.");const r={method:"POST",path:"/1/configs",queryParameters:{},headers:{},data:e};return i.request(r,t)},del({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `del`.");const s={method:"DELETE",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},deleteConfig({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteConfig`.");const r={method:"DELETE",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},get({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `get`.");const s={method:"GET",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},getAllConfigs(e){const t={method:"GET",path:"/1/configs",queryParameters:{},headers:{}};return i.request(t,e)},getConfig({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfig`.");const r={method:"GET",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getConfigStatus({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfigStatus`.");const r={method:"GET",path:"/1/configs/{indexName}/status".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getLogFile({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getLogFile`.");const r={method:"GET",path:"/1/logs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},post({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `post`.");const a={method:"POST",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},put({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `put`.");const a={method:"PUT",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},updateConfig({indexName:e,querySuggestionsConfiguration:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `updateConfig`.");if(!t)throw new Error("Parameter `querySuggestionsConfiguration` is required when calling `updateConfig`.");if(!t.sourceIndices)throw new Error("Parameter `querySuggestionsConfiguration.sourceIndices` is required when calling `updateConfig`.");const s={method:"PUT",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(s,r)}}}({appId:e,apiKey:a,region:n,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 s=(e,s)=>setTimeout((()=>{r.abort(),t({status:0,content:s,isTimedOut:!0})}),e),a=s(e.connectTimeout,"Connection timeout");let n;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=s(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:r({caches:[t({key:`${y}-${e}`}),s()]}),...o})}}));
1
+ /*! client-query-suggestions.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-query-suggestions"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function s(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(s().getItem(r)||"{}")}function n(e){s().setItem(r,JSON.stringify(e))}return{get:(t,r,s={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=a(),s=Object.fromEntries(Object.entries(r).filter((([,e])=>void 0!==e.timestamp)));if(n(s),!t)return;n(Object.fromEntries(Object.entries(s).filter((([,e])=>{const r=(new Date).getTime();return!(e.timestamp+t<r)}))))}(),a()[JSON.stringify(t)]))).then((e=>Promise.all([e?e.value:r(),void 0!==e]))).then((([e,t])=>Promise.all([e,t||s.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const n=a();return n[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},s().setItem(r,JSON.stringify(n)),t})),delete:e=>Promise.resolve().then((()=>{const t=a();delete t[JSON.stringify(e)],s().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{s().removeItem(r)}))}}function r(e){const t=[...e.caches],s=t.shift();return void 0===s?{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,a,n={miss:()=>Promise.resolve()})=>s.get(e,a,n).catch((()=>r({caches:t}).get(e,a,n))),set:(e,a)=>s.set(e,a).catch((()=>r({caches:t}).set(e,a))),delete:e=>s.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>s.clear().catch((()=>r({caches:t}).clear()))}}function s(e={serializable:!0}){let t={};return{get(r,s,a={miss:()=>Promise.resolve()}){const n=JSON.stringify(r);if(n in t)return Promise.resolve(e.serializable?JSON.parse(t[n]):t[n]);const o=s();return o.then((e=>a.miss(e))).then((()=>o))},set:(r,s)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const a=12e4;function n(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>a},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=a}}}function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;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 i(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class u extends Error{constructor(e,t){super(e),i(this,"name","AlgoliaError"),t&&(this.name=t)}}class c extends u{constructor(e,t,r){super(e,r),i(this,"stackTrace",void 0),this.stackTrace=t}}class l extends c{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 d extends c{constructor(e,t,r,s="ApiError"){super(e,r,s),i(this,"status",void 0),this.status=t}}class m extends u{constructor(e,t){super(e,"DeserializationError"),i(this,"response",void 0),this.response=t}}class h extends d{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),i(this,"error",void 0),this.error=r}}function g(e,t,r){const s=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 a=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return s.length&&(a+=`?${s}`),a}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:s,algoliaAgent:a,timeouts:o,requester:i,requestsCache:u,responsesCache:c}){async function f(u,c,f=!0){const y=[],P=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)}(u,c),w=function(e,t,r){const s={Accept:"application/json",...e,...t,...r},a={};return Object.keys(s).forEach((e=>{const t=s[e];a[e.toLowerCase()]=t})),a}(r,u.headers,c.headers),q="GET"===u.method?{...u.data,...c.data}:{},v={...s,...u.queryParameters,...q};if(a.value&&(v["x-algolia-agent"]=a.value),c&&c.queryParameters)for(const e of Object.keys(c.queryParameters))c.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(c.queryParameters[e])?v[e]=c.queryParameters[e].toString():v[e]=c.queryParameters[e];let b=0;const T=async(e,r)=>{const s=e.pop();if(void 0===s)throw new l(function(e){return e.map((e=>p(e)))}(y));let a=c.timeout;void 0===a&&(a=f?o.read:o.write);const q={data:P,headers:w,method:u.method,url:g(s,u.path,v),connectTimeout:r(b,o.connect),responseTimeout:r(b,a)},O=t=>{const r={request:q,response:t,host:s,triesLeft:e.length};return y.push(r),r},E=await i.send(q);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)}(E)){const a=O(E);return E.isTimedOut&&b++,console.log("Retryable failure",p(a)),await t.set(s,n(s,E.isTimedOut?"timed out":"down")),T(e,r)}if(function({status:e}){return 2==~~(e/100)}(E))return function(e){try{return JSON.parse(e.content)}catch(t){throw new m(t.message,e)}}(E);throw O(E),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new h(s.message,t,s.error,r):new d(s.message,t,r)}catch(e){}return new d(e,t,r)}(E,y)},O=e.filter((e=>"readWrite"===e.accept||(f?"read"===e.accept:"write"===e.accept))),E=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(n(e))))))),s=r.filter((e=>e.isUp())),a=r.filter((e=>e.isTimedOut())),o=[...s,...a];return{hosts:o.length>0?o:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(O);return T([...E.hosts].reverse(),E.getTimeout)}return{hostsCache:t,requester:i,timeouts:o,algoliaAgent:a,baseHeaders:r,baseQueryParameters:s,hosts:e,request:function(e,t={}){const a=e.useReadTransporter||"GET"===e.method;if(!a)return f(e,t,a);const n=()=>f(e,t);if(!0!==(t.cacheable||e.cacheable))return n();const o={request:e,requestOptions:t,transporter:{queryParameters:s,headers:r}};return c.get(o,(()=>u.get(o,(()=>u.set(o,n()).then((e=>Promise.all([u.delete(o),e])),(e=>Promise.all([u.delete(o),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>c.set(o,e)})},requestsCache:u,responsesCache:c}}function y({algoliaAgents:e,client:t,version:r}){const s=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=>s.add(e))),s}const P="5.0.0-alpha.97",w=["eu","us"];e.apiClientVersion=P,e.querySuggestionsClient=function(e,a,n,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!a||"string"!=typeof a)throw new Error("`apiKey` is missing.");if(!n||n&&("string"!=typeof n||!w.includes(n)))throw new Error(`\`region\` is required and must be one of the following: ${w.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,region:a,...n}){const o=function(e,t,r="WithinHeaders"){const s={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?s:{},queryParameters:()=>"WithinQueryParameters"===r?s:{}}}(e,t,r),i=f({hosts:(u=a,[{url:"query-suggestions.{region}.algolia.com".replace("{region}",u),accept:"readWrite",protocol:"https"}]),...n,algoliaAgent:y({algoliaAgents:s,client:"QuerySuggestions",version:P}),baseHeaders:{"content-type":"text/plain",...o.headers(),...n.baseHeaders},baseQueryParameters:{...o.queryParameters(),...n.baseQueryParameters}});var u;return{transporter:i,appId:e,clearCache:()=>Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((()=>{})),get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(e,t){i.algoliaAgent.add({segment:e,version:t})},createConfig(e,t){if(!e)throw new Error("Parameter `querySuggestionsConfigurationWithIndex` is required when calling `createConfig`.");const r={method:"POST",path:"/1/configs",queryParameters:{},headers:{},data:e};return i.request(r,t)},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const s={method:"DELETE",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const s={method:"GET",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},customPost({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},customPut({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},deleteConfig({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteConfig`.");const r={method:"DELETE",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getAllConfigs(e){const t={method:"GET",path:"/1/configs",queryParameters:{},headers:{}};return i.request(t,e)},getConfig({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfig`.");const r={method:"GET",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getConfigStatus({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfigStatus`.");const r={method:"GET",path:"/1/configs/{indexName}/status".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getLogFile({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getLogFile`.");const r={method:"GET",path:"/1/logs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},updateConfig({indexName:e,querySuggestionsConfiguration:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `updateConfig`.");if(!t)throw new Error("Parameter `querySuggestionsConfiguration` is required when calling `updateConfig`.");if(!t.sourceIndices)throw new Error("Parameter `querySuggestionsConfiguration.sourceIndices` is required when calling `updateConfig`.");const s={method:"PUT",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(s,r)}}}({appId:e,apiKey:a,region:n,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 s=(e,s)=>setTimeout((()=>{r.abort(),t({status:0,content:s,isTimedOut:!0})}),e),a=s(e.connectTimeout,"Connection timeout");let n;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=s(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:r({caches:[t({key:`${P}-${e}`}),s()]}),...o})}}));
@@ -1,8 +1,8 @@
1
1
  import type { QuerySuggestionsConfiguration } from './querySuggestionsConfiguration';
2
2
  /**
3
- * Properties for the `del` method.
3
+ * Properties for the `customDelete` method.
4
4
  */
5
- export type DelProps = {
5
+ export type CustomDeleteProps = {
6
6
  /**
7
7
  * Path of the endpoint, anything after \"/1\" must be specified.
8
8
  */
@@ -13,18 +13,22 @@ export type DelProps = {
13
13
  parameters?: Record<string, any>;
14
14
  };
15
15
  /**
16
- * Properties for the `deleteConfig` method.
16
+ * Properties for the `customGet` method.
17
17
  */
18
- export type DeleteConfigProps = {
18
+ export type CustomGetProps = {
19
19
  /**
20
- * Query Suggestions index name.
20
+ * Path of the endpoint, anything after \"/1\" must be specified.
21
21
  */
22
- indexName: string;
22
+ path: string;
23
+ /**
24
+ * Query parameters to apply to the current query.
25
+ */
26
+ parameters?: Record<string, any>;
23
27
  };
24
28
  /**
25
- * Properties for the `get` method.
29
+ * Properties for the `customPost` method.
26
30
  */
27
- export type GetProps = {
31
+ export type CustomPostProps = {
28
32
  /**
29
33
  * Path of the endpoint, anything after \"/1\" must be specified.
30
34
  */
@@ -33,67 +37,63 @@ export type GetProps = {
33
37
  * Query parameters to apply to the current query.
34
38
  */
35
39
  parameters?: Record<string, any>;
40
+ /**
41
+ * Parameters to send with the custom request.
42
+ */
43
+ body?: Record<string, any>;
36
44
  };
37
45
  /**
38
- * Properties for the `getConfig` method.
46
+ * Properties for the `customPut` method.
39
47
  */
40
- export type GetConfigProps = {
48
+ export type CustomPutProps = {
41
49
  /**
42
- * Query Suggestions index name.
50
+ * Path of the endpoint, anything after \"/1\" must be specified.
43
51
  */
44
- indexName: string;
52
+ path: string;
53
+ /**
54
+ * Query parameters to apply to the current query.
55
+ */
56
+ parameters?: Record<string, any>;
57
+ /**
58
+ * Parameters to send with the custom request.
59
+ */
60
+ body?: Record<string, any>;
45
61
  };
46
62
  /**
47
- * Properties for the `getConfigStatus` method.
63
+ * Properties for the `deleteConfig` method.
48
64
  */
49
- export type GetConfigStatusProps = {
65
+ export type DeleteConfigProps = {
50
66
  /**
51
67
  * Query Suggestions index name.
52
68
  */
53
69
  indexName: string;
54
70
  };
55
71
  /**
56
- * Properties for the `getLogFile` method.
72
+ * Properties for the `getConfig` method.
57
73
  */
58
- export type GetLogFileProps = {
74
+ export type GetConfigProps = {
59
75
  /**
60
76
  * Query Suggestions index name.
61
77
  */
62
78
  indexName: string;
63
79
  };
64
80
  /**
65
- * Properties for the `post` method.
81
+ * Properties for the `getConfigStatus` method.
66
82
  */
67
- export type PostProps = {
68
- /**
69
- * Path of the endpoint, anything after \"/1\" must be specified.
70
- */
71
- path: string;
72
- /**
73
- * Query parameters to apply to the current query.
74
- */
75
- parameters?: Record<string, any>;
83
+ export type GetConfigStatusProps = {
76
84
  /**
77
- * Parameters to send with the custom request.
85
+ * Query Suggestions index name.
78
86
  */
79
- body?: Record<string, any>;
87
+ indexName: string;
80
88
  };
81
89
  /**
82
- * Properties for the `put` method.
90
+ * Properties for the `getLogFile` method.
83
91
  */
84
- export type PutProps = {
85
- /**
86
- * Path of the endpoint, anything after \"/1\" must be specified.
87
- */
88
- path: string;
89
- /**
90
- * Query parameters to apply to the current query.
91
- */
92
- parameters?: Record<string, any>;
92
+ export type GetLogFileProps = {
93
93
  /**
94
- * Parameters to send with the custom request.
94
+ * Query Suggestions index name.
95
95
  */
96
- body?: Record<string, any>;
96
+ indexName: string;
97
97
  };
98
98
  /**
99
99
  * Properties for the `updateConfig` method.
@@ -1 +1 @@
1
- {"version":3,"file":"clientMethodProps.d.ts","sourceRoot":"","sources":["../../model/clientMethodProps.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EA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AEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,6BAA6B,EAAE,6BAA6B,CAAC;CAC9D,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
2
2
  import type { BaseResponse } from '../model/baseResponse';
3
- import type { DelProps, DeleteConfigProps, GetProps, GetConfigProps, GetConfigStatusProps, GetLogFileProps, PostProps, PutProps, UpdateConfigProps } from '../model/clientMethodProps';
3
+ import type { CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, DeleteConfigProps, GetConfigProps, GetConfigStatusProps, GetLogFileProps, UpdateConfigProps } from '../model/clientMethodProps';
4
4
  import type { GetConfigStatus200Response } from '../model/getConfigStatus200Response';
5
5
  import type { GetLogFile200Response } from '../model/getLogFile200Response';
6
6
  import type { QuerySuggestionsConfigurationResponse } from '../model/querySuggestionsConfigurationResponse';
7
7
  import type { QuerySuggestionsConfigurationWithIndex } from '../model/querySuggestionsConfigurationWithIndex';
8
- export declare const apiClientVersion = "5.0.0-alpha.90";
8
+ export declare const apiClientVersion = "5.0.0-alpha.97";
9
9
  export declare const REGIONS: readonly ["eu", "us"];
10
10
  export type Region = (typeof REGIONS)[number];
11
11
  export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
@@ -43,31 +43,53 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
43
43
  * This method allow you to send requests to the Algolia REST API.
44
44
  *
45
45
  * @summary Send requests to the Algolia REST API.
46
- * @param del - The del object.
47
- * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
48
- * @param del.parameters - Query parameters to apply to the current query.
46
+ * @param customDelete - The customDelete object.
47
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
48
+ * @param customDelete.parameters - Query parameters to apply to the current query.
49
49
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
50
50
  */
51
- del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
51
+ customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
52
52
  /**
53
- * Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
53
+ * This method allow you to send requests to the Algolia REST API.
54
54
  *
55
- * @summary Delete a configuration.
56
- * @param deleteConfig - The deleteConfig object.
57
- * @param deleteConfig.indexName - Query Suggestions index name.
55
+ * @summary Send requests to the Algolia REST API.
56
+ * @param customGet - The customGet object.
57
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
58
+ * @param customGet.parameters - Query parameters to apply to the current query.
58
59
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
59
60
  */
60
- deleteConfig({ indexName }: DeleteConfigProps, requestOptions?: RequestOptions): Promise<BaseResponse>;
61
+ customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
61
62
  /**
62
63
  * This method allow you to send requests to the Algolia REST API.
63
64
  *
64
65
  * @summary Send requests to the Algolia REST API.
65
- * @param get - The get object.
66
- * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
67
- * @param get.parameters - Query parameters to apply to the current query.
66
+ * @param customPost - The customPost object.
67
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
68
+ * @param customPost.parameters - Query parameters to apply to the current query.
69
+ * @param customPost.body - Parameters to send with the custom request.
70
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
71
+ */
72
+ customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
73
+ /**
74
+ * This method allow you to send requests to the Algolia REST API.
75
+ *
76
+ * @summary Send requests to the Algolia REST API.
77
+ * @param customPut - The customPut object.
78
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
79
+ * @param customPut.parameters - Query parameters to apply to the current query.
80
+ * @param customPut.body - Parameters to send with the custom request.
81
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
82
+ */
83
+ customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
84
+ /**
85
+ * Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
86
+ *
87
+ * @summary Delete a configuration.
88
+ * @param deleteConfig - The deleteConfig object.
89
+ * @param deleteConfig.indexName - Query Suggestions index name.
68
90
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
69
91
  */
70
- get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
92
+ deleteConfig({ indexName }: DeleteConfigProps, requestOptions?: RequestOptions): Promise<BaseResponse>;
71
93
  /**
72
94
  * List all Query Suggestions configurations of your Algolia application.
73
95
  *
@@ -102,28 +124,6 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
102
124
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
103
125
  */
104
126
  getLogFile({ indexName }: GetLogFileProps, requestOptions?: RequestOptions): Promise<GetLogFile200Response>;
105
- /**
106
- * This method allow you to send requests to the Algolia REST API.
107
- *
108
- * @summary Send requests to the Algolia REST API.
109
- * @param post - The post object.
110
- * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
111
- * @param post.parameters - Query parameters to apply to the current query.
112
- * @param post.body - Parameters to send with the custom request.
113
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
114
- */
115
- post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
116
- /**
117
- * This method allow you to send requests to the Algolia REST API.
118
- *
119
- * @summary Send requests to the Algolia REST API.
120
- * @param put - The put object.
121
- * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
122
- * @param put.parameters - Query parameters to apply to the current query.
123
- * @param put.body - Parameters to send with the custom request.
124
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
125
- */
126
- put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
127
127
  /**
128
128
  * Update a QuerySuggestions configuration.
129
129
  *
@@ -1 +1 @@
1
- {"version":3,"file":"querySuggestionsClient.d.ts","sourceRoot":"","sources":["../../src/querySuggestionsClient.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,mBAAmB,EAInB,cAAc,EAEf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,QAAQ,EACR,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAC5G,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,iDAAiD,CAAC;AAE9G,eAAO,MAAM,gBAAgB,mBAAmB,CAAC;AAEjD,eAAO,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the `del` method.
6
+ * Properties for the `customDelete` method.
7
7
  */
8
- export type DelProps = {
8
+ export type CustomDeleteProps = {
9
9
  /**
10
10
  * Path of the endpoint, anything after \"/1\" must be specified.
11
11
  */
@@ -17,19 +17,23 @@ export type DelProps = {
17
17
  };
18
18
 
19
19
  /**
20
- * Properties for the `deleteConfig` method.
20
+ * Properties for the `customGet` method.
21
21
  */
22
- export type DeleteConfigProps = {
22
+ export type CustomGetProps = {
23
23
  /**
24
- * Query Suggestions index name.
24
+ * Path of the endpoint, anything after \"/1\" must be specified.
25
25
  */
26
- indexName: string;
26
+ path: string;
27
+ /**
28
+ * Query parameters to apply to the current query.
29
+ */
30
+ parameters?: Record<string, any>;
27
31
  };
28
32
 
29
33
  /**
30
- * Properties for the `get` method.
34
+ * Properties for the `customPost` method.
31
35
  */
32
- export type GetProps = {
36
+ export type CustomPostProps = {
33
37
  /**
34
38
  * Path of the endpoint, anything after \"/1\" must be specified.
35
39
  */
@@ -38,22 +42,34 @@ export type GetProps = {
38
42
  * Query parameters to apply to the current query.
39
43
  */
40
44
  parameters?: Record<string, any>;
45
+ /**
46
+ * Parameters to send with the custom request.
47
+ */
48
+ body?: Record<string, any>;
41
49
  };
42
50
 
43
51
  /**
44
- * Properties for the `getConfig` method.
52
+ * Properties for the `customPut` method.
45
53
  */
46
- export type GetConfigProps = {
54
+ export type CustomPutProps = {
47
55
  /**
48
- * Query Suggestions index name.
56
+ * Path of the endpoint, anything after \"/1\" must be specified.
49
57
  */
50
- indexName: string;
58
+ path: string;
59
+ /**
60
+ * Query parameters to apply to the current query.
61
+ */
62
+ parameters?: Record<string, any>;
63
+ /**
64
+ * Parameters to send with the custom request.
65
+ */
66
+ body?: Record<string, any>;
51
67
  };
52
68
 
53
69
  /**
54
- * Properties for the `getConfigStatus` method.
70
+ * Properties for the `deleteConfig` method.
55
71
  */
56
- export type GetConfigStatusProps = {
72
+ export type DeleteConfigProps = {
57
73
  /**
58
74
  * Query Suggestions index name.
59
75
  */
@@ -61,9 +77,9 @@ export type GetConfigStatusProps = {
61
77
  };
62
78
 
63
79
  /**
64
- * Properties for the `getLogFile` method.
80
+ * Properties for the `getConfig` method.
65
81
  */
66
- export type GetLogFileProps = {
82
+ export type GetConfigProps = {
67
83
  /**
68
84
  * Query Suggestions index name.
69
85
  */
@@ -71,39 +87,23 @@ export type GetLogFileProps = {
71
87
  };
72
88
 
73
89
  /**
74
- * Properties for the `post` method.
90
+ * Properties for the `getConfigStatus` method.
75
91
  */
76
- export type PostProps = {
77
- /**
78
- * Path of the endpoint, anything after \"/1\" must be specified.
79
- */
80
- path: string;
81
- /**
82
- * Query parameters to apply to the current query.
83
- */
84
- parameters?: Record<string, any>;
92
+ export type GetConfigStatusProps = {
85
93
  /**
86
- * Parameters to send with the custom request.
94
+ * Query Suggestions index name.
87
95
  */
88
- body?: Record<string, any>;
96
+ indexName: string;
89
97
  };
90
98
 
91
99
  /**
92
- * Properties for the `put` method.
100
+ * Properties for the `getLogFile` method.
93
101
  */
94
- export type PutProps = {
95
- /**
96
- * Path of the endpoint, anything after \"/1\" must be specified.
97
- */
98
- path: string;
99
- /**
100
- * Query parameters to apply to the current query.
101
- */
102
- parameters?: Record<string, any>;
102
+ export type GetLogFileProps = {
103
103
  /**
104
- * Parameters to send with the custom request.
104
+ * Query Suggestions index name.
105
105
  */
106
- body?: Record<string, any>;
106
+ indexName: string;
107
107
  };
108
108
 
109
109
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/client-query-suggestions",
3
- "version": "5.0.0-alpha.90",
3
+ "version": "5.0.0-alpha.97",
4
4
  "description": "JavaScript client for client-query-suggestions",
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.91",
43
- "@algolia/requester-browser-xhr": "5.0.0-alpha.91",
44
- "@algolia/requester-node-http": "5.0.0-alpha.91"
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.8.10",
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"