@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.
@@ -20,7 +20,7 @@ import {
20
20
  getAlgoliaAgent,
21
21
  shuffle
22
22
  } from "@algolia/client-common";
23
- var apiClientVersion = "5.35.0";
23
+ var apiClientVersion = "5.37.0";
24
24
  function getDefaultHosts(appId) {
25
25
  return [
26
26
  {
@@ -440,7 +440,7 @@ function createSearchClient({
440
440
  },
441
441
  /**
442
442
  * 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.
443
- * See https://api-clients-automation.netlify.app/docs/add-new-api-client#5-helpers for implementation details.
443
+ * See https://api-clients-automation.netlify.app/docs/custom-helpers/#replaceallobjects for implementation details.
444
444
  *
445
445
  * @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.
446
446
  * @param replaceAllObjects - The `replaceAllObjects` object.
@@ -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,
@@ -2395,7 +2399,7 @@ function searchClient(appId, apiKey, options) {
2395
2399
  },
2396
2400
  /**
2397
2401
  * Helper: Copies the given `sourceIndexName` records, rules and synonyms to an other Algolia application for the given `destinationIndexName`.
2398
- * See https://api-clients-automation.netlify.app/docs/add-new-api-client#5-helpers for implementation details.
2402
+ * See https://api-clients-automation.netlify.app/docs/custom-helpers/#replaceallobjects for implementation details.
2399
2403
  *
2400
2404
  * @summary Helper: Copies the given `sourceIndexName` records, rules and synonyms to an other Algolia application for the given `destinationIndexName`.
2401
2405
  * @param accountCopyIndex - The `accountCopyIndex` object.