@algolia/client-search 5.35.0 → 5.37.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.
@@ -7,7 +7,7 @@ import {
7
7
  getAlgoliaAgent,
8
8
  shuffle
9
9
  } from "@algolia/client-common";
10
- var apiClientVersion = "5.35.0";
10
+ var apiClientVersion = "5.37.0";
11
11
  function getDefaultHosts(appId) {
12
12
  return [
13
13
  {
@@ -427,7 +427,7 @@ function createSearchClient({
427
427
  },
428
428
  /**
429
429
  * Helper: Replaces all objects (records) in the given `index_name` with the given `objects`. A temporary index is created during this process in order to backup your data.
430
- * See https://api-clients-automation.netlify.app/docs/add-new-api-client#5-helpers for implementation details.
430
+ * See https://api-clients-automation.netlify.app/docs/custom-helpers/#replaceallobjects for implementation details.
431
431
  *
432
432
  * @summary Helper: Replaces all objects (records) in the given `index_name` with the given `objects`. A temporary index is created during this process in order to backup your data.
433
433
  * @param replaceAllObjects - The `replaceAllObjects` object.
@@ -1365,15 +1365,19 @@ function createSearchClient({
1365
1365
  * - settings
1366
1366
  * @param getSettings - The getSettings object.
1367
1367
  * @param getSettings.indexName - Name of the index on which to perform the operation.
1368
+ * @param getSettings.getVersion - When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility.
1368
1369
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1369
1370
  */
1370
- getSettings({ indexName }, requestOptions) {
1371
+ getSettings({ indexName, getVersion }, requestOptions) {
1371
1372
  if (!indexName) {
1372
1373
  throw new Error("Parameter `indexName` is required when calling `getSettings`.");
1373
1374
  }
1374
1375
  const requestPath = "/1/indexes/{indexName}/settings".replace("{indexName}", encodeURIComponent(indexName));
1375
1376
  const headers = {};
1376
1377
  const queryParameters = {};
1378
+ if (getVersion !== void 0) {
1379
+ queryParameters["getVersion"] = getVersion.toString();
1380
+ }
1377
1381
  const request = {
1378
1382
  method: "GET",
1379
1383
  path: requestPath,