@algolia/client-search 5.36.0 → 5.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@ import {
20
20
  getAlgoliaAgent,
21
21
  shuffle
22
22
  } from "@algolia/client-common";
23
- var apiClientVersion = "5.36.0";
23
+ var apiClientVersion = "5.38.0";
24
24
  function getDefaultHosts(appId) {
25
25
  return [
26
26
  {
@@ -1378,15 +1378,19 @@ function createSearchClient({
1378
1378
  * - settings
1379
1379
  * @param getSettings - The getSettings object.
1380
1380
  * @param getSettings.indexName - Name of the index on which to perform the operation.
1381
+ * @param getSettings.getVersion - When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility.
1381
1382
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1382
1383
  */
1383
- getSettings({ indexName }, requestOptions) {
1384
+ getSettings({ indexName, getVersion }, requestOptions) {
1384
1385
  if (!indexName) {
1385
1386
  throw new Error("Parameter `indexName` is required when calling `getSettings`.");
1386
1387
  }
1387
1388
  const requestPath = "/1/indexes/{indexName}/settings".replace("{indexName}", encodeURIComponent(indexName));
1388
1389
  const headers = {};
1389
1390
  const queryParameters = {};
1391
+ if (getVersion !== void 0) {
1392
+ queryParameters["getVersion"] = getVersion.toString();
1393
+ }
1390
1394
  const request = {
1391
1395
  method: "GET",
1392
1396
  path: requestPath,